# Sampling distribution

In statistics, a sampling distribution or finite-sample distribution is the probability distribution of a given random-sample-based statistic. If an arbitrarily large number of samples, each involving multiple observations (data points), were separately used in order to compute one value of a statistic (such as, for example, the sample mean or sample variance) for each sample, then the sampling distribution is the probability distribution of the values that the statistic takes on. In many contexts, only one sample is observed, but the sampling distribution can be found theoretically.

Sampling distributions are important in statistics because they provide a major simplification en route to statistical inference. More specifically, they allow analytical considerations to be based on the probability distribution of a statistic, rather than on the joint probability distribution of all the individual sample values.

## Introduction

The sampling distribution of a statistic is the distribution of that statistic, considered as a random variable, when derived from a random sample of size $n$ . It may be considered as the distribution of the statistic for all possible samples from the same population of a given sample size. The sampling distribution depends on the underlying distribution of the population, the statistic being considered, the sampling procedure employed, and the sample size used. There is often considerable interest in whether the sampling distribution can be approximated by an asymptotic distribution, which corresponds to the limiting case either as the number of random samples of finite size, taken from an infinite population and used to produce the distribution, tends to infinity, or when just one equally-infinite-size "sample" is taken of that same population.

For example, consider a normal population with mean $\mu$ and variance $\sigma ^{2}$ . Assume we repeatedly take samples of a given size from this population and calculate the arithmetic mean ${\bar {x}}$ for each sample – this statistic is called the sample mean. The distribution of these means, or averages, is called the "sampling distribution of the sample mean". This distribution is normal ${\mathcal {N}}(\mu ,\,\sigma ^{2}/n)$ (n is the sample size) since the underlying population is normal, although sampling distributions may also often be close to normal even when the population distribution is not (see central limit theorem). An alternative to the sample mean is the sample median. When calculated from the same population, it has a different sampling distribution to that of the mean and is generally not normal (but it may be close for large sample sizes).

The mean of a sample from a population having a normal distribution is an example of a simple statistic taken from one of the simplest statistical populations. For other statistics and other populations the formulas are more complicated, and often they don't exist in closed-form. In such cases the sampling distributions may be approximated through Monte-Carlo simulations[p. 2], bootstrap methods, or asymptotic distribution theory.

## Standard error

The standard deviation of the sampling distribution of a statistic is referred to as the standard error of that quantity. For the case where the statistic is the sample mean, and samples are uncorrelated, the standard error is:

$\sigma _{\bar {x}}={\frac {\sigma }{\sqrt {n}}}$ where $\sigma$ is the standard deviation of the population distribution of that quantity and $n$ is the sample size (number of items in the sample).

An important implication of this formula is that the sample size must be quadrupled (multiplied by 4) to achieve half (1/2) the measurement error. When designing statistical studies where cost is a factor, this may have a role in understanding cost–benefit tradeoffs.

## Examples

PopulationStatisticSampling distribution
Normal: ${\mathcal {N}}(\mu ,\sigma ^{2})$ Sample mean ${\bar {X}}$ from samples of size n ${\bar {X}}\sim {\mathcal {N}}{\Big (}\mu ,\,{\frac {\sigma ^{2}}{n}}{\Big )}$ or (In case sigma is not known): ${\bar {X}}\sim {\mathcal {T}}{\Big (}\mu ,\,{\frac {S^{2}}{n}}{\Big )}$ Where $S$ is the standard deviation of the sample and ${\mathcal {T}}$ is the Student's t-distribution.
Bernoulli: $\operatorname {Bernoulli} (p)$ Sample proportion of "successful trials" ${\bar {X}}$ $n{\bar {X}}\sim \operatorname {Binomial} (n,p)$ Two independent normal populations:

${\mathcal {N}}(\mu _{1},\sigma _{1}^{2})$ and  ${\mathcal {N}}(\mu _{2},\sigma _{2}^{2})$ Difference between sample means, ${\bar {X}}_{1}-{\bar {X}}_{2}$ ${\bar {X}}_{1}-{\bar {X}}_{2}\sim {\mathcal {N}}\!\left(\mu _{1}-\mu _{2},\,{\frac {\sigma _{1}^{2}}{n_{1}}}+{\frac {\sigma _{2}^{2}}{n_{2}}}\right)$ Any absolutely continuous distribution F with density ƒ Median $X_{(k)}$ from a sample of size n = 2k − 1, where sample is ordered $X_{(1)}$ to $X_{(n)}$ $f_{X_{(k)}}(x)={\frac {(2k-1)!}{(k-1)!^{2}}}f(x){\Big (}F(x)(1-F(x)){\Big )}^{k-1}$ Any distribution with distribution function F Maximum $M=\max \ X_{k}$ from a random sample of size n $F_{M}(x)=P(M\leq x)=\prod P(X_{k}\leq x)=\left(F(x)\right)^{n}$ ## Statistical inference

In the theory of statistical inference, the idea of a sufficient statistic provides the basis of choosing a statistic (as a function of the sample data points) in such a way that no information is lost by replacing the full probabilistic description of the sample with the sampling distribution of the selected statistic.

In frequentist inference, for example in the development of a statistical hypothesis test or a confidence interval, the availability of the sampling distribution of a statistic (or an approximation to this in the form of an asymptotic distribution) can allow the ready formulation of such procedures, whereas the development of procedures starting from the joint distribution of the sample would be less straightforward.

In Bayesian inference, when the sampling distribution of a statistic is available, one can consider replacing the final outcome of such procedures, specifically the conditional distributions of any unknown quantities given the sample data, by the conditional distributions of any unknown quantities given selected sample statistics. Such a procedure would involve the sampling distribution of the statistics. The results would be identical provided the statistics chosen are jointly sufficient statistics.