Extra Notes On Regression
Extra Notes On Regression
Most scientific calculators provide tools for obtaining the estimated regression coefficients
and hence the fitted regression line. Calculator type : CASIO fx-570MS.
Mode Mode 2
Shift CLR 1 =
xi , yi M+
NOTE : Step 3 is vitally important when storing a new data set so that the old data set will
be removed and will not be mixed with the new data set to ensure an accurate analysis.
1
Correlation and Linear Regression
Once the sample data set are stored in the calculator, we can retrieve the available output
by pressing the appropriate operators as shown in TABLE 2 below :
Operators Output
Shift S-SUM 1 = x2
Shift S-SUM 2 = x
Shift S-SUM 3 = n
Shift S-SUM 1 = y2
Shift S-SUM 2 = y
Shift S-SUM 3 = xy
Shift S-VAR 1 = x
Shift S-VAR 1 = y
Shift S-VAR 1 =
Shift S-VAR 2 =
TABLE 2
NOTE : is the intercept value of the regression line and is the slope of the regression
line.
2
Correlation and Linear Regression
EXAMPLE 1
Obtain the equation of the linear regression y on x for the following data :
x 25 30 35 40 45 50
y 79 71 66 56 47 43
2. At Step 3, before we store the new data set, we must always make sure that
the old data set is already cleared. This is indicated by n 0 on the calculator
screen before the new data set is stored.
3. After storing the above data set, we should obtain the following output :
Operators Output
Shift S-SUM 3 = n6
x 37.5
Chapter : Correlation and Linear Regression
Shift S-VAR 1 =
3
Correlation and Linear Regression
TASK 1
An article in the Journal of Sound and Vibration (Vol. 151, 1991, pp. 383 394) described a
study which investigated the relationship between noise exposure and hypertension. The
nois exposure is measured by the sound pressure level (SPL) in decibels, whereas
hyperteension is measured by the blood pressure rise (BPR) in millileters of mercury
(mmHg). A representative data set reported by Montgomery & Runger (2003), p 382, is as
follows :
SPL, x 60 63 65 70 70 70 80 90 80 80
BPR, y 1 0 1 2 5 1 4 6 2 3
TASK 2
Refer to EXAMPLE 1. Obtain the correlation coefficient to measure the relationship between
the variables. Comment your answer.
TASK 3
Refer to TASK 1. Predict the blood pressure rise when the sound pressure level is 98
decibels.