+ All Categories
Home > Documents > A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X =...

A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X =...

Date post: 20-Dec-2015
Category:
View: 228 times
Download: 0 times
Share this document with a friend
Popular Tags:
21
A gentle introduction to Gaussian distribution
Transcript
Page 1: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

A gentle introduction to Gaussian distribution

Page 2: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Review

• Random variable

• Coin flip experiment

X = 0 X = 1

X: Random variable

Page 3: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Review

• Probability mass function (discrete)

x0 1

P(x)

P(x) >= 0

Example: Coin flip experiment

Any other constraints?

Hint: What is the sum?

Page 4: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Review

• Probability density function (continuous)

f(x)

x

f(x) >= 0

Examples?

Unlike discrete, Density function does not representprobability but its rate of change called the “likelihood”

Page 5: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Review

• Probability density function (continuous)

f(x)

x

f(x) >= 0

x0 X0+dx

P( x0 < x < x0+dx ) = f(x0).dx

But, P( x = x0 ) = 0

& Integrates to 1.0

Page 6: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

The Gaussian Distribution

Courtesy: http://research.microsoft.com/~cmbishop/PRML/index.htm

Page 7: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

A 2D Gaussian

Page 8: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Central Limit Theorem

•The distribution of the sum of N i.i.d. random variables becomes increasingly Gaussian as N grows.

•Example: N uniform [0,1] random variables.

Page 9: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Central Limit Theorem (Coin flip)

• Flip coin N times

• Each outcome has an associated random variable Xi (=1, if heads, otherwise 0)

• Number of heads

• NH is a random variable

– Sum of N i.i.d. random variables

NH = x1 + x2 + …. + xN

Page 10: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Central Limit Theorem (Coin flip)

• Probability mass function of NH

– P(Head) = 0.5 (fair coin)

N = 5 N = 10 N = 40

Page 11: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Geometry of the Multivariate Gaussian

Page 12: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Moments of the Multivariate Gaussian (1)

thanks to anti-symmetry of z

Page 13: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Moments of the Multivariate Gaussian (2)

Page 14: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Maximum likelihood

• Fit a probability density model p(x | θ) to the data– Estimate θ

• Given independent identically distributed (i.i.d.) data X = (x1, x2, …, xN)– Likelihood

– Log likelihood

• Maximum likelihood: Maximize ln p(X | θ) w.r.t. θ

)|()|()|()|( 21 NxpxpxpXp

N

iixpXp

1

)|(ln)|(ln

Page 15: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Maximum Likelihood for the Gaussian (1)

• Given i.i.d. data , the log likelihood function is given by

• Sufficient statistics

Page 16: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Maximum Likelihood for the Gaussian (2)

• Set the derivative of the log likelihood function to zero,

• and solve to obtain

• Similarly

Page 17: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Mixtures of Gaussians (1)

• Old Faithful data set

Single Gaussian Mixture of two Gaussians

Page 18: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Mixtures of Gaussians (2)

• Combine simple models

into a complex model:

Component

Mixing coefficientK=3

Page 19: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Mixtures of Gaussians (3)

Page 20: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Mixtures of Gaussians (4)

• Determining parameters ¹, §, and ¼ using maximum log likelihood

• Solution: use standard, iterative, numeric optimization methods or the expectation maximization algorithm (Chapter 9).

Log of a sum; no closed form maximum.

Page 21: A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.

Thank you!


Recommended