Memra

Large df and the ∞ row

◈ 5 cards

Beyond df = 30 the course reads the ∞ row (z) of the t-table; R’s qt and t.test use the exact t and print a slightly wider interval — a gap the paper accepts once you can explain it.

The rule

The course's t-table stops at df and then gives one more row, , holding the critical values. The large-df rule: when , use the row. In effect, in principle, in practice — because by df 30 the 0.025 critical value is 2.042, within 4 % of 1.960, and it keeps shrinking.

The sources disagree on the wording. IBS1 says a sample of 30 or more lets you use with ; BCcampus says always use ; the handouts and the paper sit between: the distribution is , and the table row you read is . State it that way and both markers are satisfied.

Worked example — forty-four timesheets

Cedar & Stone samples staff timesheets: mean weekly hours , . A 95 % interval: is unknown so this is a t-interval, df , so the multiplier is the -row value 1.960:

What R does instead

R has no table and no row; it computes the exact quantile for df . The ladder below is a real console session:

> qt(0.975, c(10, 30, 43, 1000))
[1] 2.228139 2.042272 2.016692 1.962339
> qnorm(0.975)
[1] 1.959964

The values fall toward qnorm(0.975) as df grows — that is the convergence L9.3 promised. At df 43 R uses 2.0167, so its margin is , about 3 % wider than the hand margin, and the interval it prints is

> t.test(hours)$conf.int
[1] 72.50294 78.09706
attr(,"conf.level")
[1] 0.95

against the hand answer . Both are accepted. The paper prints R output and asks you to reconcile it; the reconciliation is one sentence: R uses where the table's row gives 1.96, so its interval is slightly wider. Not "R uses ", not "R divides by " — the SE is identical, 1.387 in both.

Reading qt

qt(p, df) returns the with cumulative probability — the value with to its left. So qt(0.975, 43) is the value with 2.5 % in the upper tail, the 95 % two-sided multiplier; and qt(0.95, 19) is the value with 5 % in the upper tail, , the table's . The table is indexed by the upper tail; R by the lower. Translate: table column = qt(1 - α, df). The mismatch is the single most common misreading of R on the paper.

NORMAL ~/memra/learn/afm-113/large-df-and-the-infinity-row utf-8 LF