Practice free

STEYX function

STEYX returns the standard error of the predicted y values in a regression. It gives the typical size of prediction errors from a straight-line fit, in the units of y.

Example

Read it as a sentence: find the standard error of the predicted values when the G1:G5 values are estimated from the F1:F5 values, which gives 0.894427191.

Practice this in the app

Syntax

STEYX(known_y's, known_x's)

known_y's (required)
The dependent values.
known_x's (required)
The independent values.

Returns: The standard error of the predicted y values in a regression.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=STEYX({2,4,5,4,5},{1,2,3,4,5}) 0.894427191 Array constants
=STEYX(Data!G1:G5,Data!F1:F5) 0.894427191 Two ranges (y,x order as written)
=STEYX(Data!I1:I5,Data!H1:H5) 1.224744871 Blank and text-number pairs dropped
=STEYX({2,4,5,4,5},Data!F1:F5) 0.894427191 Row vs column same count
=STEYX(Data!G1:G5,Data!K1:K3) #N/A Different sizes
=STEYX(Data!G1:G5,Data!J1:J5) #DIV/0! Constant x
=STEYX(Data!C1:C5,Data!F1:F5) #N/A Range containing #N/A
=STEYX(Data!G1,Data!F1) #DIV/0! Single pair

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Needs at least three data points.
  • Arrays must match in length.

Where it works

Excel
STEYX is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .