Tutorial 05
Tutorial 05
Tutorial 05
Tutorial #5
Data set
The basic paradigm:
Model
Parameters:
.
Markov Process
Markov Property: The state of the system at time t+1 depends only
on the state of the system at time t
Pr X t 1 xt 1 | X 1 X t x1 xt Pr X t 1 xt 1 | X t xt
X1 X2 X3 X4 X5
3
Markov Process
Simple Example
Weather:
raining today 40% rain tomorrow
60% no rain tomorrow
rain no rain
0.2
4
Markov Process
Simple Example
Weather:
raining today 40% rain tomorrow
60% no rain tomorrow
5
Markov Process
Gamblers Example
Gambler starts with $10
- At each play we have one of the following:
Gambler wins $1 with probability p
Gambler looses $1 with probability 1-p
0 1 2 99 100
p p p p
0 1 2 99 100
7
Markov Process
Coke vs. Pepsi Example
Given that a persons last cola purchase was Coke,
there is a 90% chance that his next cola purchase will
also be Coke.
If a persons last cola purchase was Pepsi, there is
an 80% chance that his next cola purchase will also be
Pepsi.
8
Markov Process
Coke vs. Pepsi Example (cont)
Pepsi ? ? Coke
9
Markov Process
Coke vs. Pepsi Example (cont)
1
Markov Process
Coke vs. Pepsi Example (cont)
2/3
0.9 0.1 2
2
3
1
3 3
1
3
0 . 2 0 . 8
Pr[Xi = Coke]
stationary distribution
coke pepsi
0.2
week - i
1
Hidden Markov Models - HMM
Hidden states
H1 H2 Hi HL-1 HL
X1 X2 Xi XL-1 XL
Observed
data
1
Hidden Markov Models - HMM
Coin-Tossing Example
0.9
0.9
0.1 transition probabilities
fair loaded
0.1
H T H T
Fair/Loade
d
H1 H2 Hi HL-1 HL
X1 X2 Xi XL-1 XL
Head/Tail
1
Hidden Markov Models - HMM
C-G Islands Example
C-G islands: Genome regions which are very rich in C and G
q/4
q/4 P q
A G
Regular P q
change
DNA P q
P q
q/4
T C
q/4 p/6 p/3
(1-P)/4 A G
T C
1
Hidden Markov Models - HMM
C-G Islands Example
ge
an
ch
G
A C
A C
T
T
C-G /
Regular
H1 H2 Hi HL-1 HL
X1 X2 Xi XL-1 XL
{A,C,G,T} To be continued
1