Documente Academic
Documente Profesional
Documente Cultură
Math Essentials
Part 2
In one dimension
( x )2
1
Ν ( x | , )
2
e 2 2
(2 ) 2 1/ 2
( x )2
1
Ν ( x | , ) 2
e 2 2
(2 ) 2 1/ 2
Normalizing constant:
insures that distribution
integrates to 1
1 12 x 2
x e
2
= 0 2 = 1 = 2 2 = 1
= 0 2 = 5 = -2 2 = 0.3
Jeff Howbert Introduction to Machine Learning Winter 2012 ‹#›
Multivariate Gaussian distribution
In d dimensions
1
1 1 ( x μ ) T Σ 1 ( x μ )
Ν (x | μ, Σ) e 2
(2 ) | Σ |
d /2 1/ 2
Covariance
– Measures tendency for two variables to deviate from
their means in same (or opposite) directions at same
time
no covariance
high (positive)
covariance
Jeff Howbert Introduction to Machine Learning Winter 2012 ‹#›
Multivariate Gaussian distribution
In two dimensions
0
μ
0
0.25 0.3
Σ
0.3 1
In two dimensions
2 0.6 2 0 1 0
Σ Σ Σ
0.6 2 0 1 0 1
In three dimensions
rng( 1 );
mu = [ 2; 1; 1 ];
sigma = [ 0.25 0.30 0.10;
0.30 1.00 0.70;
0.10 0.70 2.00] ;
x = randn( 1000, 3 );
x = x * sigma;
x = x + repmat( mu', 1000, 1 );
scatter3( x( :, 1 ), x( :, 2 ), x( :, 3 ), '.' );
z β x 1 x1 d xd
w0
w
margin