Steyx
STEYX Function¶
The STEYX function in Excel is used to **calculate the standard error of the predicted y-value in a linear regression
** for a given set of dependent and independent variables.
Key Features of STEYX:¶
- Measures Accuracy: Indicates the precision of predicted values derived from the regression line.
- Based on Linear Regression: Calculates the standard error specifically for the y-value predictions using the " least squares" method.
- Statistical Analysis: Useful in evaluating the reliability of predictions made by a linear model.
Syntax:¶
- known_y's: Required. The dependent data points (y-values).
- known_x's: Required. The independent data points (x-values).
How It Works:¶
The formula for standard error of the y-value is:
Where:
- se is the standard error of the regression.
- ŷᵢ is the predicted y-value for each x-value based on the regression line.
- yᵢ is the actual y-value.
- n is the total number of data points in the dataset.
The STEYX function directly computes this value based on the input data, assuming there is a linear relationship
between the variables.
Examples:¶
- Simple Linear Regression: Suppose you have two sets of data: To calculate the standard error of the predicted y-value:
Result: The function evaluates how much the predicted y-value deviates, on average, from the actual y-value.
- Data in Ranges:
If
Xvalues are in cellsA1:A5andYvalues are in cellsB1:B5, the formula is:
Comparisons with Related Functions:¶
STEYXvsLINEST:STEYXprovides the standard error for the predictions in a linear regression.LINESTperforms a full regression analysis, returning slope, intercept, and other statistics.
STEYXvsRSQ:STEYXmeasures prediction accuracy (in terms of standard error).RSQmeasures the goodness of fit of the regression model (r-squared).
Notes:¶
- Input Requirements:
- Both
known_y'sandknown_x'smust contain numeric values. - Both arrays should have the same number of data points.
- Both
- Errors:
#N/Aoccurs if the number ofknown_y'sandknown_x'sare different.#DIV/0!occurs if the number of data points is less than 3 (since at least two degrees of freedom are needed).
Applications:¶
- Regression Analysis: Assess the accuracy of linear predictions.
- Forecasting: Evaluate the uncertainty in predicted trends.
- Scientific Research: Analyze the reliability of data fitting to a linear model.
- Predictive Modeling: Measure expected variation when using regression equations.
Tip: Use
STEYXto test the precision of a linear regression model in applications such as forecasting, financial analysis, and scientific measurements. Pair it with other tools likeLINESTandRSQfor deeper insights into the regression fit.