Describe a scenario where you would use a t-test.
Instruction: Provide an example situation that would necessitate the use of a t-test.
Updated
Official answer
Suppose users are independently randomized to two onboarding flows and the outcome is total completed tasks per assigned user during a fixed week. To compare mean outcomes, a two-sample Welch t-test can be appropriate when its sampling approximation is adequate. It allows unequal group variances.
Its statistic is t = (meanB−meanA) / sqrt(sB²/nB + sA²/nA), with Welch–Satterthwaite degrees of freedom. Check the assignment and analysis units, extreme observations, skew and sample size. Small-sample normal theory is less reliable with highly skewed outcomes; repeated user events must not be treated as independent users.
A paired t-test addresses a different design, such as repeated measurements on the same units. It operates on within-pair differences; independence across pairs and the distribution of those differences matter. Equal group variances are not a requirement of Welch's test.
For binary conversion outcomes, use a prespecified method suitable for proportions and the available counts; do not assume normally distributed individual binary outcomes. In every case report the estimated difference and interval, and distinguish evidence against a null from practical importance.
Source: NIST two-sample t-test.
Related Questions
-
easy
-
medium
-
medium
-
medium
-
medium
-
medium