Formualizer Docs

F.TEST

Returns the two-tailed p-value from an F-test comparing sample variances.

F.TEST evaluates whether two samples have significantly different variances.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=F.TEST(array1, array2)

Arguments

ArgumentTypeRequiredDefault
array1number (range)Required—
array2number (range)Required—

Remarks

  • Each array must contain at least two numeric values.
  • Uses sample variances and computes a two-tailed probability.
  • Alias FTEST is supported.

Error cases

  • Returns #DIV/0! when either sample variance is zero.

Examples

Compare the variances of two small samples.

Formula =F.TEST({3,5,9,10},{4,6,7,8})

Expected result 0.307067313172766

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Change the spread of one sample while preserving its size.

Formula =F.TEST({3,5,9,10},{4,6,9,18})

Expected result 0.330536863361369

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Compare two samples of the minimum size, with a different spread in each.

Formula =F.TEST({3,5},{2,5})

Expected result 0.748668167243995

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A constant sample has zero variance.

Formula =F.TEST({3,3,3,3},{4,6,7,8})

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Compare samples of equal size whose spreads differ.

Formula =F.TEST({1,2,3,4},{3,4,7,9})

Expected result 0.245157188752938

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Different variances example

Formula =F.TEST({1,2,3,4},{1,1,1,5})

Expected result 0.490941737154559

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Implementation

Engine source

On this page