# 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.

2,299 questions
Filter by
Sorted by
Tagged with
12 views

### Sampling distribution of exponential sample variance (formal not empirical)

Addressing this problem: Let X1,...,Xn be independent identically distributed exponential variables with parameter θ, i.e. with pdf, f(x)=(1/θ)*exp(−x/θ). What is the distribution of the sample ...
4 views

### Aggregating a multivariate distribution

I'm currently trying to investigate how to 'quickly' measure the distance between a sample of data and a larger distribution of data. I have looked at the Kolmogorov-Smirnov test, which in some paper ...
47 views

### Optimal selection with multiple parameters

I have a problem of optimal selection given many parameters. I will try to simplify my problem in this example below: Suppose I have a basket with 100 balls in 10 different colors (not equally ...
15 views

### Minimum sample size for estimating unique followers of three Instagram accounts

I want to determine the number of unique followers between three (or more) large (>1e6 followers) Instagram accounts. Is there a way to determine the minimum number of followers per account I would ...
41 views

### How to generate the data from multivariate normal distribution defined for ordered arguments?

Let $N(x_i | \mu_i, \sigma_i)$ be the probability density of normal univariate distribution with mean $\mu_i$ and scale $\sigma_i$. Let $f(x_1, \ldots, x_n) = \prod_{i=1}^n N(x_i | \mu_i, \sigma_i)$ ...
25 views

### Sampling distribution of AUC in multivariate normal distribution

I need to derive the sampling distribution of the above equation, which is sample mean of the AUC from what I see. The first picture describes the distribution of the data, which I understand is ...
30 views

### Generating n distinct combinations from a weighted distribution

If I'm not mistaken, this is an extension of this question: How to resample in R without repeating permutations? I have a vector x representing a non-uniform ...
179 views

16 views

### How do I select the sample in Disproportionate Stratified Random Sampling?

I'm conducting an experiment towards tenth graders in a school. The population comprises 903 students and the sample taken based on Isaac Michael table is 251 students. If the total subjects of each ...
90 views

### Sampling from dataset according to distribution obtained from another dataset

Suppose we have dataset $A$ with several categorical and numerical features: $A_{cat_1}$, $A_{cat_2}$, $\ldots;$ $A_{num_1}$, $A_{num_2}$, $\ldots;$ Also we have another dataset $B$ with the same ...
210 views

### How big should be a sample to be statistically significant?

This is my problem: I need to sample from a random variable that I assume to have a gaussian distribution. I want to estimate the mean and the std of the variable by doing as little sample as possible....
59 views

### In spatial data, does unevenly distributed data create model bias?

The scenario: Suppose there is a square shaped region with three cities in it. A dataset is collected by citizens, who collect data where they live. Thus, data is collected much more heavily in those ...
24 views

### How to sample in Bayesian inference model?

I have the following problem to model in R. If we have $X_1, ..., X_n \sim N(\theta,1)$ and want to estimate $\theta$, we assume $\theta$ has a prior distribution, and the Bayes estimate of $\theta$ ...
16 views

### Chaos Theory, and Logistic Function 𝑋_{𝑛+1}=𝑟⋅𝑋_{𝑛}⋅(1−𝑋_{𝑛}) For Sampling music

This is a curiosity question, and I'd appreciate some insight and sources to delve deeper. The question is about the logistic function and sampling signals. I just saw a video about the logistic map/...
14 views

### How to sample from 1 data set to match distribution of variable in another data set?

I have dataset 1 and another dataset 2. All values from dataset 2 are in dataset 1, however, dataset 1 has a variable X that does not match the distribution of data set 2. Is there a way I can sample ...
187 views

### Detailed Balance for Hamiltonian Monte Carlo

I am trying to understand the detailed balance proof present in this paper: https://arxiv.org/abs/hep-lat/9208011v2 (page 4). My question: Why do we consider the volume of a neighborhood of points ...
10 views

### Stratified Sampling: use and interpret Instance Weight for EDA and modelling

Context I am working on a data mining project (EDA + Predictive Modelling) using the US census income data, which consists of training and test instances obtained using stratified sampling over the ...
36 views

### Inverse sampling a direction over the hemisphere of a surface?

Let $S^2:=\{x\in\mathbb R^3:|x|=1\}$ denote the unit 2-sphere, $$\omega_{x\to y}:=\frac{y-x}{|y-x|}\;\;\;\text{for }x,y\in\mathbb R^3\text{ with }x\ne y,$$ $M\subseteq\mathbb{R}^3$ be the disjoint ...
26 views

### random of sample of more than you plan to use?

My client is asking me to randomly sample 20 clusters when they only plan to use 10. They are doing this in case something happens and some cannot participate. I'm thinking this is no longer a ...
6 views

### How do I set a benchmark for a laboratory measurement from known data?

A colleague is trying to gain formal control of a laboratory process and needs my help. The process involves transferring a liquid into an empty vial using a qualified liquid delivery device (e.g. ...
39 views

### Sample conditional multivariate random variable?

There's multivariate random variable, future prices of assets, 5 years from now: $$X = [Gold, Silver, SP500]$$ There's historical prices for $X$ available for last 50 years. It's possible to fit ...
11 views

### Does respondent-driven sampling benefit by designing recruitment to encouraging mixing?

In respondent-driven sampling (RDS), recruitment of respondents (aside from the initial seed respondents) is accomplished by incentivizing respondents who have participated in a study to recruit ...
25 views

36 views

### Parameter Estimation via MCMC

In general, we use MCMC method to sample from a distribution which is hard to compute. In Bayesian setting, we sample from the posterior distribution of the random parameters defining the underlying ...
62 views

### Random undersampling: is there a way to chose the best majority samples?

I'm modeling credit fraud, where I have a small number of samples that result in fraud (1), and most samples that are not fraud (0). I am creating a models for detecting fraud based on new data. I'm ...
25 views

### Gibbs Sampling for Order Restricted Bayesian Inference

I am trying to learn Gibbs Sampling for Bayesian Inference, I am very confused about the following setting. Suppose we observe $X :=(x_1 , \dots, x_N)$ where $x_i$ is binomially distributed ...
175 views

### Can a sample larger than 5,000 data points be tested for normality using shapiro.test by applying the test to a subsample?

I have a number of samples that I would like to test for normality. One of the samples exceeds 5,000 data points, the limit up to which the shapiro test accepts samples. This is the data: ...
43 views

### Estimating population defects from a sample size

2 questions: Question #1: I have a lot size of 240 and have drawn out a sample size of 20. Assuming I test the 20 units for go/no-go (i.e. it's binary, pass/fail) and I have Zero failures.....what is ...
22 views

### How Does Variance Propagate From Likelihood Function To MCMC Posterior?

Suppose we are trying to obtain the posterior distribution of three parameters that influence a discretely observed population. The likelihood function is unfortunately intractable, as it is a mix of ...
28 views

### Standard deviation of sample proportions (standard error) in R

This resource states that the standard deviation of the sampling distribution (the standard error) is equal to: They provide an example where a population has p=0.6 and samples of n=25 are drawn from ...
42 views

### how to choose a sample?

I need to review 600 exams with burbles by hand (I have a software to read them all). How many exams do I need to review in order to have 95% of chance of my software is working properly? I think ...
43 views

### Problem of unbalanced data [duplicate]

unbalanced data is an issue that can effect the performnce of classification model ,several remides can be done to balance the data two of them are upsampling and downsampling , my questions is : how ...
26 views

### probability sampling calculating probabilities

Consider a population with 10 elements , N:{0,1,2,3,4,5,6,7,8,9}. The probability of drawing ...
7 views

### Seasonality affects samples on a heterogeneous system?

In a time window of a year, suppose that a social networks has a bimodal normal distribution that peaks at April and October approximately. Being a heterogenous social network, it has different types ...
In a computational physics course, I was asked to do direct-sampling for the numerical value of $\pi$ and then I estimated the standard deviation of $\pi$ , ...