The t-test
Comparing the means of two groups and deciding whether the gap is bigger than chance.
Lesson 6 of 24~31 min of learningIncludes ~20 min for questions and tasks
Contents1 of 51 steps
Alex Tutor
You
Alex Tutor
You
Alex Tutor
Alex Tutor
Dataset · 20 rows
Checkout widget A/B test, one week
20 orders: 10 sessions without the upsell widget (control) and 10 with it (variant). Synthetic data made for this course.
- Columns
- order_id
- Order number
- group
- control (no widget) or variant (widget shown)
- order_value
- Order value, USD
Data
| order_id | group | order_value |
|---|---|---|
| CC-2001 | control | 38 |
| CC-2002 | control | 42 |
| CC-2003 | control | 45 |
| CC-2004 | control | 40 |
| CC-2005 | control | 47 |
Show 15 more rows
| CC-2006 | control | 43 |
| CC-2007 | control | 41 |
| CC-2008 | control | 44 |
| CC-2009 | control | 39 |
| CC-2010 | control | 46 |
| CC-2051 | variant | 50 |
| CC-2052 | variant | 54 |
| CC-2053 | variant | 47 |
| CC-2054 | variant | 52 |
| CC-2055 | variant | 58 |
| CC-2056 | variant | 49 |
| CC-2057 | variant | 55 |
| CC-2058 | variant | 51 |
| CC-2059 | variant | 53 |
| CC-2060 | variant | 56 |
You
Alex Tutor
Alex Tutor
Question 1
Which scenario calls for the classic (independent-samples) t-test?
Alex Tutor
Alex Tutor
You
Alex Tutor
Alex Tutor
Alex Tutor
Question 2
Control: n₁ = 10, mean 42.50,s1=3.03. Variant: n₂ = 10, mean 52.50,s2=3.37. Using the pooled-variance formula, what is the standard error of the difference between the two means?
Units: USD (e.g. 1.25)
You
Alex Tutor
You
Alex Tutor
Question 3
The pooled standard error of the difference is $1.4337. The variant mean is $52.50 and the control mean is $42.50. What is Student's t-statistic?
Units: t (e.g. 2.50)
Alex Tutor
You
Alex Tutor
Alex Tutor
You
Alex Tutor
Question 4
With df = 18 and a critical value of 2.101 at the 5% level, a calculated t of 6.97 means we reject the null hypothesis that the two group means are equal.
You
Alex Tutor
You
Alex Tutor
Alex Tutor
Question 5
Match each term to its definition.
Tap an answer, then tap the row it belongs to. You can also drag.
- Null hypothesis (H0)
- Alternative hypothesis (H1)
- Degrees of freedom
- Critical value
Answers left to place
Alex Tutor
You
Alex Tutor
Alex Tutor
Question 6
Which of these are assumptions behind the classic (pooled) Student's t-test for independent samples? Select all that apply.
You
Alex Tutor
You
Alex Tutor
Alex Tutor
Question 7Short answer · AI-checked task
Sofia said the result 'feels obvious' and the test seems like overkill. In 2-3 sentences, explain why running the t-test still mattered here, even though the conclusion turned out to be clear-cut.
Write your answer and get a score with feedback from our AI reviewer.
Log in to get AI feedbackYou
Alex Tutor
You
Alex Tutor
Question 8Case · AI-checked task
Review the checkout team's claim below.
The checkout team ran their own test on a 'free sample treat' banner: control mean order value 41(n=60,s=22), variant mean 46(n=60,s=21). They computed t ≈ 1.28 with df = 118, compared it to a critical value of about 1.98 at the 5% level, and posted: 'Banner didn't work, t is below the critical value, killing it.' Is this the right conclusion? What, if anything, would you push back on or want to see before agreeing?
Write your answer and get a score with feedback from our AI reviewer.
Log in to get AI feedbackAlex Tutor
That’s the lesson. You answered every task — nicely done.