Memra

The one-sample t-test and bracketing p

◈ 6 cards

With σ unknown the statistic is t = (x̄ − μ₀)/(s/√n) on n − 1 df; the critical value comes from the t-table and the p-value is trapped between two of its columns.

s for σ, t for z

When is unknown the four steps are unchanged and the statistic swaps in the sample SD:

Under this has Student's t-distribution (L9.3), so the critical value comes from the t-table — row , column (one-sided) or (two-sided) — and the p-value comes from the same table as a bracket. The choice between z and t is made by whether is given, never by : a large with moves you to the row of the t-table, which is still a t-test.

Worked example — do files take longer than budgeted?

Cedar & Stone Accounting budgets 50 hours to complete a client file. The partner suspects files take longer. A sample of files: hours, hours. Test at .

Step 1. , ; is the mean completion time for all files. Upper-tailed, from longer.

Step 2. ;

Step 3 — critical value. Row 15, column 0.05: . Rejection region .

Step 3 — p-value, bracketed. Row 15 of the table reads

0.100.050.0250.01
1.3411.7532.1312.602

The statistic 1.875 sits between 1.753 and 2.131, so the tail area beyond it lies between the two column headings:

No interpolation: the bracket is the answer, and it is enough — the whole bracket lies below . (R's exact value is 0.0402, inside the bracket.)

Step 4. , equivalently : reject at the 5 % level. There is evidence that the mean time to complete a file exceeds the 50-hour budget. At the bracket sits entirely above 0.01, so the same data would not reject.

Condition: , so the test relies on completion times being roughly normal — check the sample for skew and outliers, and say so.

When the bracket straddles α

Sometimes the bracket contains : a of 2.3 sits between 2.131 (0.025) and 2.602 (0.01), giving — decisive at 5 %, decisive at 1 %, but at the table cannot say. Then the critical-value route decides ( is not tabulated either, so on the paper such a question is not set); in R, pt gives the exact value. In this course the bracket and the critical value always agree, because they read the same row.

Two-sided brackets

For the same is compared with — do not reject — and the bracket is doubled at both ends: . Doubling both ends is the one-line rule; L10.8 shows R printing 0.0804, inside it.

NORMAL ~/memra/learn/afm-113/the-one-sample-t-test-and-bracketing-p utf-8 LF