Statistical inference is the process of drawing conclusions about a large groupcalled a populationbased on the analysis of a smaller set of datacalled a sample. The core ideas of probability, sampling, and inference are intertwined and provide the foundation for virtually every scientific discipline that uses data.
A population comprises all possible observations that share a set of characteristics. The definition can be tangible, such as all residents of New York City, or abstract, such as the set of all possible outcomes when rolling a fair die. Because it is usually impossible (or impractical) to collect data from every member, researchers treat the population as a conceptual entity with specific parameters:
These parameters are fixed, but they are typically unknown, which is why we turn to sampling.
A sample is a subset of the population that is selected for measurement. When the sampling method is sound, the sample will represent the population, meaning the samples statistics (sample mean, sample variance, sample proportion) are close to the corresponding population parameters.
Sample size (n) directly influences the accuracy of inference. Larger samples reduce random error, as reflected by smaller standard errors. However, larger samples cost more time and resources, so researchers balance precision with feasibility. Formulas for estimating required n often involve desired confidence level, margin of error, and an estimate of the population variance or proportion.
Probability quantifies uncertainty. In the context of sampling, it describes the likelihood of observing particular sample outcomes if we were to repeat the sampling process many times (the socalled sampling distribution). Two concepts are central:
A random variable (RV) associates a numeric value with each possible outcome of a random experiment. For example, X could denote the weight of a randomly selected adult. When we talk about the sampling distribution of the mean, we treat the sample mean \(\bar{X}\) itself as a random variable.
The CLT states that, for a sufficiently large sample size, the sampling distribution of the sample mean is approximately normal, regardless of the shape of the underlying population distribution. Formally:
\(\displaystyle \bar{X}\; \approx\; N\!\Big(\mu,\ \frac{\sigma^{2}}{n}\Big)\)
This result justifies using normalbased confidence intervals and hypothesis tests even when the original data are not normally distributed.
A point estimator is a single number derived from the sample that serves as a best guess for an unknown population parameter. Common estimators include:
Because a point estimate is subject to sampling variability, we usually report an interval that is likely to contain the true parameter with a specified confidence level (e.g., 95%).
Confidence interval for a mean ( known):
\(\displaystyle \bar{x}\ \pm\ z_{\alpha/2}\,\frac{\sigma}{\sqrt{n}}\)
Confidence interval for a mean ( unknown):
\(\displaystyle \bar{x}\ \pm\ t_{\alpha/2,\,df=n-1}\,\frac{s}{\sqrt{n}}\)
Confidence interval for a proportion:
\(\displaystyle \hat{p}\ \pm\ z_{\alpha/2}\,\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}\)
Hypothesis testing evaluates whether observed data provide sufficient evidence to reject a specific claim about a population parameter. The steps are:
Typical tests include the onesample ttest for means, the twosample ttest for comparing two groups, and the test for categorical data.
Random error arises from the natural variability inherent in sampling. It is quantified by the standard error and can be reduced by increasing the sample size.
Bias occurs when the sampling design or measurement procedure consistently deviates from the truth. Examples include:
When the statistical model (e.g., assuming normality) does not reflect the data-generating process, estimators may be biased or have inflated variance. Diagnostic plots and goodnessoffit tests help detect such problems.
Suppose a public health agency wants to estimate the average daily sodium intake of adults in a city. The population of interest is all adults (500,000). The agency draws a simple random sample of n = 400 adults and records their sodium consumption (in mg). The sample mean is \(\bar{x}=2{,}300\) mg and the sample standard deviation is s = 600 mg.
The best guess for the city's average intake is 2,300 mg.
Because is unknown, we use the tdistribution with df = 399. The critical value \(t_{0.025,399}\) 1.97.
\(\displaystyle \text{CI}=2{,}300 \pm 1.97\frac{600}{\sqrt{400}}=2{,}300 \pm 1.97(30)=2{,}300 \pm 59\)
Thus, we are 95% confident that the true mean sodium intake lies between 2,241 mg and 2,359 mg.
Public health guidelines recommend a maximum of 2,300 mg. To test whether the city's average exceeds this limit, set:
The test statistic is
\(\displaystyle t=\frac{\bar{x}-2{,}300}{s/\sqrt{n}}=\frac{2{,}300-2{,}300}{30}=0\)
With a pvalue of 0.5, we fail to reject H. The data do not provide evidence that the average intake exceeds the recommended level.
For deeper exploration, consider the following resources:
