Beruflich Dokumente
Kultur Dokumente
http://gamma.ufba.br/
1
11/7/2018
2
11/7/2018
3
11/7/2018
4
11/7/2018
10
5
11/7/2018
11
12
6
11/7/2018
13
14
7
11/7/2018
15
16
8
11/7/2018
17
18
9
11/7/2018
19
20
10
11/7/2018
21
11
11/7/2018
AIC 78
++ 2*,- For simplicity, the constant was omitted
'6
12
11/7/2018
BIC will also tend to take on a small value for a model with a low
test error. Since log 2 for any 7, BIC statistic generally
places a heavier penalty on models with many variables, and hence
results in the selection of smaller models than ) .
25
BCC
Maximizing is equivalent to minimizing , so it may increase
' @
or decrease due to the presence of d in the denominator.
26
13
11/7/2018
27
14
11/7/2018
Shrinkage Methods
• Ridge regression
• Lasso
29
Remember:
Least squares fitting estimates 1# , 1 , …, 1 using the
values that minimize
'
++ G 1# G 1H H
" H"
30
15
11/7/2018
G 1# G 1H H J G 1IH ++ J G 1IH
" H" H" H"
32
16
11/7/2018
33
34
17
11/7/2018
18
11/7/2018
Squared bias (black), variance (green), and test mean squared error (purple);
minimum possible MSE (horizontal dashed lines); ridge regression models for
which the MSE is smallest (purple crosses) ISLR Figure 6.4
38
19
11/7/2018
39
40
20
11/7/2018
G 1# G 1H H J G 1H ++ J G 1H
" H" H" H"
G 1# G 1H H J G 1H ++ J G 1H
" H" H" H"
N penalty
'
G 1# G 1H H J G 1IH ++ J G 1IH
" H" H" H"
42
21
11/7/2018
43
minimize
∑'" 1# ∑H" 1H subject to ∑H" 1H ` a
1 H
minimize
∑'" 1# ∑H" 1H subject to ∑H" 1H ` a
1 H
44
22
11/7/2018
minimize
∑'" 1# ∑H" 1H subject to ∑H" b 1H 0 ` a 45
1 H
46
23
11/7/2018
48
24
11/7/2018
shrinkage
performed by lasso
is known as soft -
thresholding
50
25
11/7/2018
26
11/7/2018
53
So far…
54
27
11/7/2018
i , i , … , ij represent
ij ∑H" kHj QH $ linear combination
of our original predictors
kHj .
l# ∑m
j" lj i j / n 1, … , and
o
∑j
j" kHj 1
55
G lj i j G lj G kHj H G G lj kHj H G 1H H
j" j" H"p H" j" H"
Where: 1H ∑m
j" lj kHj
56
28
11/7/2018
57
29
11/7/2018
59
60
30
11/7/2018
61
31
11/7/2018
64
32
11/7/2018
66
Simulated example with 20. Figure 6.10
33
11/7/2018
67
34
11/7/2018
70
35
11/7/2018
Moment of Reflection
71
Homework
Use R Markdown
Deadline -
Submit the assignment on Moodle
Max. 3 members per group
72
36