Professional Documents
Culture Documents
BusStat W03 Simple Regression 1
BusStat W03 Simple Regression 1
Business Statistics
o Least Squares Criterion: determine the regression coefficients (a, b1, b2, …)
with the objective of minimizing the sum square error.
i n i n
SSE i ( yi yˆ ) 2
2
i 1 i 1
Simple Linear Regression Equation
yˆ a bx
Sales
Calls Copiers Sold
Sales Rep (x) (y)
BV 96 41
CR 40 41 MIN SSE
CS 104 51
GF 128 60
JH 164 61
MREY 76 29
MRUM 72 39
MK 80 50
RS 36 28
RN 84 43
RB 180 70
SS 132 56
SJ 120 45
SW 44 31
TK 84 30
Call:
lm(formula = y ~ x, data = Dataset)
Residuals:
Min 1Q Median 3Q Max
-11.873 -2.861 0.255 3.511 10.595
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 19.9800 4.3897 4.552 0.000544 ***
x 0.2606 0.0420 6.205 3.19e-05 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
sx
( x x ) 2
sy
( y y ) 2
n 1 n 1
a y bx
Example: Simple Linear Regression Equation
Given a data set:
x: 4 5 3 6 10
y: 4 6 5 7 7
Find ŷ when x is 7.
x y
4 4 -1.6 -1.8 2.56 3.24 2.88
5 6 -0.6 0.2 0.36 0.04 -0.12
3 5 -2.6 -0.8 6.76 0.64 2.08
6 7 0.4 1.2 0.16 1.44 0.48
10 7 4.4 1.2 19.4 1.44 5.28
28 29 29.2 6.8 10.6
x 28 / 5 5.6 s x 29.2 /(5 1) 2.702
y 29 / 5 5.8 s y 6.8 /(5 1) 1.304
10.6
r 0.7522
(5 1)2.702 x1.304
Example: Simple Linear Regression Equation
Given a data set:
x: 4 5 3 6 10
y: 4 6 5 7 7
Find ŷ when x is 7.
x 5.6 y 5.8 s x 2.702 s y 1.304 r 0.7522
sy
b r 0.7522 *1.304 / 2.702 0.363
sx
b) Page 450, no 9
c) Page 450, no 10
d) Page 458, no 16 and no 17