Degrees of freedom (df) is a statistical concept describing the number of independent values in a dataset that are free to vary when estimating a parameter. It is a core element in hypothesis testing, regression, and analysis of variance (ANOVA), as it influences the shape of probability distributions such as the t-distribution, F-distribution, and chi-square distribution.
In statistics, constraints are introduced when parameters are estimated from data. For example, once the sample mean is fixed, only n-1 values remain free to vary. Degrees of freedom quantify this effect, ensuring that statistical tests properly account for limitations in sample information.
where n = number of observations, and k = number of estimated parameters or constraints.
Degrees of freedom shape the probability distribution used in statistical inference. Smaller df result in heavier-tailed distributions, requiring stronger evidence to reach significance. As df increase, distributions converge towards normality, making results more precise. Correct use of df ensures accurate p-values, confidence intervals, and conclusions in data analysis.