# HP 48gII User Manual Page 635

Graphing calculator.

Advertisement

yv − ABS SQ
/
NEG 1 + √
"r"
TAG
SWAP
"SSE"
TAG
"
"
"
"
"
Save this program under the name POLYR, to emphasize calculation of the
correlation coefficient r.
Using the POLYR program for values of p between 2 and 6 produce the
following table of values of the correlation coefficient, r, and the sum of
square errors, SSE:
p
2
3
4
5
6
While the correlation coefficient is very close to 1.0 for all values of p in the
table, the values of SSE vary widely. The smallest value of SSE corresponds to
p = 4. Thus, you could select the preferred polynomial data fitting for the
original x-y data as:
y = 20.92-2.61x-1.52x
Calculate SST
Calculate SSE/SST
Calculate r = [1–SSE/SST ]
Tag result as "r"
Exchange stack levels 1 and 2
Tag result as SSE
Close sub-program 4
Close sub-program 3
Close sub-program 2
Close sub-program 1
Close main program
r
SSE
0.9971908
10731140.01
0.9999768
88619.36
0.9999999
7.48
0.9999999
8.92
0.9999998
432.61
2
3
+6.05x
+3.51x
1/2
4
.
Page 18-64

Advertisement

Table of Contents

Symbols: 0