Trident Help

RPN Financial 12 manual · Chapter 13 of 16

Statistics

Enter data with Σ+, then find means, standard deviations, a fitted line, estimates, correlation and a weighted mean.

13.1Enter data with Σ+#

Statistics collect data into registers R1 to R6: R1 holds the count n, R2 the sum of x, R3 the sum of x², R4 the sum of y, R5 the sum of y² and R6 the sum of xy.

For a data point with two values, key in y, press ENTER, key in x and press Σ+ (Σ+). The display shows n, the number of points so far. For one variable, simply key in x and press Σ+. Start a new data set with fΣSST (CLEAR Σ).

  1. y
  2. ENTER
  3. x
  4. Σ+
  5. n is shown
Entering one data point.
RegisterHolds
R1nn, the number of points
R2∑x\sum x
R3∑x2\sum x^{2}
R4∑y\sum y
R5∑y2\sum y^{2}
R6∑xy\sum xy
Example 13.1

Enter four data points

  1. Enter (x, y) = (1, 2), (2, 4), (3, 5), (4, 8), each as y, ENTER, x, Σ+.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+
Result of the example "Enter four data points" The display shows:  4.00 /  5.00 /  8.00 /  4.00.
You should seeThe display shows n = 4.00.

13.2Find the mean and standard deviation#

xˉ=∑xnsx=n∑x2−(∑x)2n(n−1)\bar{x}=\frac{\sum x}{n}\qquad s_x=\sqrt{\frac{n\sum x^{2}-\left(\sum x\right)^{2}}{n(n-1)}}
The mean and the sample standard deviation (the same for y).

gx̄0 (x̄) gives the mean of x in X and the mean of y in Y. gs. (s) gives the sample standard deviation: s of x in X and s of y in Y. The mean needs one point. The standard deviation needs at least two.

Example 13.2

Mean of x and y

  1. Enter the data, then press g, x̄.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+gx̄0
Result of the example "Mean of x and y" The display shows:  5.00 /  8.00 /  4.75 /  2.50.
You should seex̄ = 2.50 in X, ȳ = 4.75 in Y.
Example 13.3

Standard deviation

  1. Enter the data, then press g, s and show four decimals.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+gs.f4
Result of the example "Standard deviation" The display shows:  5.0000 /  8.0000 /  2.5000 /  1.2910.
You should sees of x is 1.2910 (in X).
Example 13.4

No data is an error

  1. Press g, x̄ before entering anything.

    gx̄0
Result of the example "No data is an error" The display shows:   Error 2 /  0.00 /  0.00 /  0.00 /  0.00.
You should seeError 2

13.3Estimate y from x and x from y#

y=A+BxB=n∑xy−∑x∑yn∑x2−(∑x)2A=yˉ−Bxˉy=A+Bx\qquad B=\frac{n\sum xy-\sum x\sum y}{n\sum x^{2}-\left(\sum x\right)^{2}}\qquad A=\bar{y}-B\bar{x}
The least-squares line used for the estimates.

Key in an x value and press gŷ,r2 (ŷ,r) to estimate y from the fitted line. Key in a y value and press gx̂,r1 (x̂,r) to estimate x. In both cases the estimate appears in X and the correlation coefficient r in Y.

r=n∑xy−∑x∑y(n∑x2−(∑x)2)(n∑y2−(∑y)2)r=\frac{n\sum xy-\sum x\sum y}{\sqrt{\left(n\sum x^{2}-(\sum x)^{2}\right)\left(n\sum y^{2}-(\sum y)^{2}\right)}}
The correlation coefficient r: close to 1 or −1 means the points lie near a line.
Example 13.5

Estimate y when x is 5

  1. Enter the data. Key in 5 and press g, ŷ,r.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+5gŷ,r2
Result of the example "Estimate y when x is 5" The display shows:  5.00 /  8.00 /  0.98 /  9.50.
You should seeŷ = 9.50.
Example 13.6

The correlation coefficient

  1. Press x⇄y to see r, with four decimals.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+5gŷ,r2x⇄yf4
Result of the example "The correlation coefficient" The display shows:  5.0000 /  8.0000 /  9.5000 /  0.9812.
You should see0.9812
Example 13.7

Estimate x when y is 10

  1. Key in 10 and press g, x̂,r.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+10gx̂,r1f4
Result of the example "Estimate x when y is 10" The display shows:  5.0000 /  8.0000 /  0.9812 /  5.2632.
You should see5.2632

13.4Weighted mean#

Enter each value as y with its weight as x (so key in the value, ENTER, the weight, Σ+). Then gx̄w6 (x̄w) gives the weighted mean of the values.

xˉw=∑xy∑x\bar{x}_w=\frac{\sum xy}{\sum x}
Example 13.8

Weighted mean of the sample data

  1. After entering the four points, press g, x̄w.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+gx̄w6
Result of the example "Weighted mean of the sample data" The display shows:  4.00 /  5.00 /  8.00 /  5.70.
You should see5.70

13.5Remove or correct a data point#

To remove a point you entered by mistake, key in exactly the same y and x, and press gΣ−Σ+ (Σ−). The count goes down by one. To fix a point, remove the wrong one and then enter the right one.

Example 13.9

Remove a point

  1. Enter four points, then remove the last one with Σ−. Recall R1 for n.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+8ENTER4gΣ−Σ+RCL1
Result of the example "Remove a point" The display shows:  5.00 /  8.00 /  8.00 /  3.00.
You should see3.00

13.6Read the sums#

Recall any statistics register with RCL: RCL 1 gives n, RCL 2 gives Σx, RCL 4 gives Σy and so on.

Example 13.10

The sum of x

  1. After entering the data, recall R2.

    2ENTER1Σ+4ENTER2Σ+5ENTER3Σ+8ENTER4Σ+RCL2
Result of the example "The sum of x" The display shows:  4.00 /  5.00 /  8.00 /  10.00.
You should see10.00

HP 12C 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.