ch13 Regressionanalysis
ch13 Regressionanalysis
SIMPLE LINEAR
REGRESSION
Simple Regression
Linear Regression
Definition
A (simple) regression model that gives a
straight-line relationship between two
variables is called a linear regression
model.
Scatter Diagram
Least Squares Line
Interpretation of a and b
Assumptions of the Regression Model
Definition
In the regression model y = A + Bx + ε, A
is called the y-intercept or constant term, B
is the slope, and ε is the random error term.
The dependent and independent variables
are y and x, respectively.
Definition
In the model ŷ = a + bx, a and b, which are
calculated using sample data, are called
the estimates of A and B, respectively.
Boyes
Scatter Diagram
Definition
A plot of paired observations is called a
scatter diagram.
SSE e ( y yˆ )
2 2
SS xy
b and a y bx
SS xx
where
x y x
2
SS xy xy and SS xx x 2
n n
x 386 y 108
x x / n 386 / 7 55.1429
y y / n 108 / 7 15.4286
SS xy xy
x y 6403 (386)(108)
447.5714
n 7
x
2
(386)2
SS xx x 2 23,058 1772.8571
n 7
Interpretation of b
The value of b in the regression model
gives the change in y (dependent variable)
due to change of one unit in x
(independent variable).
We can state that, on average, a $100 (or
$1) increase in income of a household will
increase the food expenditure by $25.25
(or $.2525).
SST y 2
n
Note that this is the same formula that we
used to calculate SSyy.
Prem Mann, Introductory Statistics, 7/E
Copyright © 2010 John Wiley & Sons. All right reserved
Figure 13.15 Total errors.
2
b SSxy
r
SSyy
and 0 ≤ r2 ≤ 1
2
b SSxy (.2525)(447.5714)
r .90
SSyy 125.7143
x
Prem Mann, Introductory Statistics, 7/E
Copyright © 2010 John Wiley & Sons. All right reserved
Figure 13.18 Linear correlation
between two variables.
(b) Perfect negative linear correlation, r = -1
x
Prem Mann, Introductory Statistics, 7/E
Copyright © 2010 John Wiley & Sons. All right reserved
Figure 13.18 Linear correlation
between two variables.
(c) No linear correlation, , r ≈ 0
x
Prem Mann, Introductory Statistics, 7/E
Copyright © 2010 John Wiley & Sons. All right reserved
Figure 13.19 Linear correlation
between variables.
SSxy
r
SSxx SSyy
447.5714
.95
(1772.8571)(125.7143)
b) x x / n 90 / 8 11.25
y y / n 474 / 8 59.25
( x )( y ) (90)(474)
SSxy xy 4739 593.5000
n 8
( x )2 (90)2
SSxx x 2 1396 383.5000
n 8
( y )2 (474)2
SSyy y 2 29,642 1557.5000
n 8
SSxy 593.5000
b 1.5476
SSxx 383.5000
a y bx 59.25 ( 1.5476)(11.25) 76.6605
yˆ 76.6605 1.547 x
f)
SSxy 593.5000
r .77
SSxx SSyy (383.5000)(1557.5000)
2
bSSxy ( 1.5476)( 593.5000)
r .59
SSyy 1557.5000