Hypothesis Testing with Large Independent Samples, Explained

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

Hypothesis Testing with Large Independent Samples

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

← Parametric and Non-Parametric Tests in Marketing ResearchNext lesson: Hypothesis Testing for Proportions →

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

In this lesson

Compare two large independent means with z and judge practical importance.

  • Compute a two-sample z statistic for the difference between two large-sample means
  • Build a confidence interval for the difference and link it to the test
  • Explain why large samples let z replace t
  • Separate statistical significance from practical importance

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

Opening Question

Tasting From a Bucket, Not a Cup

Imagine tasting soup from a tiny cup. Your impression could be off, so you stay cautious. Now imagine tasting from a whole bucket. You trust it far more. Large samples work the same way.

Take Fernway Snacks, a composite case built for teaching. With hundreds of shoppers in each group, the small-sample test’s shaky parts almost vanish. The uncertain standard deviation, and the fat tails, fade away. And the simpler z test can compare two groups of different shoppers.

Here is her question. Online shoppers seem to spend more per basket than grocery shoppers. Is that real? Or is it just the luck of who landed in the sample?

Learning Goals

What the Two-Sample Z Test Covers

By the end of this lesson, you will compute a two-sample z statistic, for the difference between two means. You will explain why large samples let the sample standard deviation stand in for the unknown population one. And you will tell statistical significance apart from practical importance. That last idea may be the most useful one in the whole part. Keep it in mind, every time a printout says significant.

The Data

Online and Grocery Basket Spend

First: two big samples, one z. Grace has two independent samples. That means no shopper is in both. The online group and the grocery group are different people. That matters. If the same shoppers had been measured twice, the two sets of numbers would be linked, and you would need the matched-sample tests of lesson 11.9. Here, the groups are separate, so their wobbles are separate too. The numbers are an invented summary, for teaching.

Online: 150 shoppers, with a mean basket of $24.80, and a standard deviation of $8.4. Grocery: 180 shoppers, with a mean of $23.10, and a standard deviation of $9.1.

The z test works here. Two reasons. With big samples, the sample standard deviations are reliable stand-ins, for the unknown population ones. And the sample means are close to bell-shaped, as lesson 9.4 showed. So z replaces t.

Formula

Combining Two Samples' Wobble

The hypotheses, in words. The null: online and grocery shoppers have the same true mean basket spend. The alternative: the means differ. In symbols, the null says mu one equals mu two. The alternative says mu one is not equal to mu two. Alpha is 0.05, and the test is two-tailed.

Now the formula, in words. z is the difference between the two sample means, divided by the standard error of that difference. That standard error combines the two samples' wobble.

How does it combine them? For each group, square the standard deviation, and divide by the sample size. That is the group's variance of the mean. Add the two, and take the square root of the whole sum.

Worked Example

Variances Add Before the Square Root

It is the same shape as Welch's t, from lesson 11.2. The only change is that we now compare it with the normal curve. Same signal, same noise, a slightly different yardstick. With small samples, the yardstick is the t curve. With big samples, the normal curve does the job.

Why add the squares, and not the standard errors themselves? Because wobbles add as variances. Two independent random wobbles combine by adding their variances. That is why the square root sits over the whole sum. And it means the difference wobbles more than either mean does on its own.

Now, by hand. 8.4 squared, over 150, is 0.4704. 9.1 squared, over 180, is 0.4601. Add them, and take the square root. The standard error is 0.9646.

The gap is 24.80, minus 23.10. That is 1.70. So z is 1.70, divided by 0.9646. That gives 1.762.

Decision

An Interval That Includes Zero

Now compare it with the cutoffs. For a two-tailed test at 0.05, they are plus and minus 1.96. Our z, at 1.76, falls inside them. So the evidence is not strong enough.

The decision. The size of z, 1.76, is below 1.96. And the p-value, 0.0780, is above 0.05. So we fail to reject the null hypothesis.

The ninety-five percent interval for the gap tells the same story. It runs from a loss of 0.19 dollars, up to 3.59 dollars. And that range includes zero. So zero, no gap at all, is still a believable answer. The interval and the test tell the same story. When a ninety-five percent interval includes zero, the two-tailed test at 0.05 fails to reject. When the interval sits entirely above zero, or entirely below it, the test rejects. They are two views of the same evidence. The interval has one big advantage, though. It shows the size of the gap, not just a yes or no.

Interpretation

Failing to Reject Is Not Proof of Equality

For Fernway, online baskets look about $1.70 bigger, in this sample. But with these samples, the gap could still be luck. And failing to reject is not proof of equal spending. It only says the evidence fell short. The true gap might be zero. It might be a few dollars. This sample cannot tell those stories apart, with confidence.

Why Large Works

T Cutoffs Shrink Toward 1.96

Next: why "large" makes z safe. For small samples, the t curve is fatter in the tails than the normal curve. That is because the standard deviation is uncertain. But as the degrees of freedom grow, the t curve and the normal curve become nearly identical.

Watch the cutoff shrink as degrees of freedom rise. At 2 degrees of freedom, it is 4.30. At 5, it is 2.57. At 10, it is 2.23. At 30, 2.04. At 120, 1.98. And at 300, 1.97.

So by 150 or 300 degrees of freedom, the t cutoff is within 0.02 of 1.96. The difference hardly matters. A cutoff of 1.97 or 1.98, instead of 1.96, will almost never flip a decision. Software makes the choice easy, too. That is why the Python run shows Welch's t and the z test giving nearly the same p-value.

Plain Words

Big Samples Estimate Their Own Spread

In plain words, a big sample estimates its own spread very well. So there is almost no extra doubt left to build in. The fat tails were there to protect you from a shaky standard deviation. With hundreds of shoppers, the standard deviation is no longer shaky.

Sample Size Effect

Big Samples Make Small Gaps Significant

Next: significant is not the same as important. The last line of the output asks a what-if. Keep the same $1.70 gap, and the same standard deviations. But survey ten times as many shoppers: 1,500 online, and 1,800 at the grocery.

What happens? The standard error drops to about a third. And z jumps to 5.57, with p far below 0.001. The shoppers did not change. Only the sample size did. Why a third? The sample size sits under a square root, inside the standard error. Ten times the shoppers shrinks the standard error by the square root of ten, which is a little more than three. So the same gap now looks more than three times as large, measured in standard errors.

So a big enough sample makes almost any gap "statistically significant." That is why you must always ask two more questions. How big is the gap, in dollars? And is it worth acting on?

Practical Importance

Real Is Not the Same as Worth Money

Keep the two ideas apart. Statistical significance answers one question: is it probably not luck? Practical importance answers a different one: does it matter?

Imagine a gap of a few cents per basket, measured on a huge sample. It can be statistically significant, and still be too small to change a single decision. A test can tell you a gap is real. Only judgment can tell you it is worth money. Would a gap that small cover the cost of moving the ad budget? Would it change which stores get the new bar? If not, the significant result is interesting, but not useful.

Back at the office, Leo wants to shift the ad budget to online shoppers. Grace shows him the interval. "Anywhere from a slight loss, to about $3.60 more. Not yet convincing."

Common Mistake

Almost Significant Is Not Significant

Nadia asks how many more shoppers would settle it. That is a sample-size question, the kind you met in lesson 3.6. It is a smart move. Rather than guess, plan a sample big enough to see a gap that would matter.

Here is a common mistake. Someone calls p equals 0.078 "almost significant," and reports the difference as real. But a p-value above alpha means the evidence fell short. So report the result, the interval, and the sample size. Then let readers see how close it was. Honest reporting lets a manager weigh the risk. Dressed-up reporting takes that choice away. And if the gap really matters, the fix is simple: collect more data, and test again, with the plan written down first.

Key Takeaways

Judge the Size of the Gap Too

Key takeaways. For two large independent samples, z is the gap between the two means, divided by the square root of the sum of each variance over its sample size. Compare it with the normal curve, using cutoffs of 1.96 and 2.576. With large samples, t and z nearly agree. And a bigger sample makes smaller gaps significant, so always judge the size of the gap, too.

Next, in lesson 11.7, you will test a single proportion, such as the share of shoppers who try a new bar. 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 with Large Independent Samples

How do you run a two-sample z test for means?
Divide the gap between the two sample means by the square root of each sample's variance over its size, added together. Online baskets averaging $24.80, SD $8.40, from 150 shoppers against grocery baskets averaging $23.10, SD $9.10, from 180 shoppers give a standard error of about 0.965 and z of 1.76. The two-tailed p-value is about 0.078, so the gap is not significant at 0.05.
What is the difference between statistical and practical significance?
Statistical significance says a gap is unlikely to be chance alone; practical significance asks whether the gap is big enough to matter for a decision. Very large samples can make tiny gaps significant. The same $1.70 basket gap with ten times as many shoppers in each group gives z of about 5.57, yet whether $1.70 justifies action is a business judgment.
Why can you use z instead of t with large samples?
With large samples, the sample standard deviation is a reliable estimate of the population value, and the t distribution becomes almost identical to the normal curve. The two-tailed 0.05 cutoff for t is about 4.30 with 2 degrees of freedom, 1.98 with 120 and 1.97 with 300, close to the z cutoff of 1.96, so z gives practically the same answer.
How does a confidence interval relate to a two-sample z test?
A 95% interval for the difference is the gap plus or minus 1.96 standard errors. If the interval includes zero, the two-tailed test at 0.05 does not reject H0. For the basket example, $1.70 plus or minus 1.96 times 0.965 runs from about -$0.19 to $3.59, which includes zero, matching the p-value of 0.078.

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 →