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
Lesson complete
Earn the 3 college credits for Marketing Research
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Understanding Data Spread: How to Interpret Distribution Shape →← Calculating Mean and Standard Error of the Sampling DistributionNext lesson: Understanding Data Spread: How to Interpret Distribution Shape →
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.
Enroll now → Course details Download the syllabus All Business courses Every credit course with PRO →
Why take it here
Why students take Marketing Research with UPI Study
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.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →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?
Why does sample variance divide by n minus 1 instead of n?
What is the difference between variance and standard deviation?
Why is the range a weak measure of spread?
About the Marketing Research course
How many college credits is Marketing Research?
How much does Marketing Research cost and what is included?
Which universities accept UPI Study credits?
How long does Marketing Research take?
How are the exams done?
How do my credits reach my college?
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
3 credits · NCCRSEnroll →