# HP F2226A - 48GII Graphic Calculator User Manual Page 621

Graphing calculator.

Suppose that we have n paired observations (x
y = a + b⋅x, where a and b are constant.
Define the prediction error as, e
The method of least squares requires us to choose a, b so as to minimize the
sum of squared errors (SSE)
SSE
the conditions
a ∂
We get the, so-called, normal equations:
i
This is a system of linear equations with a and b as the unknowns, which can
be solved using the linear equation features of the calculator.
however, no need to bother with these calculations because you can use the
3. Fit Data ... option in the ‚Ù menu as presented earlier.
____________________________________________________________________
Notes:
a,b are unbiased estimators of Α, Β.
The Gauss-Markov theorem of probability indicates that among all
unbiased estimators for Α and Β, the least-square estimators (a,b) are the
most efficient.
____________________________________________________________________
i
= y
- y
= y
- (a + b⋅x
i
i
i
i
n
n
2
=
e
=
[
y
(
a
i
i
i
=
1
i
=
1
(
SSE
)
=
0
(
SSE
b ∂
n
n
y
a
n
b
i
i
=
1
i
=
n
n
x
y
a
x
b
i
i
i
=
1
i
=
1
, y
); we predict y by means of
i
).
i
2
+
bx
)]
i
)
=
0
x
i
1
n
2
x
i
i
=
1
There is,
Page 18-50