Formualizer Docs

STEYX

Returns the standard error of y-estimates from a simple linear regression.

STEYX measures the typical residual size around the fitted regression line.

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

=STEYX(known_ys, known_xs)

Arguments

ArgumentTypeRequiredDefault
known_ysnumber (range)Required—
known_xsnumber (range)Required—

Remarks

  • Requires paired x/y inputs with matching numeric lengths.
  • Requires at least three paired points.
  • Pairing and shape mismatches return spreadsheet errors from paired-array validation.

Error cases

  • Returns #DIV/0! when n < 3 or x-values have zero variance.

Examples

Describe a linear fit between paired x and y observations.

Formula =STEYX({2,5,6,9},{1,2,3,4})

Expected result 0.632455532033676

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?.

Reverse the order of the y series while leaving x unchanged.

Formula =STEYX({9,6,5,2},{1,2,3,4})

Expected result 0.632455532033676

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?.

Evaluate a series whose observations lie exactly on a line.

Formula =STEYX({2,4,6},{1,2,3})

Expected result 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?.

The known x and y series must contain corresponding observations.

Formula =STEYX({2,5,6,9},{1,2,3})

Expected result #N/A

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?.

Non-zero regression standard error

Formula =STEYX({2,5,7},{1,2,3})

Expected result 0.408248290463862

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