Recall & Review
beginner
What is the purpose of a t-test in statistics?
A t-test helps us compare the means of two groups to see if they are different in a meaningful way, considering the variation in data.
Click to reveal answer
beginner
What is the difference between
ttest_ind and ttest_rel in scipy?ttest_ind compares means of two independent groups (like two different classes). ttest_rel compares means of two related groups (like before and after measurements on the same people).Click to reveal answer
beginner
In a t-test, what does the p-value tell us?
The p-value shows the chance that the difference we see happened by random luck. A small p-value (usually less than 0.05) means the difference is likely real.
Click to reveal answer
beginner
When should you use a paired t-test (
ttest_rel)?Use a paired t-test when the two sets of data are linked or matched, like measuring the same people before and after a treatment.
Click to reveal answer
intermediate
What assumptions do t-tests make about the data?
T-tests assume the data is roughly normally distributed and that the groups have similar variances. For
ttest_ind, the groups should be independent.Click to reveal answer
Which scipy function compares means of two independent samples?
✗ Incorrect
ttest_ind is used for independent samples.When should you use
ttest_rel?✗ Incorrect
ttest_rel is for related or paired samples.What does a p-value less than 0.05 usually mean in a t-test?
✗ Incorrect
A p-value below 0.05 suggests the difference is statistically significant.
Which assumption is NOT required for a t-test?
✗ Incorrect
T-tests require numerical data, not categorical.
If you measure the same group twice, which test is best?
✗ Incorrect
Repeated measures on the same group use
ttest_rel.Explain the difference between
ttest_ind and ttest_rel and give an example of when to use each.Think about whether the data points in the two groups are connected or not.
You got /4 concepts.
Describe what a p-value means in the context of a t-test and how you decide if the difference is significant.
Consider how confident you are that the groups truly differ.
You got /4 concepts.