RPN Advanced 42 manual · Chapter 11 of 18
Statistics
Enter data pairs with sigma-plus, then read means, deviations, sums, and fit a straight line.
11.1Enter data points#
Each data point is a pair: put y in Y and x in X, then press Σ+. After each point the display shows the number of points so far. For one-variable data, enter any y (for example 0) and the x values. Shift Σ+ removes a point you entered by mistake. The sums live in registers 11 to 23: R11 to R16 hold Σx, Σx², Σy, Σy², Σxy and n, and R17 to R23 the logarithm sums that the other curve-fit models use (ALLΣ, the default). LINΣ on page 2 of STAT keeps only the first six; ΣRG moves the block to another register and ΣR? shows where it starts.
Add three data points
Enter (x, y) = (2, 1), (4, 2), (7, 3) as y ENTER x Σ+.
1ENTER2Σ+2ENTER4Σ+3ENTER7Σ+

x: 3.0000Remove a point
Add a point and remove it again; the count returns to zero.
2ENTER1Σ+2ENTER1⇧Σ−Σ+

x: 0.0000A matrix with two columns enters many points at once: with the matrix in X, Σ+ adds each row as one point (x in column 1, y in column 2), and shift Σ+ removes them again. Any other shape gives Dimension Error.
Add a whole table of points
Make a 3 × 2 matrix and fill in the rows (1, 2), (2, 4), (3, 6).
3ENTER2⇧MATRIX9Σ+XEQ1LN2LN2LN4LN3LN6EXITEXITEXITPress Σ+: three points are added.
Σ+

x: 3.000011.3Fit a straight line and forecast#
FIT (sixth key of STAT) opens the curve-fit menu: FCX, FCY, SLP, YIN, r and MDL. With the linear model (the default) they use the least-squares line .

Slope of a perfect line
Points (1,3), (2,5), (3,7) lie on y = 2x + 1. Open STAT, FIT, SLP (third).
3ENTER1Σ+5ENTER2Σ+7ENTER3Σ+⇧STAT÷XEQ√x

x: 2.0000Intercept of the line
YIN is the fourth key.
3ENTER1Σ+5ENTER2Σ+7ENTER3Σ+⇧STAT÷XEQLOG

x: 1.0000Correlation
The r key is the fifth.
3ENTER1Σ+5ENTER2Σ+7ENTER3Σ+⇧STAT÷XEQLN

x: 1.0000Forecast y at x = 10
Type 10 and press FCY (second key).
3ENTER1Σ+5ENTER2Σ+7ENTER3Σ+⇧STAT÷XEQ101/x

x: 21.0000Forecast x for y = 9
Type 9 and press FCX (first key).
3ENTER1Σ+5ENTER2Σ+7ENTER3Σ+⇧STAT÷XEQ9Σ+

x: 4.0000MDL (sixth key of FIT) chooses the model: LNF (straight line, y = b + mx), LGF (logarithmic, y = b + m ln x), EXF (exponential, y = b·e^(mx)), PWF (power, y = b·x^m) and BST, which picks the model whose correlation is largest. The marked model is the one FCX, FCY, SLP, YIN and r use. A point with x ≤ 0 rules out LGF and PWF, and y ≤ 0 rules out EXF and PWF: they then give Invalid Forecast Model.

An exponential fit
The points (1, 6), (2, 12), (3, 24) follow y = 3·2^x. Choose EXF and read YIN: b = 3.
6ENTER1Σ+12ENTER2Σ+24ENTER3Σ+⇧STAT÷XEQXEQ√xEXITLOG

x: 3.0000Forecast with the exponential model
With EXF chosen, type 4 and press FCY: 3·2⁴ = 48.
6ENTER1Σ+12ENTER2Σ+24ENTER3Σ+⇧STAT÷XEQXEQ√xEXIT41/x

x: 48.0000Let BEST choose
BST (sixth key of MDL) marks the exponential model for these points.
6ENTER1Σ+12ENTER2Σ+24ENTER3Σ+⇧STAT÷XEQXEQXEQ

EXF■See also Fit a straight line to data
11.4Clear the statistics#
Clear the sums
Add a point, open CLEAR and press CLΣ, then look at register 16 (the count).
2ENTER1Σ+⇧CLEAR←Σ+EXITRCL16

x: 0.0000HP-42S is a trademark of HP Inc.. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by HP. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.




