← Machine Learning

Sampling Distribution

1. Random Sample and Statistic

When extracting a random sample of size nn from population f(x)f(x), let's denote the ii-th sample as random variable Xi,i=1,2,3,⋯ ,nX_i, i=1,2,3,\cdots,n. If we independently extracted nn samples under identical conditions from population f(x)f(x), random variables X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n become random samples, each having values x1,x2,⋯ ,xnx_1,x_2,\cdots,x_n.

  • In the case of sampling without replacement, since each sample is not independent, random variables XiX_i cannot be random samples.

Def. Random Sample When nn random variables X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n that are independent of each other follow the same probability distribution f(x)f(x), X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n are defined as a random sample of size nn from population f(x)f(x). In this case, the joint probability distribution is f(x1,x2,⋯ ,xn)=f(x1)f(x2)⋯f(xn)f(x_1,x_2,\cdots,x_n)=f(x_1)f(x_2)\cdots f(x_n).

Def. Statistic A function of random variables composing a random sample is called a statistic.

  • When X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n is a random sample of size nn, representative statistics are as follows:
  • Sample mean Xˉ=1n∑i=1nXi\bar{X}=\dfrac{1}{n}\sum^n_{i=1}X_i
  • Sample variance S2=1n−1∑i=1n(Xi−Xˉ)2S^2=\dfrac{1}{n-1}\sum^n_{i=1}(X_i-\bar{X})^2
  • Sample standard deviation SS

2. Sampling Distribution

Def. Sampling Distribution The probability distribution of a statistic is called a sampling distribution.

  • Commonly used sampling distributions are as follows:
  • Distribution of sample mean Xˉ\bar{X} (sampling distribution of mean)
  • Distribution of sample variance (note: not the distribution of S2S^2, but (n−1)S2/σ2(n-1)S^2/\sigma^2)
  • tt-distribution
  • FF-distribution

1) Distribution of Sample Mean Xˉ\bar{X} (Sampling Distribution of Mean)

  • Regardless of the population distribution, for sample mean Xˉ\bar{X} defined by a random sample of size nn, the mean is μ\mu and variance is σ2/n\sigma^2/n.

  • Central Limit Theorem (CLT) When extracting a random sample of size nn (with replacement) from a population with mean μ\mu and variance σ2\sigma^2, if the sample mean is Xˉ\bar{X}, Z=Xˉ−μσ/nZ=\dfrac{\bar{X}-\mu}{\sigma/\sqrt{n}} approaches standard normal distribution N(0,1)N(0,1) when nn is considerably large (typically n≥30n \ge 30). That is, the Central Limit Theorem explains that even when the population distribution is unknown, if the sample size is large, the distribution of sample mean approximately follows normal distribution with mean μ\mu and variance σ2/n\sigma^2/n.

    • Case of sampling without replacement For random variables X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n by sampling without replacement from a finite population with mean μ\mu, variance σ2\sigma^2, and size NN, the sample mean Xˉ\bar{X} has mean μXˉ=μ\mu_{\bar{X}}=\mu, variance σXˉ2=N−nN−1σ2n\sigma_{\bar{X}}^2=\dfrac{N-n}{N-1}\dfrac{\sigma^2}{n}. (Finite population correction factor: N−nN−1\dfrac{N-n}{N-1}) If sample size nn is sufficiently large (n≥30n \ge 30), and population size NN is sufficiently large compared to nn (n/N≤0.05n/N \le 0.05), N−nN−1\dfrac{N-n}{N-1} is close to 1, so the distribution of sample mean Xˉ\bar{X} of random variables X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n by sampling without replacement from finite population is also approximately treated as normal distribution with mean μ\mu and variance σ2/n\sigma^2/n.

    • Sample mean in binomial distribution (special case of Central Limit Theorem) For sample proportion P^=X/n\hat{P}=X/n (where XX is the random variable representing number of successes) defined by a random sample of size nn from binomial population with population proportion pp, as sample size nn increases, the distribution approaches normal distribution with mean pp and variance p(1−p)n\dfrac{p(1-p)}{n}. That is, the distribution of random variable Z=P^−pp(1−p)/nZ=\dfrac{\hat{P}-p}{\sqrt{p(1-p)/n}} approaches standard normal distribution as sample size nn increases. (Typically known to hold when np≥5np\ge5 and n(1−p)≥5n(1-p)\ge5.)

    • Distribution of difference between two sample means (application) When two populations are independent of each other and have means μ1,μ2\mu_1,\mu_2 and variances σ12,σ22\sigma_1^2,\sigma_2^2 respectively, the distribution of difference between sample means X1ˉ−X2ˉ\bar{X_1}-\bar{X_2} of two samples of sizes n1,n2n_1,n_2 extracted from each population approximately follows normal distribution with mean μX1ˉ−X2ˉ=μ1−μ2\mu_{\bar{X_1}-\bar{X_2}}=\mu_1-\mu_2 and variance σX1ˉ−X2ˉ2=σ12n1+σ22n2\sigma_{\bar{X_1}-\bar{X_2}}^2=\dfrac{\sigma_1^2}{n_1} +\dfrac{\sigma_2^2}{n_2}. Therefore, Z=(X1ˉ−X2ˉ)−(μ1−μ2)(σ12/n1)+(σ22/n2)Z=\dfrac{(\bar{X_1}-\bar{X_2})-(\mu_1-\mu_2)}{\sqrt{(\sigma_1^2/n_1)+(\sigma_2^2/n_2)}} approximately follows standard normal distribution.

2) Distribution of Sample Variance

  • When extracting a random sample of size nn from normal population with variance σ2\sigma^2, if sample variance is S2S^2, statistic χ2=(n−1)S2σ2=∑i=1n(Xi−Xˉ)2σ2\chi^2=\dfrac{(n-1)S^2}{\sigma^2}=\sum^n_{i=1}\dfrac{(X_i-\bar{X})^2}{\sigma^2} follows chi-squared distribution with degrees of freedom v=n−1v=n-1.

3) tt-distribution

The Central Limit Theorem uses Z=Xˉ−μσ2/nZ=\dfrac{\bar{X}-\mu}{\sqrt{\sigma^2/n}}, ZZ can be used to estimate population mean or differences between population means, but the population variance (σ2\sigma^2) must be known to estimate population mean or differences between means. However, cases where population variance is known are extremely rare. Therefore, we utilize tt-distribution using sample variance instead of population variance.

  • When X1,X2,⋯ ,XnX_1, X_2, \cdots,X_n are all independent random variables following normal distribution with mean μ\mu and standard deviation σ\sigma, random variable T=Xˉ−μS2/nT=\dfrac{\bar{X}-\mu}{\sqrt{S^2/n}} follows tt-distribution with degrees of freedom v=n−1v=n-1.

4) FF-distribution

A distribution widely used for comparing variances between samples. Utilized in statistical inference about the ratio of population variances of two normal populations and analysis of variance. ① Statistic FF is the ratio F=U/v1V/v2F=\dfrac{U/v_1}{V/v_2} of two independent random variables U,VU,V following chi-squared distributions, each divided by their respective degrees of freedom v1,v2v_1,v_2. ② Let's say we extracted samples of sizes n1,n2n_1,n_2 from normal populations where population variances are known as σ12,σ22\sigma_1^2,\sigma_2^2 respectively. Then, as we saw in the distribution of sample variance above, χ12=(n1−1)S12σ12\chi_1^2=\dfrac{(n_1-1)S_1^2}{\sigma_1^2} follows chi-squared distribution with degrees of freedom v1=n1−1v_1=n_1-1, χ22=(n2−1)S22σ22\chi_2^2=\dfrac{(n_2-1)S_2^2}{\sigma_2^2} follows chi-squared distribution with degrees of freedom v2=n2−1v_2=n_2-1. Therefore, the following theorem holds.

  • When samples of sizes n1,n2n_1,n_2 are extracted independently from normal populations with population variances σ12,σ22\sigma_1^2,\sigma_2^2 respectively, if sample variances are S12,S22S_1^2,S_2^2, F=χ12χ22=S12/σ12S22/σ22=σ22S12σ12S22F=\dfrac{\chi_1^2}{\chi_2^2}=\dfrac{S_1^2/\sigma_1^2}{S_2^2/\sigma_2^2}=\dfrac{\sigma_2^2S_1^2}{\sigma_1^2S_2^2} follows FF-distribution with degrees of freedom v1=n1−1v_1=n_1-1 and v2=n2−1v_2=n_2-1.

Advanced Topics

  • Sample moments
  • Order statistics
  • Approximation of sampling distributions

Source: Lecture Notes from undergraduate and graduate courses - Mathematical Statistics, Statistical Methodology, Statistical Inference