Contact

STEYX in WPS Spreadsheet: Regression Standard Error with Complete Residuals

Statistical Intermediate WPS Spreadsheet

Calculate WPS STEYX from paired observations, reproduce the n-minus-two denominator and distinguish residual standard error from RMS error or a prediction interval.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: STEYX measures the standard error around a fitted linear regression of Y on X. The official WPS equation uses the residual squared total divided by n-2, followed by a square root. Its units follow the Y variable.

Availability and version history

  • Introduced: documented by 2019-06-17 in the official WPS lesson; the first release is not established.
  • Availability: the lesson identifies WPS Office for Windows Personal, without a numeric release range.
  • Scope: exact current supported builds and other WPS clients remain unverified. Historical naming does not establish retirement.
  • Checked: October 14, 2026. Documentation and independent calculations; no native WPS test was performed.

Syntax and documented requirements

=STEYX(known_y, known_x)

The required ranges contain dependent Y values and independent X values. The dated lesson documents #N/A for unequal data counts and #DIV/0! for empty inputs or fewer than three data points.

Referenced text, logical values and blank cells are described as ignored, while numeric zero is included. The source does not fully define differently positioned missing-value pairing, so all primary examples use complete numeric pairs. Direct coercion and error-input behavior are not inferred from the range controls.

Examples use English names and comma separators. Keep the Y argument first even when the table is arranged with X in the left column.

Example 1: start from an explicit fitted line

Enter X values 1, 2, 3 and 4 in A2:A5 and corresponding Y values 1, 3, 4 and 8 in B2:B5:

=STEYX(B2:B5,A2:A5)

The independent least-squares line with an intercept is Y = -1.5 + 2.2X. Its fitted and residual values are:

X Observed Y Fitted Y Residual Squared residual
1 1 0.7 0.3 0.09
2 3 2.9 0.1 0.01
3 4 5.1 -1.1 1.21
4 8 7.3 0.7 0.49

Squared residuals total 1.8. There are four observations, so the documented denominator is 4-2 = 2. Expected STEYX is SQRT(0.9), approximately 0.948683298.

Example 2: reproduce the equation with helper cells

In C2 enter =-1.5+2.2*A2, in D2 enter =B2-C2, and in E2 enter =D2^2. Fill all three formulas through row 5:

=SQRT(SUM(E2:E5)/(4-2))

Expected result: approximately 0.948683298, matching the independently modeled STEYX calculation. The residuals also sum to zero in this fitted intercept model, which is a useful arithmetic check.

The source’s equivalent centered-sums equation uses X-square total 5, Y-square total 26, and centered cross-product total 11. The residual square total is 26-11^2/5 = 1.8.

Advanced distinction: RMS residual is a different statistic

Dividing the same squared residual total by n instead of n-2 gives:

=SQRT(SUM(E2:E5)/4)

Expected result: approximately 0.670820393. This is the root mean squared residual for these four observations, not the documented STEYX result.

The two values differ because their denominators answer different statistical questions. Do not label every square-root-of-average-error expression “standard error” without specifying its model and degrees of freedom.

Advanced example: scale and shift the dependent variable

Multiply every original Y by ten. The fitted values and residuals also multiply by ten, so the squared residual total becomes 180. The expected STEYX becomes approximately 9.486832981, ten times the original.

Adding 100 to every original Y instead shifts the fitted intercept without changing residuals. Expected STEYX stays approximately 0.948683298.

Changing X units consistently leaves this model’s fitted Y values unchanged after the line coefficients are adjusted. Changing Y units changes the error’s scale. Report the units beside the result rather than treating it as a dimensionless quality score.

Advanced check: duplicated rows change the denominator

Repeat the complete four-pair dataset twice. The independently fitted line remains the same, and the residual squared total doubles to 3.6. With eight observations, n-2 becomes 6.

The resulting expected STEYX is SQRT(0.6), approximately 0.774596669. Duplicating records does not preserve this statistic and does not create new independent evidence for the regression.

For a separate exact-line control, X=1,2,3 and Y=3,5,7 have zero residuals and an expected STEYX of 0. At least three observations are used, consistent with the source’s explicit minimum-count rule.

Interpretation and remaining limits

STEYX is not a complete prediction interval. A target-specific interval needs additional statistical assumptions and calculations; this one scalar does not by itself describe future uncertainty at every X.

RSQ measures squared correlation, while STEYX is expressed in Y units. SQRT and SUM support the transparent residual check.

A constant-X dataset makes the centered equation’s X denominator zero; the source does not establish its exact native error here. Mixed-position pairing, overflow and floating-point cancellation remain unverified boundaries.

References and verification

Worked outputs are independently calculated expectations, not captured native results. Function-specific source gaps and product/client boundaries remain explicitly scoped.