UPI Study › Courses › Marketing Research › Free lessons › Lesson 11.2 Free lesson
Understanding t-Tests: Assessing Statistical Differences Between Groups
Marketing Research · Chapter 11: Hypothesis Testing and Inferential StatisticsSection 11.2 · lesson 76 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: ANOVA: Comparing Differences Across Three or More Groups →← The Chi-Square Test: What It Measures and How to Use ItNext lesson: ANOVA: Comparing Differences Across Three or More Groups →
In this lesson
Compare two group means or one mean against a target.
- Run Welch's independent-samples t-test to compare two group means
- Run a one-sample t-test of a mean against a target value
- Read t, the degrees of freedom and the p-value on a printout
- Choose the right t-test from how the data were collected
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,515 words). Read along, or search it.
Opening Question
Would Honey Oat Win Again
Victor runs a taste test. He is the research supplier for Fernway Snacks, a composite case built for teaching. Ten people try the Honey Oat bar. Ten different people try the Berry Crunch bar. Everyone scores their bar, from one to ten.
Honey Oat averages 7.5. Berry Crunch averages 6.3. Leo is ready to pick a winner. But Nadia asks one question. If you ran this again, with twenty new tasters, would Honey Oat win again? Or did these twenty just happen to like it more?
This lesson answers her, with the t-test. You already know hypotheses, alpha, p-values and the two error types, from lesson 11.1. Here, they go to work on averages. By the end, you will run a test that compares two group means. You will run a test of one mean, against a target. And you will read three numbers on every printout: t, the degrees of freedom, and p.
History
Gosset and the Student Pen Name
First: comparing two groups, with the independent-samples t-test. A t-test asks whether a difference in averages is bigger than ordinary wobble would produce.
A bit of history. The test was published in 1908, by a brewery chemist, William Gosset. He wrote under the pen name "Student," and he needed a way to judge tiny samples. A brewery cannot taste a thousand batches. It tastes a few. Gosset wanted to know when a few is enough.
The Data
Twenty Ratings You Can Recheck
Here are the ratings, so you can redo every step. Grab a pencil, if you like. Honey Oat: seven, eight, six, nine, seven, eight, seven, nine, six, eight. For the second bar, the ratings are: six, seven, five, eight, six, six, seven, five, seven, six. Each recipe has ten ratings, from different tasters. Add up Honey Oat, and you get seventy-five. Divide by ten, and the mean is 7.5. Berry Crunch adds up to sixty-three, so its mean is 6.3. Those are the two averages Leo saw.
Now, the hypotheses, in words. The null: the two recipes have the same true mean rating. The alternative: the true means differ. In symbols, the null says mu one equals mu two. The alternative says they are not equal. That is a two-tailed test. Mu one and mu two are the true means, of all possible tasters. Alpha is 0.05.
Welch Formula
Gap Divided by Its Standard Error
The formula, in words. t is the difference between the two sample means, divided by the standard error of that difference.
And that standard error? Take each group's sample variance, the squared standard deviation from lesson 9.5. Divide it by that group's size. Add the two results, and take the square root.
This is Welch's t-test. It does not assume the two groups have equal variances. So it is a safe default. The older "pooled" test assumes equal variances. With groups this alike, it gives almost the same answer.
Signal and Noise
Fractional Degrees of Freedom
Why the square root, and why divide by the group size? Bigger groups give steadier averages. So a bigger group shrinks the noise, and a real gap becomes easier to see. That is the whole reason a larger panel helps. Then there are the degrees of freedom, or df. That is the number that picks which t curve to use. For Welch's test, they come from the Welch-Satterthwaite formula. And they are usually not a whole number.
Here is the whole idea, in one picture. Every t statistic is signal, divided by noise. The signal is how far apart the groups are. The noise is how much sample averages wobble.
Worked Example
A Gap of 1.20 Points Against the Noise
Picture the twenty ratings as dots, on a line from one to ten. Honey Oat's dots sit a little to the right. Berry Crunch's dots sit a little to the left. A dashed red line marks each mean. The means are 7.50 and 6.30. But the groups overlap. Some Berry Crunch tasters gave an eight. Some Honey Oat tasters gave a six. So the question is whether the gap is bigger than wobble.
The gap is 1.20 points. The standard error is 0.4546. So t equals 2.640.
Now, the t curve. It is like the bell curve, but with fatter tails. Why? With small samples, the standard deviation itself is uncertain. And fewer degrees of freedom means fatter tails.
Here, df is 17.71. With that, the cutoff for the extreme five percent is 2.103. That is two and a half percent in each tail. It sits a little above the 1.96 you will meet in lesson 11.4.
Decision
Honey Oat Wins at the 0.05 Level
Our t, of 2.64, lands beyond the cutoff. Only about 1.7 percent of the time would luck alone produce a gap this big, in either direction.
The decision. The p-value is 0.0168. That is below 0.05. And t, at 2.64, is beyond 2.103. So we reject the null hypothesis.
For Fernway, the data give good evidence that tasters like Honey Oat more. So Leo may favor it. Still, ten tasters is a small panel. Notice what changed Nadia's question into an answer. It was not the gap alone. It was the gap, measured against the noise. A gap of 1.20 points with a lot of wobble could be luck. The same gap with little wobble is hard to explain away.
One-Sample Test
Testing a Mean Against a 7.0 Target
Next: comparing one group with a target, the one-sample t-test. Sometimes there is no second group. There is only a target. Fernway wants its new bar to average 7.0 or better, on the ten-point scale. Twelve shoppers rate it.
The null hypothesis: the true mean is 7.0. In symbols, mu equals mu zero, where mu zero is the target. The alternative: the true mean is not 7.0. Alpha is 0.05.
The formula, in words. t is the sample mean, minus the target, divided by the standard error of the mean.
The standard error of the mean is the sample standard deviation, divided by the square root of the sample size. You met it in lesson 9.4. And the degrees of freedom are simple here. They are n minus one. With twelve shoppers, that is 11.
So what happened? The sample mean was 7.58. That is above 7.0. Yet t was 2.03. With 11 degrees of freedom, the cutoff is 2.201. So t does not reach it.
Decision
Not Enough Evidence to Beat the Target
The decision. The p-value is 0.0674. That is above 0.05. So we fail to reject the null hypothesis.
For Fernway, twelve ratings averaging 7.58 are not enough to say the bar truly beats 7.0. A bigger sample could settle it. But that is not the same as saying the true mean is 7.0. The test simply could not tell the two stories apart. Maybe the bar truly beats the target. Maybe twelve friendly shoppers gave it a lift. With so few ratings, the standard error is large, so the signal does not stand out.
Leo feels frustrated. "7.58 beats 7.0!" Grace draws two dots on a napkin. "In this sample, yes. In all shoppers? The test says twelve people could easily wobble this far, by luck." Nadia orders twenty more ratings. That is the right move. More data shrinks the noise, so a real gap has a better chance to show.
Choosing the Test
Who Gave These Numbers
Now, a common mistake. Do not use an independent-samples test when the same people rated both items. If each shopper tasted both bars, the two sets of ratings are linked. Lesson 11.9 shows the paired test that respects that link. The reverse mistake, pairing unrelated groups, is just as wrong. So before you run any t-test, ask a simple question. Who gave these numbers? Two separate sets of people? One set, against a target? Or one set of people, twice? The answer picks the test. Lesson 11.1 gave you the logic. This lesson gives you two of the tools. Later lessons cover paired data, three or more groups, and a known standard deviation.
A pro tip, for spreadsheets. In Excel, T.TEST returns the p-value. Give it the two ranges, then a two, for two tails, and a three, for unequal variances. That three means Welch's version.
Caution
Bell Shapes or Larger Samples
One more caution. The t-test works best when the numbers are roughly bell-shaped within each group, or when the samples are not tiny. Lesson 11.5 covers what to do, when they are not.
Try it yourself, and watch the sample size at work. In the one-sample practice file, add eight more ratings of your own, mostly sevens and eights. That makes 20 ratings. Predict before running. Will the p-value shrink or grow, as the sample grows, and the mean stays near 7.6?
Key Takeaways
Signal Over Noise in Brief
Key takeaways. Remember Nadia's question: would Honey Oat win again? A t-test is how you answer it. A t-test is signal over noise. It takes the gap between two means, or between a mean and a target, and divides it by its standard error. It judges the result against a t curve, whose tails are fatter when the degrees of freedom are small. Use Welch's version for two independent groups. Use n minus one degrees of freedom, for one sample. And a p-value above 0.05 means not enough evidence. It does not mean no difference.
Next, in lesson 11.3, you will compare three or more group means at once, with ANOVA. 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 Understanding t-Tests: Assessing Statistical Differences Between Groups
What is an independent-samples t-test used for?
What is Welch's t-test and when should you use it?
What is a one-sample t-test?
Does a p-value above 0.05 mean there is no difference?
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 →