0
0
SciPydata~5 mins

t-test (ttest_ind, ttest_rel) in SciPy - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Achi2_contingency
Bttest_rel
Canova
Dttest_ind
When should you use ttest_rel?
AComparing more than two groups
BComparing two unrelated groups
CComparing two related or paired groups
DTesting categorical data
What does a p-value less than 0.05 usually mean in a t-test?
ANo difference between groups
BStrong evidence of a difference
CData is not normal
DTest failed
Which assumption is NOT required for a t-test?
AData must be categorical
BGroups have equal variances
CData is normally distributed
DSamples are independent for <code>ttest_ind</code>
If you measure the same group twice, which test is best?
Attest_rel
Bcorrelation test
Cchi-square test
Dttest_ind
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.