Machine Learning
Machine Learning
Chris Williams
School of Informatics, University of Edinburgh
August 2014
1 / 17
Outline
Univariate Gaussian
Multivariate Gaussian
2 / 17
1
2 2
exp
(x )2
2 2
x N (, 2 ) (x is distributed as...).
3 / 17
Plot
0.4
0.3
0.2
0.1
4 / 17
Normalization
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
8
5 / 17
N
N
1X
(xn )2
log(2) +
log
2
2
2
X
log P (X|, )
=
(xn )
n
1X n
N
log P (X|, )
=
(x )2 +
2 n
2
log P (X|, ) =
Hence equating
to zero:
= (1/N )
P derivatives
2 = (1/N ) n (xn
)2 .
nx
and
6 / 17
Multivariate Gaussian
I
Shorthand: x N (, )
7 / 17
0.16
0.14
0.12
0.1
0.08
0.06
0.04
0.02
0
3
2
2
0
1
0
2
3
8 / 17
Mahalanobis Distance
9 / 17
I
I
I
10 / 17
Example
I
The data.
6
6
6
11 / 17
Example
I
6
6
12 / 17
Example
Suppose you have variables position and class where the
position is a location in D-dimensional space. Suppose you have
data D consisting of examples of position and class. If we
assume that all the points with a particular class label are
Gaussian, describe how, using the data, you could predict the
class for a previously unseen position (and give the accuracy of
the prediction).
13 / 17
15 / 17
11
21
12
22
c1|2 = 1 + 12 1
22 (x2 2 )
c1|2 = 11 12 1
22 21
I
16 / 17
Summary
Univariate Gaussian
Multivariate Gaussian
17 / 17