Measures of Variability: Range, Variance, and Standard Deviation

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

Measures of Variability: Range, Variance, and Standard Deviation

Marketing Research · Chapter 9: Statistical Measures and Data DistributionSection 9.5 · lesson 66 of 10111 min · free to watch

← Calculating Mean and Standard Error of the Sampling DistributionNext lesson: Understanding Data Spread: How to Interpret Distribution Shape →

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

In this lesson

Measure how much data vary with range, variance and standard deviation.

  • Compute the range, variance and standard deviation of a small data set by hand and in Excel
  • Choose between sample formulas that divide by n minus one and population formulas that divide by n
  • Interpret a standard deviation in plain words and in the original units of the data

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,548 words). Read along, or search it.

Opening Question

Same Average, Very Different Weeks

Fernway has two stores. Both sell an average of 20 hundred bars a week. One has a steady week, every week. The other swings from 8 to 32. Now suppose Leo had to decide how much stock to send, would "the average is twenty" be enough? Not at all. The mean says where the middle is. To say how much the data jump around it, you need a measure of spread.

Fernway Snacks is a composite case built for teaching. Its stores, its shoppers, and its numbers are all invented. But the tools in this lesson are the ones analysts use every day.

In this lesson, you will compute the range, the variance, and the standard deviation of a small data set, by hand, and in Excel. You will choose between the sample formulas and the population formulas. One divides by n minus one. The other divides by n. And you will say, in plain words, what a standard deviation of 1.93 bars tells you.

Why Spread Matters

Steady Bus Route Versus Swingy Route

First: why the average is not enough. Think of two school bus routes. Both take twenty minutes, on average. On one, the bus is nearly always between 19 and 21 minutes. On the other, it is sometimes eight minutes, and sometimes thirty two.

You would plan your morning very differently. On the steady route, you can leave at the same time every day. On the swingy route, you either leave very early, or risk being late. The average is the same. But the variability is not.

Now back to Fernway, our composite case. Its store on Willow Street is the steady one. Its store on Harbor Road is the swingy one. Both have a mean of twenty hundred bars a week. So the mean alone hides the difference. The spread is what tells a planner how much stock to hold.

Range

Range Uses Only the Two Ends

The simplest measure of spread is the range. It is the largest value, minus the smallest. Willow Street ranges from 18 to 22. That is a range of 4. Harbor Road ranges from eight to thirty two. That is a range of 24.

The range is quick, and easy to read. A store manager can work it out in her head, from the best week and the worst week. But it uses only two values. So one odd week can stretch it. A single holiday rush, or a single snowstorm, and the range changes completely. We want a measure that uses every value.

Four Steps

Deviations, Squares, Variance and SD

Next: variance and standard deviation, step by step. Here is the idea, in four moves. First, find the mean. Second, measure how far each value sits from the mean. That distance is called its deviation.

Third, square those distances. Here is why. Distances above and below the mean cancel out. The pluses cancel the minuses, every time. So adding them tells you nothing. But a square is never negative. So the squares pile up, instead of canceling.

Fourth, average the squares. That average is the variance. There is one catch. Squaring changes the units. Bars become bars squared, which nobody can picture. So take the square root, to get back to bars. That is the standard deviation, or SD. It is the typical distance of a value from the mean.

Worked Example

Eight Shoppers With Squares Totaling 26

Let us try it. Grace works with eight shoppers. The numbers are invented. They bought 3, 5, 2, four, 6, three, eight, and five bars last month. The total is 36. Divide by eight, and the mean is 4.5.

Now measure each distance. The first shopper bought three. That is 1.5 below the mean. Squared, it is 2.25. The third shopper bought two. That is 2.5 below. Squared, it is 6.25. The seventh shopper bought eight. That is 3.5 above. Squared, it is 12.25.

Do that for all eight. The positive and negative distances cancel out to zero, just as promised. But the squares total 26.00. Not one of them is negative, so nothing cancels.

Now divide. These eight shoppers stand for a bigger group. So the count is n minus one. That is 7. So the variance is twenty six, divided by seven. That is 3.71. And the square root of that is one point nine three bars. That is the standard deviation.

Formula and Excel

Standard Deviation of 1.93 Bars

In symbols, s squared equals the sum of x minus x bar, squared, divided by n minus one. And s is the square root of s squared. Here, x is each value. X bar is the mean. And n is the number of values.

What does it mean? A typical Fernway shopper in this group sits about 1.9 bars away from the mean of four point five. The range is six, from two to eight. But the standard deviation uses all eight values. So it describes the whole group, not just the two ends.

Excel does all of this in single formulas. The range is MAX minus MIN. The sample variance function gives 3.71. The sample SD function gives 1.93. And there are population versions too. The population variance function gives 3.25. The population SD function gives 1.80.

Notice that for these eight values, the sample versions come out larger than the population versions. That is not an accident. We will see why in a moment.

Sensitivity Test

One Office Party Buyer Shifts Every Measure

Here is how it plays out at Fernway. Leo asks Grace why she reports a standard deviation of one point nine three, when the range is already there. She has a good answer. The range changes completely, if one shopper buys twenty bars for an office party. The standard deviation reacts more gently, because it blends every shopper. So Leo asks for both, side by side, in the weekly report.

You can test that yourself. Change the seventh shopper from eight bars to twenty. The range jumps from six to eighteen. The mean rises from four point five to six. And the SD climbs from one point nine three to about 5.81. Every measure moves. But now you know why each one moved. The range moved the most, because it only looks at the two ends. The SD moved too, but it shares the shock across all eight shoppers. And the mean moved, because the total grew.

Sample or Population

Sample Formulas Versus Population Formulas

Finally: sample or population, dividing by n, or by n minus one. Variance has two formulas. The population variance divides by n. It is right when your data are every member of the group you care about. The sample variance divides by n minus one. It is right when your data are a sample, used to learn about a larger group.

Almost all marketing data are samples. So the sample versions are the default. A survey of shoppers is a sample of shoppers. A panel is a sample of households. Only rarely do you hold every member of the group. One example might be a company's full list of its own stores. If you want the spread of sales across all of them, and only them, the population version fits.

Why One Less

Dividing by One Less Corrects the Shortfall

So why divide by one less than the sample size? Here is the intuition. A sample's values sit a little closer to their own mean, than to the true population mean. So dividing by n gives a number that runs small. Dividing by n minus one corrects for that.

A computer can show it. Python draws 5,000 random samples of five shoppers, from an invented population. The true variance of that population is 17.91. Dividing by n gives an average of 14.67. That falls short. Dividing by n minus one gives an average of 18.34. That lands close.

What does it mean? With a big sample, the two versions are nearly the same. But with eight or 10 values, they differ noticeably. So the choice matters most when your sample is small. A pilot test, with a handful of shoppers, is exactly where the wrong formula does the most damage. And small pilots are common in marketing research.

Excel Versions

Pick the S Versions for Survey Data

In Excel, you pick by name. Choose the S versions for samples. Choose the P versions for populations. Older workbooks may use the original variance and standard deviation formulas. Those are the sample versions, kept for compatibility.

Here is a common mistake. People choose the population standard deviation for survey data, just because it was the first function that appeared in the list. But Fernway's 400 interviews are a sample of Larkfield shoppers. Larkfield is part of the composite case. So the sample version is the right choice.

And a pro tip. Report the standard deviation with the mean, in the same units. For example: mean four point five bars, SD one point nine three bars. A mean without a spread is half a story. And if someone asks what the variance means, answer with the SD instead. It is easier to picture, because it is in bars, not bars squared.

Key Takeaways

Range, Variance and SD in Brief

Key takeaways. The range is the biggest, minus the smallest. The variance averages the squared distances from the mean. It divides by n minus one for survey data, and by n for a whole population. The standard deviation is its square root, back in the original units. And in Excel, use the S versions for survey data. Next, in lesson 9.6, you will look at the whole shape of the data, including skew, and the normal curve. 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 Measures of Variability: Range, Variance, and Standard Deviation

How do you calculate the sample standard deviation?
Find the mean, subtract it from each value, square those deviations, add them, divide by n minus 1, and take the square root. For the values 3, 5, 2, 4, 6, 3, 8 and 5, the mean is 4.5, the squared deviations total 26, the variance is 26 divided by 7, or 3.71, and the standard deviation is about 1.93.
Why does sample variance divide by n minus 1 instead of n?
Dividing by n minus 1 corrects a downward bias. Sample values sit a little closer to their own mean than to the true population mean, so dividing by n gives a variance that tends to run too small. The correction matters most for small samples, such as pilot tests with a handful of respondents, and becomes negligible as samples grow.
What is the difference between variance and standard deviation?
The standard deviation is the square root of the variance. Variance averages the squared distances from the mean, so its units are squared, such as bars squared, which are hard to picture. Taking the square root returns to the original units, which is why reports usually give the standard deviation next to the mean, for example mean 4.5 bars, SD 1.93 bars.
Why is the range a weak measure of spread?
The range uses only the largest and smallest values, so one unusual observation can change it completely. In an eight-shopper example, raising one purchase from 8 to 20 bars moves the range from 6 to 18. The standard deviation, which rises to about 5.81, blends every value instead, so it describes the whole group rather than just its two ends.

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 →