HP 50g User Manual Page 578

Graphing calculator.

First, enter the two rows of data into column in the variable DAT by using
the matrix writer, and function STO .
To access the program
‚Ù˜˜@@@OK@@@ The input form will show the current DAT, already
loaded. If needed, change your set up screen to the following parameters
for a linear fitting:
To obtain the data fitting press @@OK@@. The output from this program, shown
below for our particular data set, consists of the following three lines in RPN
mode:
Level 3 shows the form of the equation. In this case, y = 0.06924 + 0.00383 x.
Level 2 shows the sample correlation coefficient, and level 1 shows the
covariance of x-y.
Definitions
For a sample of data points (x,y), we define the sample covariance as
The sample correlation coefficient for x,y is defined as
3. Fit data..
3: '0.195238095238 + 2.00857142857*X'
2: Correlation: 0.983781424465
1: Covariance: 7.03
1
s
xy
n
, use the following keystrokes:
n
(
x
x
)(
y
i
1
i
1
s
xy
r
.
xy
s
s
x
y
y
)
i
Page 18-11