Hypothesis Testing for Proportions, Explained

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

Hypothesis Testing for Proportions

Marketing Research · Chapter 11: Hypothesis Testing and Inferential StatisticsSection 11.7 · lesson 81 of 10111 min · free to watch

← Hypothesis Testing with Large Independent SamplesNext lesson: Hypothesis Testing for Differences Between Two Proportions →

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

In this lesson

Test a claim about one proportion with a z statistic.

  • Set up hypotheses for a claim about one proportion
  • Compute the z statistic using the claimed share in the standard error
  • Check the sample-size condition before trusting the normal curve
  • Choose a one-tailed or two-tailed test from the business question

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

Opening Question

A Magician's Ninety Percent Coin

A magician says, "I can make this coin land heads 90 percent of the time." You flip it 10 times, and see 6 heads. Do you believe the claim? Probably not. But six out of ten could happen to a fifty-fifty coin, too.

So how do you judge a claim like that? A claim about a share, a percentage of people who do something, can be tested just like a claim about an average. The steps are the ones you already know. State the hypotheses. Pick alpha. Find the test statistic. Compare it with a cutoff, or find the p-value. Then decide, and say what it means. Only the formula changes.

Here is the case. Fernway Snacks is a composite case built for teaching. Its old package led 30 percent of shoppers to try a bar. Leo's new package is meant to beat that. Out of 200 shoppers, 75 try it. That is 37.5 percent. Is that real progress? Or luck?

Learning Goals

One Share, One Z Statistic

By the end of this lesson, you will test a claim about one proportion, with a z statistic. You will choose a one-tailed or two-tailed alternative, and read the p-value. And you will check the sample-size condition, before trusting the test.

Setup

Seventy-Five Tried Where Sixty Were Expected

First, the test, step by step. Picture 200 dots, one for each shopper. The gold dots are the 75 who tried the bar. The remaining dots are the 125 who did not. Now here is the key comparison. If the old rate of 30 percent still held, we would expect only 60 gold dots.

So the analyst saw fifteen more shoppers try the bar than the old rate predicts. Is fifteen extra a lot, out of two hundred? That is the question the test answers. Even if the new package did nothing, the number of shoppers who try it would bounce around from sample to sample. Sometimes fifty-five. Sometimes sixty-five. The test measures whether seventy-five is beyond that normal bounce.

The hypotheses, in words. The null: the true share of shoppers who try the bar is still 30 percent. The alternative: the new package pushes it above 30 percent.

Hypotheses and Formula

A Right-Tailed Test of 30 Percent

In symbols, the null says p equals 0.30. The alternative says p is greater than 0.30. Here, p is the true proportion, in all shoppers. The claimed value is 0.30. Alpha is 0.05.

Notice the direction. Leo cares only about an increase. So this is a one-tailed test, a right-tailed one. And the direction was chosen before seeing the data, just as lesson 11.4 insisted.

Now the formula, in words. z is the sample proportion, minus the claimed proportion, divided by the standard error, computed as if the claim were true.

Let us name the parts. P hat is the sample proportion: x successes, out of n. P zero is the proportion in the null hypothesis. And n is the sample size. The standard error is the square root of p zero, times one minus p zero, all over n.

Standard Error

The Claimed Share Goes Under the Root

Now, a detail that matters. Notice that p zero, not p hat, goes inside the square root. Why? Because a hypothesis test works in the world where the null hypothesis is true. We judge the sample, in a world where the claim holds.

A confidence interval, from lesson 10.2, is different. It has no null hypothesis to lean on. So it uses what the sample actually showed: p hat. A test and an interval ask different questions. So they put different proportions in the standard error.

There is also a condition. N times p zero, and n times one minus p zero, should both be at least 10. Here, they are 60 and 140. Both pass easily. When the condition fails, the bell curve is a poor guide, and an exact binomial test is the safer tool.

Now, by hand. P hat is 75, over 200. That is 0.375. The standard error is the square root of 0.30, times 0.70, over 200. That is the square root of 0.00105. So it is 0.0324.

Decision

The Exact Binomial Test Agrees

The gap is 0.375, minus 0.30. That is 0.075. So z is 0.075, over 0.0324. That gives 2.315.

For a right-tailed test, at 0.05, all five percent sits in the right tail. So the cutoff is 1.645. Our z is well past it.

The decision. z, at 2.31, is beyond 1.645. And the right-tailed p-value is 0.0103. That is below 0.05. So we reject the null hypothesis.

Here is a useful cross-check. The exact binomial test needs no bell curve at all. It counts the chances directly. And it agrees, with p equals 0.0138. When two methods agree like that, you can trust the answer more. The z test is a quick approximation, built on the bell curve. The exact test is slower by hand, but software does it in a blink. With a sample this size, the two land close together, as they should.

Interpretation

Real Lift, Size Unknown

For Fernway, the new package probably lifts trial above the old 30 percent. Leo has good evidence to keep it. But be careful. The true new rate could be only slightly higher than 30 percent. The test says the lift is probably real. It does not say the lift is large. To see how large it might be, Grace would build a confidence interval for the new rate, using p hat. That interval shows the range of believable trial rates, from the cautious end to the hopeful end.

Two-Tailed Option

Is the Rate Simply Different

Next: one-tailed, or two-tailed? Suppose Leo had asked a different question: is the rate simply different from 30 percent? Then the alternative would say p is not equal to 0.30.

In that case, the cutoffs would be plus and minus 1.96. And the p-value would double, to 0.0206. Here, both versions lead to rejection. But in other studies, they can disagree.

Which approach should you use? The two-tailed test is the safe default. It also guards against a package that hurts trial. Imagine the new package had actually lowered trial. A right-tailed test would never flag that. A two-tailed test catches that.

Choosing the Tail

Let the Action Decide the Tail

Use the one-tailed form only when a drop would lead to the same action as no change. And decide that before looking at the data. Choosing the tail after peeking is a quiet way to rig the result. Think about the action each answer leads to. If a worse package and an unchanged package would both mean, keep the old one, then only an increase matters, and one tail is fair. If a worse package would trigger a different action, such as a recall, you need both tails.

The same rules apply to Type I and Type II errors. You saw them in lesson 11.1. With alpha at 0.05, there is about a five percent risk of a false alarm, if the true rate is exactly 30 percent. And a small sample raises the risk of a miss. That is the trade you met before. A stricter alpha means fewer false alarms, but more misses. A bigger sample helps with both. It is the one fix that costs money, not accuracy.

Case in Action

Same Share, Forty Versus Two Hundred

Back at the office, Leo is ready to celebrate. "37.5 percent beats 30 percent. Done!" Grace is more careful. "With 40 shoppers, 15 would also be 37.5 percent. And the evidence there would be weak. z would be about 1.03. With 200, it is solid."

The report lists the percentage and the sample size. That is a habit worth copying. A percentage on its own hides how much evidence stands behind it. A share of 37.5 percent from forty shoppers, and the same share from two hundred, look identical on a slide. But they carry very different weight. The reader deserves to know which one they are looking at.

Here is a common mistake. Someone puts p hat inside the standard error of the test, the way the interval in lesson 10.2 does. It changes z a little. But worse, it breaks the logic of "assume the null hypothesis is true." So use p zero in the test, and p hat in the interval.

Excel Tip

Spreadsheet Formula for Z and P

A pro tip, for spreadsheets. In Excel, put p hat in one cell, p zero in a second, and n in a third. A short formula then gives z. It takes the first cell, minus the second. Then it divides by the square root of p zero, times one minus p zero, over n. Then one minus the NORM dot S dot DIST function, given z, returns the right-tailed p-value.

Key Takeaways

Report the Sample Size With the Share

Key takeaways. To test one proportion, take the sample proportion, minus the claimed one, and divide by the square root of p zero, times one minus p zero, over n. Keep p zero under the root. The test is valid when n times p zero, and n times one minus p zero, are both at least 10. Compare z with 1.645 for one tail, or 1.96 for two tails, at an alpha of 0.05. Choose the tail before you look. And always report the sample size with the percentage.

Next, in lesson 11.8, you will compare two proportions, such as coupon redemption online, versus in stores. 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 Hypothesis Testing for Proportions

How do you test a single proportion?
Compare the sample share with the claimed share using z, the gap divided by the square root of the claimed share times one minus it, over n. If 75 of 200 shoppers, 37.5%, try a product against a claimed 30%, the standard error is about 0.0324 and z is about 2.31. The one-tailed p-value is about 0.0103, so the rise is significant at 0.05.
Why does the one-proportion z test use the claimed proportion in the standard error?
The test asks how surprising the sample would be if H0 were true, so the spread is computed as if the claimed share were the real one. Using 0.30 rather than the observed 0.375 describes the sampling variation under that claim. A confidence interval, by contrast, uses the sample share, because it estimates the true value without assuming the claim.
When should you use an exact binomial test for a proportion?
Use an exact binomial test when the normal approximation is doubtful, that is, when n times the claimed share or n times one minus it falls below about 10, as with small samples or rare outcomes. The exact test counts binomial probabilities directly instead of relying on the bell curve. With 200 shoppers and a claimed 30%, those counts are 60 and 140, and the exact p-value of 0.0138 agrees with the z test's 0.0103 at 0.05.
When should a proportion test be one-tailed?
Use a one-tailed test when only one direction would change the decision, such as launching only if a trial rate rises above 30%. Use two tails when a move in either direction matters, such as checking whether a rate has simply changed. The direction must be set from the business question before seeing the data, never chosen afterward to make p smaller.

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 →