BUS41100 Applied Regression Analysis
Week 3: Finish SLR Inference Then Multiple Linear Regression
- I. Confidence and Prediction Intervals
- II. Polynomials, log transformation,
Week 3: Finish SLR Inference Then Multiple Linear Regression I. - - PowerPoint PPT Presentation
BUS41100 Applied Regression Analysis Week 3: Finish SLR Inference Then Multiple Linear Regression I. Confidence and Prediction Intervals II. Polynomials, log transformation, categorical variables, interactions & main effects Max H.
b1)
b1 =
x 1
2
3
j
j
j
4
j ; assume H0 when close
j
j
H0
j look silly ⇒ reject
j
j ∈ (bj ± 2sbj) 5
bj),
6
7
8
9
10
11
i=1, predict
12
1.5 2.0 2.5 3.0 3.5 60 80 100 120 140 160 size price
13
14
15
fvar(b1) + 2Xfcov(b0, b1)
x
x
16
x
x
17
18
19
20
21
fit; you need to square before
22
23
24
25
26
27
15 20 25 30 20 25 30 months calls
15 20 25 30 −3 −2 −1 1 2 3 months residuals
28
29
30
> xgrid <- data.frame(months=10:30, months2=(10:30)^2) > par(mfrow=c(1,2)) > plot(months, calls, pch=20, col=4) > lines(xgrid$months, predict(tele2, newdata=xgrid)) > plot(months, tele2$residuals, pch=20, col=4) > abline(h=0, lty=2)
15 20 25 30 20 25 30 months calls
15 20 25 30 −1.5 −0.5 0.5 1.5 months residuals 31
32
33
34
35
36
37
1 n−p
i=1 e2 i , p = d + 1
38
39
b0
b1
41
j )/sbj ∼ N(0, 1) is number of standard
42
43
f
fit + s2 = s2 pred.
44
45
x
x
x 46
j
H0
47
x
fit.
x
48
ind
∂E[Y |X1,X2] ∂X1
49
i=1(Yi − ¯
i=1(ˆ
i=1(Yi − ˆ
ˆ yy
50