Professional Documents
Culture Documents
Correlation&Regression
Correlation&Regression
correlation
A stereo and sound equipment store’s manager wants to
determine the relationship between the number of weekend
television commercials shown and the sales at the store
during the following week. The sample data is as shown:
SOURCE: WIKIPEDIA
Simple linear regression
Regression x y
Model y = β0 + x1 y1
β1 x + ε x2 y2
Regression .
v .
eqn . .
E(y) = β0 + β1 x xn yn
Estimated
b0, b1 provide Regression
Equation
estimates of ŷ = b0 + b1x
β0 and β1 Sample stats
b0, b1
Least squares method
ŷ = b0 + b1 x
220
200
y = 5x + 60
180
160
140
120
100
80
60
40
20
0
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28
Student Population (000s)
SSE
xi Student
yi Sales Squared Error
Restaurant Population Error (yi - ȳ)
(Rs.‘000s) (yi - ȳ)2
(‘000s)
1 2 58 -72 5184
2 6 105 -25 625
3 8 88 -42 1764
4 8 118 -12 144
5 12 117 -13 169
6 16 137 7 49
7 20 157 27 729
8 20 169 39 1521
9 22 149 19 361
10 26 202 72 5184
ȳ= 130 SST = 15730
Coefficient of determination
r2 = SSR / SST
Xi 1 2 3 4 5
Yi 3 7 5 11 14
B) Compute r2
C) Compute r
Testing for significance
S2 is unbiased estimator of σ2
H 0: β 1 = 0
• H a: β 1 ≠ 0
Sampling distribution of b1
• E(b1) = β1
Xi 2 3 5 1 8
Yi 25 25 20 30 16