Excel - STEYX Function



STEYX Function

The Excel STEYX function determines the standard error of the predicted y-value corresponding to each x data point in the regression. The term "standard error" determines the degree of error when estimating y for independent x data points. The accurate predictions of the dependent and independent variables along with the regression line can be done through this function. The main drawback of this function is that it cannot work adequately with non-numeric and non-linear data.

Compatibility

This advanced Excel function is compatible with the following versions of MS Excel

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016
  • Excel 2013
  • Excel 2010
  • Excel 2007

Syntax

The syntax of the STEYX function is as follows −

=STEYX(known_y's, known_x's)

Arguments

You can use the following arguments with the STEYX function −

Argument Description Required/Optional
Known_y's It specifies the array or cell range of dependent numeric value. Required
Known_x's It indicates the array or cell range of independent numeric values. Required

Points to Remember

  • The mathematical equation for the standard error of the predicted y is −

$$\mathrm{\sqrt{\frac{1}{2}\left [ \sum \left ( y\:-\:\bar{y} \right )^2 \:-\: \frac{\left [ \sum \left ( x\:-\:\bar{x} \right )\left ( y\:-\:\bar{y} \right ) \right ]^2}{\sum \left ( x\:-\:\bar{x} \right )^2} \right ]}}$$

Where x and y are the sample means AVERAGE (known_x's) and AVERAGE (known_y's), and n is the sample size.

  • You may specify the numeric value, arrays, or cell references that point to numbers.
  • Boolean values and numbers text depiction that you type directly into the list of arguments are counted.
  • Cells holding the zero value are included in an array or reference argument, but text, boolean values, and blank cells are ignored.
  • If the error values or text that would not be interpreted as numbers yield errors.
  • If known_y's and known_x's are of different sizes, then the STEYX function returns the #N/A error.

    If known_y's and known_x's arguments have no data values or have less than three data points, then the STEYX returns the #DIV/0! error.

Examples of STEYX Function

Practice the following examples to learn the use of the STEYX function in Excel.

Example 1: How do you use the STEYX Function in Excel?

In this example, we will explore the STEYX function to calculate the standard error of the predicted y-dependent value to each independent x value in regression. Make sure the dimensions of both known_x's and known_y's are the same.

Solution

Step 1 − First, assume the sample dataset consists of the two columns named Known_x's and Known_y's. You may enter the formula =STEYX(C3:C14,B3:B14) in the B16 cell and hit the Enter tab.

STEYX Function1

Therefore, the standard error of the predicted y value to each x data point is 11910.0748.

STEYX Function2

Example 2

If known_y's and known_x's are of different sizes, then the STEYX function returns the #N/A error.

Solution

Consider the sample dataset where the number of the data points in known_y's is 3 and the number of data points in known_x's is 2. Select the cell C4 and write the formula =STEYX(C2:C4, B2:B3) and, press the Enter key.

STEYX Function3

Therefore, the resulting value is #N/A error.

Download Practice Sheet

You can download and use the sample data sheet to practice the STEYX function.

Advertisements