Degrees of Freedom is a property of a Statistic or Point Estimator that describes how many variables are free to vary while maintaining the feature’s validity.

Example

For example, a sample mean is a linear function of its inputs, because it is a sum of the RVs, all divided by a scalar. This is a linear transformation, as well.

Due to this linearity, all of the inputs except for the last can be any value. If you allow the first RV to vary, then the RV is forced to a specific value.

Therefore, for sample mean,