CZECH TECHNICAL UNIVERSITY IN PRAGUE
Faculty of Electrical Engineering Department of Cybernetics
- P. Poˇ
s´ ık c 2015 Artificial Intelligence – 1 / 9
Linear regression Petr Po s k P. Po s k c 2015 Artificial - - PowerPoint PPT Presentation
CZECH TECHNICAL UNIVERSITY IN PRAGUE Faculty of Electrical Engineering Department of Cybernetics Linear regression Petr Po s k P. Po s k c 2015 Artificial Intelligence 1 / 9 Linear regression P. Po s k c
s´ ık c 2015 Artificial Intelligence – 1 / 9
s´ ık c 2015 Artificial Intelligence – 2 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 3 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 3 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 4 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 4 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 5 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 5 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 5 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 5 / 9
w
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 5 / 9
w
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 6 / 9
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 6 / 9
i=1.
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 6 / 9
i=1.
0, w∗ 1) = argmin w0,w1
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 7 / 9
i=1
i=1
x y w0 |y(1) − y(1)| |y(2) − y(2)| |y(3) − y(3)| (x(1), y(1)) (x(2), y(2)) (x(3), y(3))
(x(1), y(1)) (x(2), y(2)) (x(3), y(3)) 1 w1
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 7 / 9
i=1
i=1
x y w0 |y(1) − y(1)| |y(2) − y(2)| |y(3) − y(3)| (x(1), y(1)) (x(2), y(2)) (x(3), y(3))
(x(1), y(1)) (x(2), y(2)) (x(3), y(3)) 1 w1
i=1(x(i) − x)(y(i) − y)
i=1(x(i) − x)2
x
s´ ık c 2015 Artificial Intelligence – 8 / 9
w
20 40 60 80 100
w1
0.0 0.2 0.4 0.6 0.8 1.0
J(w0,w1 )
5 10 15 20 25 30 35 40 45 20 40 60 80 100
w0
0.0 0.2 0.4 0.6 0.8 1.0
w1
100 200 300 400 500 disp 50 100 150 200 250 hp 100 200 300 400 500 disp 50 100 150 200 250 hp 100 200 300 400 500 disp 50 100 150 200 250 hp 100 200 300 400 500 disp 50 100 150 200 250 hp
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 9 / 9
1 , . . . , x(i) D ), i.e. the
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 9 / 9
1 , . . . , x(i) D ), i.e. the
i=1.
Linear regression
regression
s´ ık c 2015 Artificial Intelligence – 9 / 9
1 , . . . , x(i) D ), i.e. the
i=1.