Formualizer Docs
ReferenceFunctionsStatistics Functions

T.TEST

T.TEST: Returns the p-value from a Student t-test comparing two numeric samples.

Summary

T.TEST supports paired, equal-variance two-sample, and unequal-variance (Welch) modes.

Remarks

  • tails must be 1 (one-tailed) or 2 (two-tailed).
  • type must be 1 (paired), 2 (two-sample equal variance), or 3 (Welch).
  • Returns #N/A when paired mode arrays have different lengths.
  • Returns #NUM! or #DIV/0! for invalid setup or degenerate variance conditions.

Examples

Two-tailed equal-variance test with identical samples
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
1
One-tailed Welch test with identical samples
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
0.5

Runtime metadata

Category

Statistics

Signature

T.TEST(arg1: Number (Range), arg2: Number (Range), arg3: Number, arg4: Number)

Arity

min 4, max 4

Arguments

arg1

Number · Range · coercion NumberLenientText

arg2

Number · Range · coercion NumberLenientText

arg3

Number · Scalar · coercion NumberLenientText

arg4

Number · Scalar · coercion NumberLenientText

Caps

PURE

Source

On this page