









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










TTIC 31020: Introduction to Machine Learning
Instructor: Greg Shakhnarovich
TTI–Chicago
November 5, 2010
For a MoG model with k components in Rd:
|θ| = k (d + d(d + 1)/2) + k − 1.
For a model class M with parameters θM, we find ML (or MAP) estimates of the parameters on X = [x 1 ,... , xN ]:
L∗(M) , max θM
log p(X|M; θM).
e.g., M = {mixtures of 5 Gaussians}
The BIC score for the model M on data X:
BIC(M) = L∗(M) −
|θM| log N.
Suppose we want to communicate the data set X.
The receiver knows the model class M(θ).
We need to communicate: ˆθ and the prediction errors.
The goal of learning: find the most efficient way of communicating this information.
Suppose we want to communicate the data set X.
The receiver knows the model class M(θ).
We need to communicate: ˆθ and the prediction errors.
The goal of learning: find the most efficient way of communicating this information.
Suppose we had an alphabet with 8 letters; each letter appears with probability 1/8.
How many bits do we need to code an n-letter message?
three bits per letter ⇒ 3 n bits total.
Suppose we had an alphabet with m letters a 1 ,... , am
Probabilistic model of the language: for a letter A, p(A = ai) = pi.
Need to encode n-letter message;
Example: Huffman’s code. Suppose p(a) = 1/ 2 , p(b) = p(c) = 1/4.
Entropy H(A) = −
∑m i=1 p(ai) log^ p(ai) gives the amount of information gained from observing an instance of A.
Example: Bernoulli, A ∈ { 0 , 1 }, p(A = 1) = θ.
1
θ
H(θ)
With real-valued messages the code length depends on precision.
∑^ m
i=
pi log pi.
The receiver can’t know θ - we need to also transmit θˆ. We will discretize θ into 1/
N distinct values
N nats to encode each component of θˆ Total description length with k parameters:
DL(X, θˆ) ≈ −
i=
log p
xi | θˆ
The receiver can’t know θ - we need to also transmit θˆ. We will discretize θ into 1/
N distinct values
N nats to encode each component of θˆ Total description length with k parameters:
DL(X, θˆ) ≈ −
i=
log p
xi | θˆ
k log N
i.e., minimizing MDL ⇒ maximizing BIC score.
Suppose we have a random discrete variable X with distribution p, pi , Pr(X = i), i = 1,... , m.
Optimal code (knowing p) has expected length per observation
L(p) = −
∑^ m
i=
pi log pi.
Suppose now we think (estimate) the distribution is ˆp = q.
L(q) = −
∑^ m
i=
pi log qi.