Coefficient of Determination (R²): What It Tells You About Your Data

UPI Study › Courses › Marketing Research › Free lessons › Lesson 12.2 Free lesson

Coefficient of Determination (R²): What It Tells You About Your Data

Marketing Research · Chapter 12: Correlation, Regression, and Advanced Data AnalysisSection 12.2 · lesson 85 of 10111 min · free to watch

← Interpreting the Correlation CoefficientNext lesson: How to Build a Correlation Matrix in Excel →

Earn 3 college credits for Marketing ResearchRecommended for credit by NCCRS · Marketing 300 · self-paced · one payment, lifetime access

In this lesson

Square the correlation to see how much variation a line explains.

  • Explain R squared as the share of variation a straight line accounts for
  • Compute R squared from r and from the sums of squares
  • Interpret R squared for a business decision about ad spend
  • List what R squared cannot show: direction, causation, curves and outlier effects

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (1,526 words). Read along, or search it.

Opening Question

A Share You Can Say Out Loud

The weather forecaster says, "70 percent chance of rain." And you grab an umbrella. One percentage, and you know what to do.

Take Fernway Snacks, a composite case built for teaching. Nadia is looking at Grace's chart. And she asks a similar kind of question. "If ad spend and sales have r equals 0.96, how much of what happens to sales is down to advertising?"

People want a percentage they can say out loud, in a meeting. And that number is just one step away from r. You square it. It is called R squared, or the coefficient of determination. And it comes with fine print, that every good analyst knows.

Learning Goals

Goals and Links to Earlier Topics

By the end of this lesson, you will explain r squared as a share. The share of the ups and downs in one variable, that a straight line on another variable accounts for. You will compute r squared from r, and from the sums of squares, and read it for a business decision. And you will list what r squared does not tell you. Direction. Causation. Curves. And the effect of outliers.

You met the correlation coefficient in lesson 12.1. The regression line that produces the explained part comes in lesson 12.4. And cause versus correlation was argued in lesson 6.4.

Measuring Variation

Squared Distances from the Average

First: the ups and downs of sales. Fernway's weekly sales are never the same twice. Some weeks are high. Other weeks are low. Statisticians call this variation.

How do they measure it? Take each week's distance from the average. Square it. Then add up the squares. What does squaring do? Squaring keeps the plus and minus distances from canceling out. Without it, the weeks above average and the weeks below average would wipe each other out, and the total would always be zero.

Now, play a game. You must guess each week's sales. You get two strategies. And the better strategy is the one that misses by less, week after week.

Guess one: always say the average. That is 54.6 thousand bars, every single week. Second strategy: use the ad spend for that week. Read the sales off a straight line.

Two Guessing Strategies

The Line Shrinks the Misses

Picture both strategies on a chart. Each red bar is a miss. That is the gap between a week's real sales and the guess. Square each miss. Add them up.

For the average, the total misses come to 1144.40. For the line, they come to just 92.16. Ad spend removed most of the misses. Knowing how much Fernway spent on ads made the guesses far better. The misses shrank to less than a tenth of their size. That is a big improvement, from one extra column of data.

And that leads straight to the idea. R squared is the share of the misses that the line removes. If the line cuts the misses to nothing, R squared is one. If the line is no better than the average, it is zero.

The Formula

Explained Variation Divided by Total

Next: computing r squared. In words, r squared is the explained variation, divided by the total variation.

In symbols, r squared is SS total, minus SS residual, all over SS total. SS total is the sum of squared distances of sales from their mean. That is the misses from always guessing the average. SS residual is the sum of squared misses from the line. That is what the line leaves behind.

And for a straight-line fit with one predictor, this equals r times r. That is the shortcut. Two different roads lead to the same number. One road starts from the misses. The other starts from r. Use whichever is easier, with the numbers you have.

Now, by hand. The total variation is 1144.40. The line leaves 92.16 of it. So the line explains 1144.40, minus 92.16. That is 1052.24.

Then divide. 1052.24, over 1144.40. That gives 0.9195.

Interpretation

Ad Spend Explains About 92 Percent

Now check it the short way. R was 0.9589. Square it, and you get 0.9195. The two roads match.

What does it mean? About 92 percent of the week-to-week variation in sales goes along with ad spend, in this dataset. For Leo, that makes ad spend a very useful predictor of weekly sales.

And it leaves about 8 percent, that something else must account for. Maybe season. Maybe shelf space. Something outside ad spend is still moving sales around. That leftover share is worth investigating, too. A manager who only looks at the big share can miss a useful clue in the small one.

There is a simple rule about the size. R squared is the square of a number between minus one and one. So it lies between zero and one. It is often written as a percentage. And it is always smaller than r, unless r is zero or one.

Rule of Thumb

Squaring Shrinks Middle Values Most

Squaring shrinks the middle values the most. Here is how. An r of 0.3 gives an r squared of 0.09. That is just 9 percent. An r of 0.5 gives 0.25. That is 25 percent.

An r of 0.7 gives 0.49. That is 49 percent. And an r of 0.9 gives 0.81. That is 81 percent. And r in either sign gives the same r squared.

Notice the surprise. An r of 0.5 sounds half-strong. But it explains only a quarter of the ups and downs. That is why analysts like r squared. It cuts inflated impressions down to size. When someone says two things are moderately correlated, square the r in your head. You will often find the link explains less than it sounds.

Pro Tip

Quote R Squared and Keep the Sign

A pro tip. R squared is the version to say in a meeting. "92 percent of the variation" is easier to grasp than "r equals 0.96." Keep the correlation value. Its sign tells you whether ad spend and sales rise together, or move in opposite directions. And r squared does not.

Limitations

No Direction and No Cause

Next: what R squared does not tell you. There are four big gaps. Let us take them one at a time.

First, it does not tell you the direction. The practice code flips the sales upside down. Now r becomes -0.959. But r squared stays 0.919. A rising pattern and a falling pattern look identical, once squared. So always look at r, or the scatterplot, for the sign.

Second, it does not tell you a cause. "92 percent of the variation in sales is explained by ad spend." That sounds like "ads cause 92 percent of sales." But it does not mean that. Here, "explained" means only "goes along with, in a straight line." The holiday-weeks problem, from lesson 12.1, is still there. Season could push both ad spend and sales up together.

More Limitations

Blind to Curves and Outliers

Third, it does not see curves. Picture a U shape. Y is exactly x squared. Every y is determined exactly by x. Yet r squared is 0.000. Why? The line cannot follow this curve. The falling half and the rising half cancel each other out.

So a low r squared means no straight-line link. It does not mean no link of any kind. A perfect curve can hide behind a zero. On the U, every single y can be worked out exactly from x. The link is perfect. It just is not a straight line. So when r squared comes out low, plot the data before you decide there is nothing there.

Fourth, it is easy to bend with one odd point. Remember the stock-out week, week 11, from lesson 12.1? Add it, and r falls to 0.433. And r squared falls from 0.919 to 0.187.

Common Mistake

Judging a Model by R Squared Alone

One week changed what looked like 92 percent explained into 19 percent. Nothing about advertising changed. Only one strange week was added. That is why the scatterplot always comes first. One glance shows the odd dot. The number alone hides it.

Here is a common mistake. Someone treats a high r squared as proof that a model is good. Or a low one as proof it is useless. Both are wrong. In consumer research, many things drive behavior at once. So an r squared of 0.20, for a single predictor, can still be worth knowing.

Meanwhile, a high r squared, on only ten points, can come from one or two lucky ones. So judge it together with the scatterplot, the sample size, and the question being asked.

Back at the office, Victor, the outside supplier, shows a slide. It says, "R squared is 0.92 for ad spend." Grace asks him three questions.

Office Scene

Victor Adds Context to His Slide

How many weeks are there? Did he plot the data? And does the line still work, if the holiday weeks are removed? Victor realizes his slide should say more. "Ten weeks. 92 percent of the variation. Holidays included." And he adds a plot.

Key Takeaways

Read R Squared with the Scatterplot

Key takeaways. R squared is r times r. It is the share of the ups and downs in one variable, that goes along with a straight line on another. Here, r squared is 0.9195. That means about 92 percent of sales variation. It says nothing about direction, cause, or curves. And a single outlier can change it a lot. So read it with the scatterplot, and the sample size.

Next, in lesson 12.3, you will build a whole table of correlations at once, in Excel. This lesson was made by UPI Study.

About Marketing Research at UPI Study

Marketing Research (Marketing 300) is a self-paced online course of 101 video lessons in 13 chapters, from consumer behavior, segmentation and the research process to qualitative methods, surveys and sampling, measurement, experiments, secondary and syndicated data, descriptive statistics, hypothesis tests, correlation and regression, research ethics and reports. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Principles of Marketing vs Marketing Research

Why take it here

Why students take Marketing Research with UPI Study

Turn customer questions into evidenceMarketing Research teaches how companies find out what customers want: defining the problem, interviews and focus groups, survey design and sampling, measurement scales, experiments, secondary and syndicated data, and data analysis from descriptive statistics to hypothesis tests, cross-tabs and regression, ending with the research report. It suits marketing and business degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Marketing Research carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About Coefficient of Determination (R²): What It Tells You About Your Data

What does R squared, the coefficient of determination, measure?
R squared measures the share of the variation in one variable that a straight line on another variable accounts for. It equals the explained variation divided by the total variation. A value of 0.92 means about 92 percent of the ups and downs in the outcome go along with the predictor in that dataset. It runs from 0 to 1 and is often written as a percentage.
How do you calculate R squared from sums of squares?
Subtract the residual sum of squares from the total sum of squares, then divide by the total sum of squares. For example, if the total variation is 1,144.40 and the line leaves 92.16, the explained part is 1,052.24, and 1,052.24 divided by 1,144.40 is about 0.9195. For a straight-line fit with one predictor, squaring r gives the same answer.
Why is a correlation of 0.5 weaker than it sounds?
Squaring shrinks middle values the most, so an r of 0.5 gives an R squared of just 0.25. The straight line then accounts for only about a quarter of the variation, not half. In the same way, an r of 0.3 gives 0.09 and an r of 0.7 gives 0.49. Squaring a correlation in your head keeps a moderate link in proportion.
Does a high R squared prove that one variable causes another?
No. A high R squared means only that the outcome goes along with the predictor in a straight-line pattern. A third factor, such as the holiday season, could push both up together. R squared also hides direction, misses curved relationships and can swing sharply because of one outlier. Read it with the scatterplot, the sample size and the research question, and test cause with an experiment.

About the Marketing Research course

How many college credits is Marketing Research?
Marketing Research (Marketing 300) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Marketing Research cost and what is included?
$250, paid once, with lifetime access: all 101 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Marketing Research take?
It is self-paced with no deadlines. The 101 lessons total about 19 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Marketing Research.

101 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Marketing Research
3 credits · NCCRS
Enroll →