Statistical inference is the formal process of deducing the properties of an underlying distribution from observed data. It bridges the gap between a finite, noisy sample and the universal population parameter. Inference is broadly divided into two schools: Frequentist (based on repeatability) and Bayesian (based on belief).
Frequentist inference treats parameters as fixed constants. We assess hypotheses by calculating how unlikely our observed data would be if a specific "null" hypothesis were true.
We start with a Null Hypothesis (H_0) and an Alternative Hypothesis (H_1). The p-value is the probability of obtaining test results at least as extreme as the results actually observed, under the assumption thatH_0is correct.
Geometrically, if the test statistic (e.g.,z-score ort-score) follows a specific distribution (like a Bell Curve), the p-value represents the area under the curve in the "tails" beyond our observed point.
Visualizing this as a physical space: the p-value is the fraction of the total "probability mass" that lies in the extreme regions of the distribution's support.
A 95% Confidence Interval for a parameter\thetais a range[L, U]such that if the experiment were repeated infinitely many times, 95% of the calculated intervals would contain the true\theta.
In contrast to Frequentist "significance," Decision Theory focuses on the utility of being right or wrong.
A decision maker chooses an actionato minimize a Loss FunctionL(\theta, a).
Unlike Frequentist CIs, a 95% Credible Interval means there is a 95% probability (based on current knowledge) that the parameter lies within the range. This is the direct result of integrating the posterior distributionp(\theta | \mathcal{D}).
Statistical tests are subject to two types of errors, which exist in a geometric trade-off.
| Truth \ Decision | Fail to RejectH_0 | RejectH_0 |
|---|---|---|
| H_0is True | Correct Decision | Type I Error (\alpha) |
| H_1is True | Type II Error (\beta) | Correct Decision (Power) |
For a test of a mean\muwith known\sigma:
Where\Phiis the standard normal CDF. This shows that power increases with sample size (n) and the "Effect Size"|\mu_a - \mu_0|.
Modern tech companies use statistical inference to validate feature changes. By splitting traffic between "Control" and "Treatment," engineers use at-test to determine if a 20ms reduction in latency is "statistically significant." However, Practical Significance must also be considered: is the 20ms gain worth the complexity of the new code?
In Phase III clinical trials, inference is used to determine if a drug is more effective than a placebo. Due to the high cost of Type I errors (approving a useless drug),\alpha is often set strictly. Bayesian Adaptive Trials allow for the "stopping" of a trial early if the posterior probability of efficacy becomes overwhelmingly high, saving time and lives.