Vite Rbi
Vite Rbi
Mark Hasegawa-Johnson
All content CC-SA 4.0 unless otherwise specified.
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
Bayesian Classifiers
where cy ,k , µ
~ y ,k , Σy ,k might be estimated using EM.
Review HMM Recognition Segmentation Example Summary Example
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
a13
a11 a22 a33
a12 a23
1 a21 2 a32 3
a31
b1 (~x ) b2 (~x ) b3 (~x )
~x ~x ~x
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
Given
X = [~x1 , . . . , ~xT ] and
Λ = {πi , aij , bj (~x )∀i, j},
what is p(X |Λ)?
Let’s solve a simpler problem first:
Given
X = [~x1 , . . . , ~xT ] and
Q = [q1 , . . . , qT ] and
Λ = {πi , aij , bj (~x )∀i, j},
what is p(X |Λ)?
Review HMM Recognition Segmentation Example Summary Example
3 Terminate:
N
X
p(X |Λ) = αT (i)
i=1
Review HMM Recognition Segmentation Example Summary Example
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
p(X , qt = i|Λ)
γt (i) = p(qt = i|X , Λ) = PN
j=1 p(X , qt = j|Λ)
Review HMM Recognition Segmentation Example Summary Example
Again, let’s try the trick of “solve the problem by inventing new
notation.” Let’s define
Now let’s use the definition βt (i) ≡ p(~xt+1 , . . . , ~xT |qt = i, Λ), and
see how we can compute that.
1 Initialize:
βT (i) = 1, 1 ≤ i ≤ N
This might not seem immediately obvious, but think about it.
Given that there are no more ~x vectors after time T , what is
the probability that there are no more ~x vectors after time T ?
Well, 1, obviously.
Review HMM Recognition Segmentation Example Summary Example
Now let’s use the definition βt (i) ≡ p(~xt+1 , . . . , ~xT |qt = i, Λ), and
see how we can compute that.
1 Initialize:
βT (i) = 1, 1 ≤ i ≤ N
2 Iterate:
Now let’s use the definition βt (i) ≡ p(~xt+1 , . . . , ~xT |qt = i, Λ), and
see how we can compute that.
1 Initialize:
βT (i) = 1, 1 ≤ i ≤ N
2 Iterate:
N
X
βt (i) = aij bj (~xt+1 )βt+1 (j), 1 ≤ i ≤ N, 1 ≤ t ≤ T − 1
j=1
3 Terminate:
N
X
p(X |Λ) = πi bi (~x1 )β1 (i)
i=1
Review HMM Recognition Segmentation Example Summary Example
p(X , qt = i|Λ)
γt (i) = PN
k=1 p(X , qt = k|Λ)
p(~x1 , . . . , ~xt , qt = i|Λ)p(~xt+1 , . . . , ~xT |qt = i, Λ)
= PN
k=1 p(~ x1 , . . . , ~xt , qt = k|Λ)p(~xt+1 , . . . , ~xT |qt = k, Λ)
αt (i)βt (i)
= PN
k=1 αt (k)βt (k)
Review HMM Recognition Segmentation Example Summary Example
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
“Gumball machines in a Diner at Dallas, Texas, in 2008,” Andreas Praefcke, public domain image.
Review HMM Recognition Segmentation Example Summary Example
A Segmentation Problem
Image used with permission of the National Numismatic Collection, National Museum of American History.
Review HMM Recognition Segmentation Example Summary Example
α1 (i) = πi b1 (i)
(
(0.5)(0.4) = 0.2 i = 1
=
(0.5)(0.9) = 0.45 i = 2
Review HMM Recognition Segmentation Example Summary Example
β3 (i) = 1, i ∈ {1, 2}
Review HMM Recognition Segmentation Example Summary Example
α2 (i)β2 (i)
γ2 (i) = P2
k=1 α2 (k)β2 (k)
(0.04125)(0.525)
(
(0.04125)(0.525)+(0.03875)(0.775) = 0.42 i = 1
= (0.03875)(0.775)
(0.04125)(0.525)+(0.03875)(0.775) = 0.58 i = 2
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
3 Terminate:
N
X
p(X |Λ) = αT (i)
i=1
Review HMM Recognition Segmentation Example Summary Example
3 Terminate:
N
X
p(X |Λ) = πi bi (~x1 )β1 (i)
i=1
Review HMM Recognition Segmentation Example Summary Example
a13
a11 a22 a33
a12 a23
1 a21 2 a32 3
a31
b1 (~x ) b2 (~x ) b3 (~x )
~x ~x ~x
Outline
5 Numerical Example
6 Summary
7 Written Example
Review HMM Recognition Segmentation Example Summary Example
Written Example