=Z.TEST(array, x, [sigma])
Returns the one-tailed p-value for testing \(H_0: \mu = x\) when σ is known.
If σ is omitted, sample SD is used.
Sample of 100 students has mean IQ 105, σ = 15. Test \(H_0: \mu = 100\).
In Excel: =Z.TEST(scores_range, 100, 15) → say 0.0004 (one-tailed). Two-tailed p = 0.0008 ⇒ reject \(H_0\).
City A scores in A2:A201 (n₁ = 200, σ₁² = 16). City B in B2:B251 (n₂ = 250, σ₂² = 25). Run ToolPak's z-Test Two-Sample → output gives z = 4.71, two-tail p ≈ 0 ⇒ reject; means differ.
=T.TEST(array1, array2, tails, type)
Returns the p-value directly — no test-statistic.
Data → Data Analysis → choose one of:
| Situation | Test (type) |
|---|---|
| Same subjects measured twice | Paired (type 1) |
| Two independent samples, σ's roughly equal | Equal variances (type 2) |
| Two independent samples, σ's clearly differ | Welch's (type 3) |
Sample of 10: mean 70.7, SD 2.79. Test \(H_0: \mu = 68\) using =T.TEST isn't possible for a single sample directly; instead compute:
=(70.7-68)/(2.79/SQRT(10)) → t = 3.06; p = =T.DIST.2T(3.06, 9) ≈ 0.013 ⇒ reject \(H_0\).
Before-after readings of 8 patients in A2:A9 and B2:B9.
=T.TEST(A2:A9, B2:B9, 2, 1) → returns the two-tailed paired p-value. Use ToolPak's "t-Test: Paired Two Sample for Means" to also get the t statistic and critical values.
=F.TEST(array1, array2)
Returns the two-tailed p-value for \(H_0: \sigma_1^2 = \sigma_2^2\).
Tip: ToolPak places the larger variance in numerator if you arrange Variable 1 accordingly. The reported p-value is one-tailed; multiply by 2 for two-tailed.
Two production lines' diameters in A and B; =F.TEST(A2:A21, B2:B21) → 0.02 (two-tail). p < 0.05 ⇒ reject equal-variances assumption; use Welch's t-test next.
Two classes' scores in A2:A12 (n=11, s² = 25), B2:B17 (n=16, s² = 16). F = 25/16 = 1.5625. ToolPak gives F-Critical 2.54 ⇒ accept H₀ (variances equal).
Used when there is one observation per cell of a row × column design (e.g., RBD).
Used when there are multiple observations per cell — analyses row, column, interaction and error.
Specify "Rows per sample" in the dialog — Excel needs equal rows per cell.
Three fertilizers with 4 replicates each (4 rows × 3 columns).
ToolPak output:
| Source | SS | df | MS | F | p | F-crit |
|---|---|---|---|---|---|---|
| Between | 258.67 | 2 | 129.33 | 24.25 | 0.0003 | 4.26 |
| Within | 48.00 | 9 | 5.33 | |||
| Total | 306.67 | 11 |
F = 24.25 > 4.26 ⇒ reject H₀; fertilizers differ.
Yields of 3 fertilizers × 4 varieties (12 cells, one obs each). Two-Factor Without Replication splits SS into Rows (Fertilizers), Columns (Varieties) and Error, giving two F-tests.
=CHISQ.TEST(actual_range, expected_range)
Returns the p-value for \(\chi^2 = \sum (O - E)^2 / E\). Works for any \(r \times c\) table.
=CHISQ.TEST(observed_range, expected_range) → p-value.=SUMPRODUCT((O - E)^2 / E).Use observed counts and expected counts from your hypothesised distribution (Binomial, Poisson, Uniform, etc.). Same =CHISQ.TEST formula applies.
2 × 2 table: Smoker vs Cancer with observed 60, 40, 20, 80.
Row totals 100, 100; Col totals 80, 120; Grand total 200. Expected: 40, 60, 40, 60.
=CHISQ.TEST(O_range, E_range) → p ≈ 7.8E-9 ⇒ reject independence.
Die rolled 60 times, observed faces 8, 11, 9, 12, 10, 10 (expected 10 each). =CHISQ.TEST(O, E) → p = 0.96 ⇒ accept H₀; die is fair.
| Question | Excel Tool |
|---|---|
| Single mean, σ known, large n | =Z.TEST |
| Single mean, σ unknown, small n | Manual t (formula) or T.DIST.2T |
| Paired samples (before-after) | =T.TEST(...,2,1) or ToolPak Paired t |
| Two independent means, σ's equal | =T.TEST(...,2,2) or ToolPak Equal Var |
| Two independent means, σ's differ | =T.TEST(...,2,3) or ToolPak Welch |
| Equality of variances | =F.TEST or ToolPak F-Test |
| 3+ group means | ToolPak ANOVA Single Factor |
| Two factors | ToolPak ANOVA Two-Factor |
| Independence / Goodness of Fit | =CHISQ.TEST |
Click-through rate of design A in column A, design B in column B (large samples). Use ToolPak's two-sample z-test on proportions (or chi-square on 2 × 2 table of clicks vs no-clicks). p-value decides which design is preferred.
Baseline and post-treatment blood pressure of 30 patients. Paired t-test in Excel decides whether the drug significantly reduces BP.
Three teaching methods, 20 students each. One-way ANOVA → if significant, follow up with pairwise t-tests with Bonferroni correction.
Z.TEST, T.TEST, F.TEST, CHISQ.TEST return p-values directly.