UPI Study › Courses › Marketing Research › Free lessons › Lesson 10.2 Free lesson
Making Estimates and Predictions from Categorical Data
Marketing Research · Chapter 10: Categorical Analysis, Cross-Tabulation, and Descriptive vs. Inferential StatisticsSection 10.2 · lesson 70 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: Frequency Distributions: Summarizing and Visualizing Marketing Data →← Analyzing Categorical Data with Statistical TechniquesNext lesson: Frequency Distributions: Summarizing and Visualizing Marketing Data →
In this lesson
Build and read confidence intervals for a sample proportion.
- Compute a confidence interval for a proportion from p-hat, z and the standard error
- Explain what a 95 percent confidence level and the margin of error mean
- Describe how sample size and confidence level change the width of an interval
- Turn a sample proportion into a careful prediction for a larger group
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,505 words). Read along, or search it.
Opening Question
Sixty Percent Out of How Many
Grace's pilot survey says 60% of shoppers would buy Fernway's new bar again. Leo wants to tell the board, sixty percent. Nadia stops him. "Out of how many?" Forty. Would a different 40 shoppers have said sixty percent too? Probably not exactly. A single percentage from a sample is a guess. And a good analyst tells you how good a guess it is.
Fernway Snacks is a composite case built for teaching. The pilot, and every number in it, is invented. But the question Nadia asked is the most important question you can ask about any percentage.
In this lesson, you will compute a confidence interval for a proportion. You will explain what the interval, and the margin of error, mean. You will see how the sample size, and the confidence level, change them. And you will turn a sample result into a careful prediction, for a larger group.
Concept
From One Spoonful to a Range
First: from one sample, to a range of likely values. Imagine tasting one spoonful of soup, to judge the whole pot. If you stir well, the spoonful is a fair sample. But it is not the pot. A second spoonful would taste almost the same. Almost. And that small difference is the whole subject of this lesson.
The share in your sample is written p-hat. That symbol has a small hat above it. It is your best single guess, for the true share, p, in the whole group.
A confidence interval adds a margin around the guess. It is a range of values that are plausible for the true share, given how much a sample of this size can wobble. You met that wobble in lesson 9.4.
Here is the formula, in words. Take the sample proportion. Then add, and subtract, the z value for your confidence level, times the standard error of the proportion.
Worked Example
Pilot Interval From 44.8 to 75.2 Percent
In symbols, p-hat is the successes, divided by n. And n is the sample size. The z value is 1.96, for ninety five percent confidence. It is 1.645 for ninety percent. And it is 2.576 for ninety nine percent.
The part after z is the standard error of a proportion. And z, times that standard error, is the margin of error. So the whole recipe is simple. Start from the sample share. Then add and subtract a margin.
Now, the pilot. 24 of forty shoppers would buy again. So p-hat is 0.60. The standard error works out to 0.0775. Times one point nine six, the margin is 0.152.
So the interval runs from 0.448 to 0.752. As percentages, that is 44.8% to 75.2%. Python follows the same steps, and gets the same answer.
Conditions
At Least Ten in Each Answer Group
There is a condition, though. The formula works well when the sample is random. And both the yes count and the no count should be at least 10. That is a common rule of thumb. Here, 16 said no. So both counts, twenty four and sixteen, are well above ten.
What does it mean? The pilot gives a ninety five percent interval. It runs from forty four point eight, to seventy five point two percent. That is a wide range. The true share could plausibly be just under half. Or it could be three quarters. That is a very different business. At just under half, the new bar is a modest seller. At three quarters, it is a hit. The pilot cannot tell those two stories apart. It is simply too small.
Size and Confidence
Bigger Samples Narrow, Higher Confidence Widens
Now, give the same sixty percent result a bigger sample. With 400 shoppers, the interval is 55.2% to 64.8%. That is a range Leo can plan around. The center did not move at all. Only the width changed. More shoppers bought a much sharper picture.
And raising the confidence level widens the interval. At ninety nine percent, the pilot's interval stretches to 40.0% to 80.0%. Being more sure takes a bigger net. Think of fishing. A wider net is more likely to catch the fish. But it tells you less about exactly where the fish was. Confidence and precision pull against each other. With a fixed sample, you trade one for the other.
Common Misreading
What 95 Percent Confident Does Not Mean
Next: what ninety five percent confident really means. This phrase is easy to say. And it is very often misread. So let us be precise. Even experienced managers get it wrong. And the wrong reading can lead to the wrong decision.
First, what it does not mean. It is not a ninety five percent chance that this one range holds the truth. And it says nothing about where individual shoppers sit.
Here is what it does mean. It describes the method. Suppose you repeated the survey many times. And each time, you built a range the same way. About ninety five percent of those ranges would capture the true share.
A simulation shows it. Python invents a population where the true share is exactly sixty percent. Then it draws 20 random samples, of 100 shoppers each. And it builds a range from each one.
Simulation
Nineteen of Twenty Ranges Catch the Truth
19 of the twenty ranges catch the true sixty percent. One sample misses, as about one in twenty should. And over 10,000 samples, the share that caught the truth was 94.99%. That is very close to the promised ninety five.
What does it mean? In real life, you have one sample. And you never know whether it is one of the lucky ninety five, or the unlucky 5. That is why the range is always stated with its confidence level. The confidence level is a promise about the method. It is honest about the chance that this one survey was unlucky.
Here is how it plays out at Fernway. Leo wants to forecast demand, for Larkfield's 20,000 snack-buying households. Larkfield is part of the composite case. He applies the pilot's range to them.
Prediction
Too Wide to Plan Production
That gives about 8,960 to 15,040 households that might buy again. And that is only if the pilot were a random sample. Nadia looks at the gap, and frowns. It is more than six thousand households wide. She says that range is too wide to plan production on. So she asks Grace to size a bigger survey. Lesson 3.6 explains how.
Narrowing the Interval
Three Things Set the Width
Finally: making the interval narrower. Three things set the width. The sample size, n. The confidence level, through z. And the proportion itself.
The proportion matters because p-hat, times one minus p-hat, is biggest at 50%. So results near half have the widest ranges. You cannot choose your result. But you do control the first two: the sample size, and the confidence level.
A bigger sample narrows the interval. But there are diminishing returns, because n sits under a square root. For a sixty percent result, the margin is fifteen point two points at forty shoppers. It is 9.6 at one hundred. And it is 6.1 at 250. It is four point eight at four hundred. And at 1000, it is 3.0 points.
Diminishing Returns
Percentage Points, Not Percent
Four times the sample, from one hundred to four hundred, halves the margin. Nine point six becomes four point eight. That is the same pattern as the standard error of the mean, from lesson nine point four. Precision gets more expensive, the more of it you want. Going from forty to one hundred shoppers cuts the margin by more than five points. Going from four hundred to one thousand cuts it by less than two. So every survey budget needs a sensible stopping point.
Here is a common mistake. People say, sixty percent, plus or minus fifteen percent. But the margin is fifteen percentage points, not fifteen percent of sixty. Another mistake is reporting an interval for a sample that was not random.
Pro Tip
No Interval Repairs a Biased Sample
The formula measures only random sampling wobble. A biased sample, such as only the people who answered an online poll, can be far off. And no interval will reveal it. That is the subject of lesson 3.7.
And a pro tip. In Excel, type the pieces in separate cells. Put p-hat in B1, and n in B2. Then one formula gives the margin. Change B2, and the margin updates by itself. Keep z in its own cell, too. Then you can switch between one point six four five, one point nine six, and two point five seven six, without retyping anything.
Key Takeaways
Practice With 30 of 50 Shoppers
Try it yourself. Suppose 30 of 50 shoppers would buy again. That is sixty percent. Work out the standard error, the margin, and the interval. Then compare with the pilot of forty. Ten more shoppers should make the range a little narrower. You should get a standard error of about 0.069. The margin should be about 13.6 points. And the interval should run from about 46.4% to 73.6%.
Key takeaways. A sample proportion is a guess. The interval formula wraps it in a margin. A ninety five percent interval comes from a method. That method catches the true share, about ninety five percent of the time. More data narrows it. More confidence widens it. And no interval repairs a biased sample. Next, in lesson 10.3, you will build full frequency distributions. 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 Making Estimates and Predictions from Categorical Data
How do you calculate a confidence interval for a proportion?
What does 95% confidence actually mean?
What is the difference between percent and percentage points in a margin of error?
When is the normal-approximation interval for a proportion valid?
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 →