Drill 1: groups and designs
Eight short study descriptions. Name the method and why. The choices are mixed on purpose, because telling problems apart is the skill.
What runs in CodeSplash
- Two-sample t-test (Welch / Student, or z test) Verified in Python and R
- Paired t-test Verified in Python and R
- One-way ANOVA (Welch / classic) Verified in Python and R
- Repeated-measures ANOVA (one within factor) Verified in Python and R
- Mann–Whitney U test Verified in Python and R
- McNemar's test (paired proportions) Verified in Python and R
- Yuen's trimmed-means t-test (independent or paired) Verified in Python and R
- Linear mixed model (random intercepts and slopes) Verified in Python and R
- Friedman test (repeated measures, ranks) Verified in Python and R
You will be able to
- Choose a comparison method from a short description of a study
- Spot paired, repeated and clustered designs in plain language
How to work a drill
ReadRead the study, not the options. Ask four questions in order, and only then look:
- What is the outcome type?
- How many groups or conditions?
- Are rows independent, or linked?
- Is there anything unusual: outliers, an ordered scale, clusters?
Spaced, mixed practice like this feels harder than practicing one test at a time. That difficulty is what makes it stick.
Round one
CheckpointCheck yourself
Sixty mice are randomized to a new diet or a standard one. Weight gain looks roughly symmetric. Which fits best?
Show the answer
Answer: a
Two independent groups with a numeric outcome. Welch doesn't assume equal variances. ANOVA would also work mathematically, but post hoc tests have no role with two groups.
Check yourself
Thirty runners run 5 km in old and in new shoes, in random order. Which fits best?
Show the answer
Answer: b
Each runner appears twice, so analyze the within-runner difference. It removes large runner-to-runner variation.
Check yourself
Four teaching methods, with 25 different students each and a numeric test score. Variances may differ. Which fits best?
Show the answer
Answer: c
Several independent groups. Unadjusted t tests inflate the error rate, and Welch with Games–Howell handles unequal variances.
Check yourself
Twenty patients rate pain at baseline and at weeks 2, 4 and 8, on a 0–100 scale. Which fits best?
Show the answer
Answer: b
Same patients, several times. Watch the sphericity row, and consider a mixed model when visits are missing.
Round two
CheckpointCheck yourself
Two independent groups rate a product from 1 to 5. Which is the most defensible?
Show the answer
Answer: b
An ordinal outcome and independent groups. Mann–Whitney uses order without assuming equal spacing, and its card reports a probability of superiority.
Check yourself
A hundred users answer "would you recommend us?" (yes or no) before and after a redesign. Which fits best?
Show the answer
Answer: c
A yes/no outcome measured twice on the same people. McNemar reads only the users who changed their answer.
Check yourself
Two groups of order values, with a heavy right tail and a few enormous orders. You want a stable comparison of typical orders. Which fits best?
Show the answer
Answer: b
Yuen resists heavy tails and allows unequal variances. Be clear about the changed estimand, or add a bootstrap on means if the total matters.
Check yourself
Thirty schools are randomized to a new curriculum, with test scores for 2,000 students. Which fits best?
Show the answer
Answer: b
The school is the unit of assignment. Ignoring that treats clustered students as independent and overstates certainty.
One more, with a twist
PredictPredict first
Twelve judges rank the same five wines. You want to know whether the wines differ. What is your starting point?
Reveal
Friedman. Ranks within each judge make the judge a block, and the data are ordinal. Follow a significant result with its own pairwise procedure, such as Nemenyi.
Check with the real thing
In the appTake the study closest to your own work, and describe it to the Test Chooser. Bind the outcome, group and subject columns, and see whether it lands where you did. When you disagree, read the reason it gives.
Recap
Recap- Outcome type, number of groups and how rows relate decide most comparisons.
- Hunt for linkage: repeat visits, matched subjects, shared classrooms.
- Name the changed estimand when you take a robust or rank-based route.