Understanding t-Tests: Assessing Statistical Differences Between Groups

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

← The Chi-Square Test: What It Measures and How to Use ItNext lesson: ANOVA: Comparing Differences Across Three or More Groups →

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

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.

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 Understanding t-Tests: Assessing Statistical Differences Between Groups

What is an independent-samples t-test used for?
It tests whether two separate groups, such as tasters of two different recipes, have different true mean scores. The t statistic divides the gap between the sample means by the standard error of that gap. In one example, means of 7.5 and 6.3 from ten tasters each give t of 2.64 and a p-value of 0.0168, so the means differ at the 0.05 level.
What is Welch's t-test and when should you use it?
Welch's t-test compares two independent means without assuming equal variances. Its standard error is the square root of each group's variance divided by its size, summed, and its degrees of freedom come from the Welch-Satterthwaite formula, often a fraction. Because it stays valid when spreads differ, it is a safe default. In Excel, T.TEST with tails set to 2 and type set to 3 runs it.
What is a one-sample t-test?
A one-sample t-test checks whether a mean differs from a target value. Compute t as the sample mean minus the target, divided by the sample standard deviation over the square root of n, with n minus 1 degrees of freedom. Twelve ratings averaging 7.58 against a 7.0 target give t of 2.03 and a p-value of 0.0674, short of significance at 0.05.
Does a p-value above 0.05 mean there is no difference?
No. It means the data did not provide enough evidence to reject H0, not that the true means are equal. With small samples the standard error is large, so even a real gap can fail to stand out. Collecting more data shrinks the noise and gives a genuine difference a better chance to show.

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 →