Sum of Squares: Definition & Application

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: Using ANOVA to Analyze Variances Between Multiple Groups

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

Take Quiz Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:04 What Is the Sum of Squares?
  • 1:17 Calculating the Sum of Squares
  • 2:55 Uses for Sum of Squares
  • 4:07 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 Audio mode

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Betsy Chesnutt

Betsy teaches college physics, biology, and engineering and has a Ph.D. in Biomedical Engineering

In many situations, it is important to know how much variation there is in a set of measurements. One way to quantify this is to calculate the sum of squares. In this lesson, we'll learn how to calculate sum of squares and how to interpret the results.

What is Sum of Squares?

Rachel is a nurse at City Hospital and is closely monitoring two patients. Their doctors have asked Rachel to check the patients' blood oxygen concentration levels every hour to make sure they don't vary too much from hour to hour. How will Rachel be able to tell if the oxygen concentration of these patients changes too much? One way that this could be done is by calculating the sum of squares of the data.

In statistics, the sum of squares measures how far individual measurements are from the mean. To calculate the sum of squares, subtract each measurement from the mean, square the difference, and then add up (sum) all the resulting measurements. We'll look at this in a little more detail later.

definition of sum of squares

The sum of squares is also sometimes known as variation, because it measures the amount of variability in the data. If Rachel measured the oxygen concentration of both patients every hour, she could tell if the oxygen concentration was varying too much by looking at the sum of squares. A high sum of squares would indicate a lot of variability in the data, while a low sum of squares (most of the measurements close to the mean) would indicate a low amount of variability.

Calculating the Sum of Squares

To find the sum of squares for a set of data, first find the mean by adding all the measurements and then dividing by the total number of measurements in the data set. Data on the oxygen concentration of the two patients during a 12 hour period is shown below, including the average or mean for each patient.

oxygen concentration data table

Did you notice that the two patients had the same mean blood oxygen concentration? Does this mean that they had the same amount of variability in oxygen concentration during this time period? Definitely not! To determine the variation in the data for each patient, you'll have to calculate the sum of squares.

To do this, subtract each measurement from the mean to find the difference from the mean. Then, square all these differences and add them up to find the total sum of squares.

Let's look at how to calculate sum of squares using the data gathered from the two patients. Remember that x represents each measurement, while xbar represents the mean. So, (x-xbar) is the difference between the measurement and the mean, which is 93 for both patients.

sum of squares data table

Wow! There is a big difference between the patients. The sum of squares showed that the variation for Patient #1 was 238, while the variation for Patient #2 was only 28. This is a big difference, even though both had the same mean. Calculating the sum of squares indicates that Rachel should monitor Patient #1 a little more closely, because his oxygen concentration is varying a lot from hour to hour. Patient #2 is much more stable, with a variation of only 28.

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