Exam 3 · R command quiz

18 problemsEvery mix of Z / T / χ², lower / upper / two-sided, and rejection rule / p-value, once each. Neighbours never share a curve, tail or approach.
Type real RThe page runs your code: pnorm, qt, 1 - …, 2 * …, abs, lower.tail = FALSE, z <- … all work. Press Enter to run a line; Check once you have your decision.
Check, then learnWrong answers say what slipped (tail, α/2, df, curve). Answer shows the full 4-step solution.
Peek at the rules (try without first)
HₐRejection rule (cut-off = q…)p-value (area = p…)
< (lower)Z/T: reject if stat < −qnorm(1 - alpha) / −qt(1 - alpha, n - 1)
χ²: reject if stat < qchisq(alpha, n - 1)
pnorm(z) · pt(t, n - 1) · pchisq(x2, n - 1)
> (upper)Z/T: reject if stat > qnorm(1 - alpha) / qt(1 - alpha, n - 1)
χ²: reject if stat > qchisq(1 - alpha, n - 1)
1 - pnorm(z) · 1 - pt(t, n - 1) · 1 - pchisq(x2, n - 1)
≠ (two)Z/T: reject if |stat| > qnorm(1 - alpha/2) / qt(1 - alpha/2, n - 1)
χ²: reject if stat < qchisq(alpha/2, n - 1) or > qchisq(1 - alpha/2, n - 1)
2 * (1 - pnorm(abs(z))) · 2 * (1 - pt(abs(t), n - 1))
2 * min(pchisq(x2, n - 1), 1 - pchisq(x2, n - 1))
Curve: proportion → normal (no df) · mean with S → t, df = n − 1 · variance/SD → χ², df = n − 1. Reject when p-value ≤ α.