What is meant by the termSolutionDegrees of freedom it is n
What is meant by the term
Solution
Degrees of freedom : it is number of values in a calculation that are free to vary.
Suppose we have two sample data points x1 and x2.
Xavg = (x1 + x2) / 2
Now suppose x1 = 4 and Xavg = 6. Value of x2 can be determined by Xavg formula. It means value of x2 is fixed. SO only x1 is free to vary. So degrees of freedom = 1
Now take another example:
Suppose we have now three data point x1 , x2 and x3.
Now Xavg = (x1 + x2 + x3) / 2 .
suppose x1 = 5, x2 = 7 and Xavg = 6. no value of x3 can be determined using Xavg formula. so value of x3 is fixed. Only x1 and x2 can vary freely. SO degreed of freedom = 2
General formula: No. of degrees of freedom in a calculation is equal to total no of observations (n) minus no of estimated needed (k) in the intermediate steps.
degrees of freedom = n - k
In the above examples No of estimated needed was Xavg. k = 1
In the first example n =2 and k =1. so degrees of freedom = 2 -1 = 1
In the second example n = 3 and k = 1. so degrees of freedom = 3 -1 = 2
