Degrees of Freedom: Definition, Formula & Example

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: Restriction of Range: Definition & Examples

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:00 Definition
  • 1:17 Formula for Degrees of Freedom
  • 2:22 Critical Values
  • 3:49 Standard Deviation
  • 4:24 Lesson Summary
Save Save Save

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Log in or Sign up

Speed Speed

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Vanessa Botts
Degrees of freedom is a mathematical equation used primarily in statistics, but also in mechanics, physics, and chemistry. In this lesson, explore how degrees of freedom can be used in statistics to determine if results are significant.


The degrees of freedom in a statistical calculation represent how many values involved in a calculation have the freedom to vary. The degrees of freedom can be calculated to help ensure the statistical validity of chi-square tests, t-tests and even the more advanced f-tests. These tests are commonly used to compare observed data with data that would be expected to be obtained according to a specific hypothesis.

For example, let's suppose a drug trial is conducted on a group of patients and it is hypothesized that the patients receiving the drug would show increased heart rates compared to those that did not receive the drug. The results of the test could then be analyzed to determine whether the difference in heart rates is considered significant, and degrees of freedom are part of the calculations.

Because degrees of freedom calculations identify how many values in the final calculation are allowed to vary, they can contribute to the validity of an outcome. These calculations are dependent upon the sample size, or observations, and the parameters to be estimated, but generally, in statistics, degrees of freedom equal the number of observations minus the number of parameters. This means there are more degrees of freedom with a larger sample size.

Formula for Degrees of Freedom

The statistical formula to determine degrees of freedom is quite simple. It states that degrees of freedom equal the number of values in a data set minus 1, and looks like this:

df = N-1

Where N is the number of values in the data set (sample size). Take a look at the sample computation.

If there is a data set of 4, (N=4).

Call the data set X and create a list with the values for each data.

For this example data, set X includes: 15, 30, 25, 10

This data set has a mean, or average of 20. Calculate the mean by adding the values and dividing by N:

(15+30+25+10)/4= 20

Using the formula, the degrees of freedom would be calculated as df = N-1:

In this example, it looks like, df = 4-1 = 3

This indicates that, in this data set, three numbers have the freedom to vary as long as the mean remains 20.

Critical Values

Knowing the degrees of freedom for a population or for a sample does not give us a whole lot of useful information by itself. This is because after we calculate the degrees of freedom, which is the number of values in a calculation that we can vary, it is necessary to look up the critical values for our equation using a critical value table. These tables can be found in textbooks or by searching online. When using a critical value table, the values found in the table determine the statistical significance of the results.

Examples of how degrees of freedom can enter statistical calculations are the chi-squared tests and t-tests. There are several t-tests and chi-square tests that can be differentiated by using degrees of freedom.

To unlock this lesson you must be a Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use

Become a member and start learning now.
Become a Member  Back
What teachers are saying about
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account