Contact

TTEST in Apple Numbers: Paired and Two-Sample t-Tests

Statistical Advanced Apple Numbers

Run a paired, equal-variance or unequal-variance two-sample t-test in Apple Numbers, with explicit tail and test-type arguments.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Apple Numbers. How formula examples are checked

Quick answer. To compare six measurements made before and after on the same six units, enter =TTEST(B2:G2,B3:G3,2,1). Apple’s published data below give an expected 0.837893451979947 for the two-tailed paired t-test. The fourth argument determines which test is performed; omitting it is not documented as supported. [A1, C1]

What the function tells you—and what it does not

A t-test asks how surprising a mean difference would be under a specified null hypothesis and statistical model. TTEST returns a p-value, not a percentage difference, proof that the groups are the same, an effect size, or the probability that the null hypothesis is true. Preselect one or two tails according to your question before interpreting the result. The two independent-sample variants make different assumptions about group variances; the paired variant analyzes within-pair differences. The function does not verify random sampling, outliers, approximate normality, independence or genuine pairing for you. [A1, C1]

Exact syntax and arguments

=TTEST(sample-1-values, sample-2-values, tails, test-type)
Position Apple argument Type Required Meaning / accepted modes Documented default
1 sample-1-values Collection of sample numbers Yes First sample’s observations None
2 sample-2-values Collection of sample numbers Yes Second sample’s observations None
3 tails Modal value Yes 1 = one-tailed probability; 2 = two-tailed probability None
4 test-type Modal value Yes 1 = paired; 2 = independent samples, equal variances; 3 = independent samples, unequal variances None

All four positions are shown in Apple’s reference. The help page does not state implicit defaults, exact minimum sample lengths or numerical error-message text. For statistically meaningful work, supply at least two numbers per sample. A paired test needs corresponding observations in identical order and matching pair counts; type 2 and 3 concern independent samples and need not be artificially paired. Do not silently mix blank/text rows or combine groups with unrecorded missing values. [A1, C1]

Build the reproducible worksheet

Create a Numbers table named Experiment. Keep the first row as headers. In A2 put Before, in A3 After, and place these six values across columns B–G. Enter each formula in an empty cell outside the input ranges, such as I2, and switch the last two arguments to compare modes.

Cell B C D E F G
Row 2 — Before 57 75 66 98 92 80
Row 3 — After 87 65 45 95 88 79
Formula in an empty result cell Question Expected p-value
=TTEST(B2:G2,B3:G3,1,1) One-tail, paired 0.418946725989974
=TTEST(B2:G2,B3:G3,2,1) Two-tail, paired 0.837893451979947
=TTEST(B2:G2,B3:G3,1,2) One-tail, equal-variance independent 0.440983897602811
=TTEST(B2:G2,B3:G3,2,2) Two-tail, equal-variance independent 0.881967795205622
=TTEST(B2:G2,B3:G3,1,3) One-tail, unequal-variance independent 0.441031763311189
=TTEST(B2:G2,B3:G3,2,3) Two-tail, unequal-variance independent 0.882063526622375

The first five expected outputs are Apple’s published examples; the sixth was independently computed using Welch’s two-sample formula. For the paired calculation, the six within-pair differences are −30, 10, 21, 3, 4, 1. Independent SciPy computations reproduce Apple’s paired and independent results to ordinary floating-point precision. These are expected results, not observed Numbers application outputs. [A1, C1]

How to choose the correct t-test

Paired (type 1). Use for repeated measures on the same units or genuinely matched pairs, with row/column order preserved. Two observations from different people do not become paired merely by appearing in adjacent cells. Mathematically, with paired differences d, the test statistic is AVERAGE(d)/(STDEV(d)/SQRT(n)) using sample standard deviation and n valid pairs. This explanation is a mathematical cross-check, not an Apple-documented alternative-function implementation test. [C1]

Independent equal-variance (type 2). Use only when the common-variance assumption is justified. The pooled variance combines the groups’ sample variances; the test uses n₁+n₂−2 degrees of freedom. [A1, C1]

Independent unequal-variance (type 3). Use the Welch-type comparison if variances need not be equal. Degrees of freedom are determined from group variances and sample sizes rather than simply n₁+n₂−2. The Apple modal label calls this two-sample unequal; the Welch mathematical interpretation and numerical outputs were cross-checked independently. [A1, C1]

Advanced use: significance and interpretation

To label a previously chosen two-tailed paired test with a 5% threshold, put the fixed threshold 0.05 in J2 and use:

=IF(TTEST(B2:G2,B3:G3,2,1)<$J$2,"Below 0.05","At least 0.05")

The expected label on Apple’s dataset is At least 0.05. This label describes a p-value decision under the analysis model; it does not establish that two samples are equivalent. The formula uses standard IF, absolute reference and TTEST syntax, all documented at the level of generic function and cell-reference operations, but this combined formula was not executed in Numbers. A rigorous study should additionally report effect sizes, confidence intervals, study design and assumption checks. [A1, A3, C1]

For a different illustrative design, suppose one group is {12,11,13,12,12,14} and another {12,10,15,12,13,11}. Independent calculations give p≈0.8429938072 for an equal-variance two-tailed test, ≈0.8438805547 for unequal-variance, and ≈0.8220441884 when the numbers are deliberately treated as paired observations. These probabilities are similar here, but that never justifies choosing the test after inspecting p-values. [C1]

Troubleshooting, limits and commonly misread results

Symptom What to check
Formula rejected All four arguments, comma/semicolon locale setting, tails of 1 or 2 and test-type of 1, 2 or 3. Do not invent a default fourth parameter.
Paired data fail or yield a misleading answer Verify the same number of correctly matched observations, in the same order, without misaligned blanks.
Unexpected one-tail conclusion Apple’s page labels modes 1 and 2 and prints both; it does not specify a directional-hypothesis sign parameter. Its example one-tail probabilities are half of the corresponding two-tail values. Do not assert a signed alternative or select a tail retrospectively without verifying the hypothesis and test implementation.
Very small or undefined sample variance Mathematical t statistics can be undefined if variance or degrees of freedom vanish. Apple’s TTEST page does not document precise error tokens or automatic fallbacks for these cases.
0.84 appears as 84% Cell Percentage formatting may display 0.84 as 84%; it is still a probability near 0.84, not an 84% change in sample mean.
Different results in another spreadsheet That program’s optional defaults or missing-data rules are not evidence for Numbers. Use Apple’s four-argument signature and controlled numeric ranges.

The calculation is not appropriate for unrelated unpaired rows passed as test-type=1, for strongly dependent subjects treated as independent, or for a claim of equivalence based only on p>0.05. Where assumptions are doubtful, consult a statistician rather than treating an automatic p-value as a study design validator. [A1, C1]

Numbers version, table references, and locale

These instructions follow Apple’s English Formulas and Functions Help, version 15.4, reviewed 13 October 2026. Apple describes the Functions Browser for Numbers on Mac and on iPhone/iPad, and in relevant iWork apps on iCloud.com, but the documentation version is not proof that every function exists in every historical app release or platform build. There was no native Numbers execution for this guide. Do not represent the expected outputs as measured application results. [A1, A4]

The examples use English function names, a period as decimal point and a comma between arguments. Apple explicitly says that a Numbers setup using a comma for decimals requires a semicolon between function arguments when typing formulas. Spreadsheet language/region settings also affect numeric punctuation; select the appropriate localized function spelling in your own Functions Browser as translated names may differ. [A2, A5]

Inside a Numbers table, B2:C6 identifies the rectangular range and $D$2 is an absolute reference. A cross-table reference can be written as Table Name::B2 or Sheet Name::Table Name::B2 where required, and Numbers can insert the appropriate reference when you select a source cell. The formulas below assume all inputs and the result are in the same named table; do not copy an ambiguous short reference across multiple tables. [A3]

Scope of verification

  • Official documentation check: Apple’s named function help, argument/type and cell-reference instructions, and the functions-overview regional-syntax rule were read on 13 October 2026. The source links and claim map are preserved below.
  • Independent calculations: Expected numbers were recomputed with Python/SciPy or exact arithmetic; these checks establish the mathematics and consistency with Apple’s published examples, not the installed application’s behaviour.
  • Not performed: native Apple Numbers execution, screenshots, localized behavior or historical-platform regression tests.

Official references checked (13 October 2026)