Sampling error · p-values · null and alternative hypotheses · one-sample t-test
Paired observations versus independent groups
Whether two observations are paired or independent.
Null and alternative hypotheses for two-mean questions.
Paired and independent-samples t-tests with the M303 Web Tools.
Means, test statistics, and one- or two-tailed p-values.
A p-value is the probability of observing data this extreme, or more extreme, if H₀ were true.
A larger p-value provides stronger evidence against H₀.
“No effect” or “no difference” usually belongs in the alternative hypothesis.
A one-sample t-test compares one population mean with a benchmark.
Compare a mean with a benchmark.
Compare two linked means.
Compare means across independent groups.
Test association between categories.
Example: each participant rates both KitKat and Twix.
Example: willingness to pay before and after a direct-mail campaign.
The test analyzes the mean of the within-person differences—not two unrelated group means.
Each participant rates both brands on the same 1–11 favorability scale.
Are the two population mean evaluations different?
The source output uses all 25 paired observations; the source data illustration displays the values shown here.
Instructions and required data files will be posted on Canvas.
Load the data with one row per respondent and both measurements in separate columns.
Select the two continuous variables in the correct comparison order.
Choose the two-tailed, right-tailed, or left-tailed alternative.
Run the test and record the two means, mean difference, test statistic, and p-value.
Use when the question is whether the two means differ: Hₐ: μD ≠ 0.
Use when the first mean is hypothesized to be higher: Hₐ: μD > 0.
Use when the first mean is hypothesized to be lower: Hₐ: μD < 0.
Then report the direction and size of the mean difference in the language of the brand question.
An online retailer records weekly revenue for the same 500 customers before and after sending an email offer.
Did the campaign increase average weekly revenue?
Identify the two paired columns.
Write a directional alternative.
Run the paired t-test and translate the result into a campaign decision.
Minutes on a website · purchase amount · liking score.
Group A vs. Group B, with different observations in each group.
Example: Is average time spent on Amazon different across two customer groups?
The manager records the number of minutes customers spend on Amazon before ordering. Customer records include two gender groups.
Does average time on the site differ between the groups?
The source labels these groups Female and Male; M303 uses neutral group labels while retaining every displayed value.
Instructions and required data files will be posted on Canvas.
Load one continuous outcome and one two-level grouping variable.
Select the outcome and identify the two groups to compare.
Choose the alternative direction before viewing the result.
Run the test and record each group mean, the mean difference, test statistic, and p-value.
Use when the question is whether the two group means differ.
Use when Group 1 is hypothesized to have the higher mean.
Use when Group 1 is hypothesized to have the lower mean.
The group means answer “which group is higher, and by how much?”
Does mean purchase amount differ across two gender groups?
Yes / NoDoes mean purchase amount differ across degree groups?
Yes / NoDoes mean purchase amount differ across marital-status groups?
Yes / NoIf a grouping variable has three or more levels, move to ANOVA.
Brand A and Brand B ratings from each participant · revenue before and after the email.
Time on site for Group A vs. Group B · purchase amount across two customer groups.
Paired t-test: compare two linked continuous measurements from the same unit.
Independent-samples t-test: compare one continuous outcome across two separate groups.
State the direction of Hₐ before selecting the matching one- or two-tailed p-value.
Interpret the group means and difference—not only the significance decision.