Questions tagged [sampling]

Creating samples from a well-specified population using a probabilistic method and/or producing random numbers from a specified distribution. As this tag is ambiguous, please consider [survey-sampling] for the former and [monte-carlo] or [simulation] for the latter. For questions regarding creating random samples from known distributions, please consider using the [random-generation] tag.

Filter by
Sorted by
Tagged with
1 vote
0 answers
14 views

Gibbs sampler, how to generate samples based on odds?

I am reading a paper that contains a Gibbs sampler for a regression model with parameters $\beta$ and design matrix $X$. One of the steps in the Gibbs sampler requires simulating from a binary random ...
Moncho's user avatar
  • 11
0 votes
0 answers
15 views

blue noise error distribution in (MC)MC estimation

In computer graphics, you have an (MC)MC estimate $Q_i$ of the color value of the $i$th pixel and a true value $I_i$. Now you take $\epsilon_i:=Q_i-I_i$, which can be thought of as an "error ...
0xbadf00d's user avatar
  • 109
0 votes
1 answer
34 views

Interpreting the Concept of 'Single Sample Normality' in the Context of the Central Limit Theorem

In the context of the Central Limit Theorem (CLT), which postulates that the distribution of sample means will approximate a normal distribution given a sufficiently large number of samples and sample ...
Amit S's user avatar
  • 253
0 votes
0 answers
6 views

General strategies for choosing priors and samplers to estimate parameters of nonlinear ODE system?

I'm new to MCMC methods, and as I learn, it seems there is a lot of art in choosing the proper priors especially when there are many parameters (which is why we use MCMC in the first place). Are there ...
ValientProcess's user avatar
0 votes
0 answers
33 views

Is there a z transformation for the correlation of non-normal distributions?

I'm writing code to calculate if the correlation between two random variables is significant. I've recently come across Fisher's z transformation as a method for finding significance. But from reading ...
Connor's user avatar
  • 349
4 votes
2 answers
138 views

Implementing sampling from GEV distribution from scratch

I am trying to implement sampling from GEV distribution without using external libraries (except numpy) and this is what I came up with: ...
SlimakSlimak's user avatar
1 vote
1 answer
18 views

Drawing samples from a joint distribution defined by limits?

Assume that I want to efficiently draw samples from a (for simplicity bivariate) joint distribution $p(x,y)$, with $x \in \mathbb{R}$ and $y \in \mathbb{R}$. I don't have a closed-form expression for $...
J.Galt's user avatar
  • 533
0 votes
0 answers
20 views

Can I decrease the sampling interval and still have accurate results?

A company has been collecting water chemistry data annually for 20+ years to monitor water quality. Now they're wondering if they can decrease their sampling interval to once every 2 or 3 years and ...
Dugan 's user avatar
  • 147
8 votes
1 answer
622 views

What do I do when a false negative is far more expensive than a false positive?

I'm not sure how to 'responsibly' balance my model to account for this. I could predict a probability and give that to the business ('predict_proba' in SKlearn) but experience in the past has thought ...
Cdl's user avatar
  • 183
0 votes
0 answers
11 views

Statistical implications of quota sampling

This source says the difference between quota sampling and stratified sampling is that the units in each group are drawn in a non-random manner. What are the statistical implications of the fact that ...
Papayapap's user avatar
  • 291
0 votes
0 answers
9 views

Population Estimation And Conditional Probability

Let's say that I have a data set comprised of age data for a large number of individuals, as well as a unique identifier for each individual. For terminology sake let's call this my base population. ...
Ncalverley's user avatar
2 votes
1 answer
77 views

How can you draw a random sample from an RV with density $ \exp(x - \exp(x))$?

How can you draw a random sample from a random variable whose density is given by $\exp(x - \exp(x))$? I am trying to work through the blog at https://staffblogs.le.ac.uk/bayeswithstata/2015/03/27/...
user2957945's user avatar
0 votes
0 answers
23 views

How can I model the multivariate probability distribution of a dataset with both continuous and discrete variables for sampling?

This might seem like a duplicate of the following link, but I think that one is asking how to create a completely new dataset with specific distributions, rather than how to model an existing dataset ...
quanty's user avatar
  • 252
1 vote
1 answer
35 views

Computing sum squared distances without computing center

Given an even number of sample points in a plane, I want to compute the sum of squared distances from the sample center as part of estimating the Rayleigh parameter. One way of doing it is to compute ...
feetwet's user avatar
  • 767
2 votes
1 answer
49 views

Null hypothesis significance testing when values are known

I'm looking at the association between two categorical variables in a genus of birds. The variables are 'Conservation Concern' (Yes/No) and another binary variable (Yes/No) and I have these for every ...
Picapica's user avatar
  • 383
0 votes
0 answers
26 views

How are power and statistical significance related for a one-sample hypothesis test of means?

Power, in a two-sample test, is partially determined by the narrowness of the confidence interval for the test statistic the alternative hypothesis is tested over. This is captured in this photo via ...
Estimate the estimators's user avatar
3 votes
1 answer
36 views

Uniform sampling from intersection of hypercube and simplex

Background Discussion from http://blog.geomblog.org/2005/10/sampling-from-simplex.html and https://cs.stackexchange.com/questions/3227/uniform-sampling-from-a-simplex have shown algorithms of sampling ...
imakak's user avatar
  • 31
1 vote
0 answers
11 views

Design Effect ZERO

Is Design Effect (DEFF) possible to be zero? Note: Design Effect (DEFF) is defined as the ratio of the variance of an estimator under a certain survey design (non SRS) to the variance of the estimator ...
user21510073's user avatar
2 votes
0 answers
38 views

Need help to interpret sampling numbers

This question was flagged as offtopic, but I am sorry, this is NOT a question which "focuses on programming, debugging, or performing routine operations, or it asks about obtaining datasets"....
Serge Gladkoff's user avatar
1 vote
0 answers
31 views

How to be explicit about negative sampling for Link prediction using GNN?

Regarding recommendation systems of bi-partite graphs with PyTorch geometric, most of the tutorials I found about Link prediction using GNNs suggest using negative sampling in an (I guess) random way. ...
James's user avatar
  • 75
1 vote
1 answer
21 views

What could lead to this misbehavior for the expected sample size (ESS)?

I am using Hamiltonian Monte Carlo (HMC) to sample the posterior of a continuous-time Markov Chain (CTMC). However, after running 10 parallel chains with 100 draws each, the effective sample size (ESS)...
trivicious's user avatar
3 votes
0 answers
37 views

Understanding the ridge leverage scores sampling from an arXiv paper

I give a try to read the arXiv paper Distributed Adaptive Sampling for Kernel Matrix Approximation, Calandriello et al. 2017. I got a code implementation where they compute ridge leverage scores ...
emonhossain's user avatar
1 vote
1 answer
32 views

How do sample size and measurement accuracy affect the measurement of the parameters of a log-normal distribution?

Assume that we have objects (e.g. particles) whose properties (e.g. diameter) follow a log-normal distribution that can be described by a geometric mean $\mu_g$ and a geometric standard deviation $\...
Nos's user avatar
  • 285
0 votes
0 answers
13 views

Critical Region and level of a test

A concept I'm struggling with is the type 1 error and the level of a test, for me the type 1 error is P(Wn|H0) where Wn is the rejection zone. Is it not a way to measure Wn given that H0 is true ? So ...
StochasticMan's user avatar
0 votes
0 answers
26 views

What is the general procedure to come up with different estimator with smaller MSE?

PDF of a random variable $X$ is, $$ \begin{equation} f\left(x|\gamma\right)= \begin{cases} \frac{1}{\gamma} \exp(-\frac{x}{\gamma}) & x > 0 \\ 0 & \text{otherwise.} \end{cases} \end{...
Master's user avatar
  • 1
1 vote
0 answers
14 views

Sample until a desired condition is met

Suppose I have a population of N elements. For the sake of example, imagine these elements take either a value of 1 or a value of 0. My goal is to estimate the sum of the N elements. To do so, I wish ...
Bryce Frank's user avatar
1 vote
0 answers
11 views

Unbalanced cross-sectional data

My research endeavors to explore the relationship between conflict exposure and attitudes towards international institutions. Specifically, my hypothesis posits that individuals who have experienced ...
Santiago99's user avatar
2 votes
0 answers
30 views

Maximum likelihood of sample mean

It is an easy computation to show that given some data sampled from the binomial, gaussian, Poisson, or exponential distribution, the MLE of the mean of the distribution is the sample mean. However, ...
Igor Rivin's user avatar
2 votes
1 answer
37 views

Post-stratification with missing subpopulations in the survey

I have some survey data on a population described by age, gender, and weight. It’s quite skewed so I want to reweight it to a known target population (a larger ...
cgreen's user avatar
  • 1,002
1 vote
0 answers
20 views

What should be the sample size in a stratified random sample to get the same precision of a simple random sample?

I was reading example 3.2 on stratified sampling in Sampling: Design and Analysis by Lohr where a stratified random sampling design is proposed and compared with a simple random sample one. The point ...
Tortar's user avatar
  • 336
1 vote
0 answers
25 views

Gibbs sampler: Conditional distribution with nested latent variable distributions

I have the following model (simplified here for the description). The obsvered variable is $y_i$ which is a linear function of some random variable $\eta_i$ and a random error term $\epsilon_i$: $y_{i}...
Stefan's user avatar
  • 155
0 votes
0 answers
17 views

How many samples to be reasonably sure? [duplicate]

I am new to probability, and I am struggling with the right language to ask or google this question. I have a population of size $n$ and everyone is say some color. I want to verify that at least half ...
reesespieces's user avatar
1 vote
1 answer
33 views

Should I use null hypothesis significance testing when I have the full population? [duplicate]

I have data on every species in a genus, and am interested in how two factors relate to each other specifically within that genus. Should I use a statistical test to do this or does it not make sense? ...
Picapica's user avatar
  • 383
0 votes
0 answers
15 views

Importance sampling weights for NN training

Say you're training an NN and have different groups of samples, say number of groups is ngroups. Each group has a different number of samples, say ...
interatomic's user avatar
0 votes
0 answers
17 views

What is the sampling bias in sample Pearson correlation coefficient squared?

Suppose $r$ is the sample Pearson correlation coefficient estimator of two random variables $X$ and $Y$, while $rho$ is the population correlation coefficient. From various sources, e.g., Is the ...
wdg's user avatar
  • 293
3 votes
2 answers
135 views

How to draw from a uniform distribution over a large state space via MCMC

Motivating question I have a high-dimensional state space $\Omega \subseteq \mathbb R^n$ with an admissible subset $S\subseteq \Omega$, which is connected. I would like to draw a uniform random sample ...
Samufi's user avatar
  • 83
3 votes
0 answers
35 views

Generating uniformly distributed particles on a $n$-dimensional flat torus or periodic hypercube [closed]

I am trying to generate evenly distributed particles in an $n$-dimensional flat torus or a periodic hypercube. I am not sure if any of this approaches suffices. Can you suggest alternative methods for ...
Rober's user avatar
  • 31
0 votes
0 answers
17 views

How to make sampling ignorable in Bayesian model with random (unequal) sampling probabilities?

Suppose you sample N people with unequal probabilities from some superpopulation. Your sample contains W_sample the probability with which the person was sampled from the superpopulation and their ...
socialscientist's user avatar
0 votes
0 answers
16 views

How to determine effective sample size when sampling averaged samples?

I have a sampling process like the following: Randomly select psus from one stage with equal probability Use all ssus of each psu selected for estimation. Each ssu is associated with a statistic from ...
Estimate the estimators's user avatar
2 votes
0 answers
11 views

How to pool estimates from multiply-imputed datasets with complex sampling designs?

Analysts often use Rubin's rule (RR) to obtain a pooled estimate of a popular quantity from multiple (imputed) datasets. While popular statistical software (such as the R ...
socialscientist's user avatar
0 votes
1 answer
30 views

Sampling from multiple distributions with well defined sum

Let's say I have three distributions, P1, P2, and P3, which are probability distributions with domains defined between 0 and 1. Generically these are not Gaussian (more like Beta distributions). I can ...
KHAAAAAAAAN's user avatar
0 votes
1 answer
23 views

Does a single observation from a population have the same distribution as that population?

Suppose X1 is one observation from a population with Beta(θ,1) PDF. Would X1 also have Beta(θ,1) PDF?
ally.williams's user avatar
0 votes
0 answers
28 views

How to sample from a given accessible PDF?

I am learning Gibbs Sampling for GMMs. Particularly, given $\boldsymbol \theta$, I must sample from the latent $\boldsymbol z$ before sampling $\boldsymbol x$. The PDF of $\boldsymbol z$ is given as$$ ...
wd violet's user avatar
  • 581
3 votes
2 answers
144 views

Running Metropolis-Hastings algorithm with changing proposal kernel; each time the kernel is changing starting the algorithm afresh. Does it work?

I have a Markov kernel $Q$ from which I would like to generate proposals for the Metropolis-Hastings algorithm. The problem is: When the proposal is accepted, the "internal state" of $Q$ ...
0xbadf00d's user avatar
  • 109
0 votes
0 answers
39 views

LDA Document Topic Distribution Prediction for Unseen Document

Popular python libraries for topic modeling like gensim or sklearn allow us to predict the topic-distribution for an unseen document, but I have a few questions on what's going on under the hood. I've ...
datasciencewannabe's user avatar
0 votes
0 answers
23 views

Can I use the Z-Test with estimators for mean and standard deviation?

I'm trying to select feature columns in a binary classification model. I'd like to remove near-constant columns that don't predict the target column values very well. One way of defining this is the ...
Connor's user avatar
  • 349
0 votes
0 answers
19 views

No-U-Turn Sampler (NUTS) for handling class imbalance

I have a dataset of about 100 records and about 80% of those records belong to one class. The rest belong to another class. I'm building two Bayesian models (logistic regression and multiple linear ...
Harrison Kaiser's user avatar
0 votes
1 answer
103 views

Calculating the probability my observation, $Y_i$, is drawn from a random variable $X$?

If I sample a population distribution 2,000 times and get an estimator for the population mean, $\mu$, and the standard deviation, $\sigma$, how can I use these to get the probability that an ...
Connor's user avatar
  • 349
1 vote
0 answers
121 views

Understanding Objective in OpenAI InstructGPT paper?

The following objective is taken from the paper 'Training language models to follow instructions with human feedback':which is used to fine-tune the pre-trained language model using Proximal Policy ...
Tinatim's user avatar
  • 111
0 votes
0 answers
22 views

Optimizing a Laplace distribution's scale parameter for rejection sampling in R

I am using the Laplace distribution (location = 0, scale = b) to sample from a standard normal distribution. The normal distribution ranges from -1 to 2. I am using the rejection sampling method. In ...
Anna's user avatar
  • 61

1
2 3 4 5
63