Download presentation
Presentation is loading. Please wait.
Published byHeather Bell Modified over 9 years ago
1
Rolling Dice Data Analysis - Hidden Markov Model Danielle Tan Haolin Zhu
2
Observations-Histogram 1
3
Observations-Histogram 2 #1-1000: fair die? #1001-2000: loaded die 1? #7001-8000: loaded die 2?
4
Observations-Cumulative Sum Fair region’s slope = 3.5; Loaded regions have approx. same slope of 4.5
5
Observations- Histogram 3 1 st Loaded Region 3 rd Loaded Region 5 th Loaded Region
6
Observations 2 dice: One is fair, one is loaded. Loaded regions are: #1500-1980; #3690-3790, #4250-4660, #5700- 6500 & #7000-7700 Probability of 6 on the loaded dice is ½. Once either of the dice is used, it will continue being used for a while.
7
Hidden Markov Model Known information: A sequence of observations with integers between 1-6. Questions of interest: How was this data set generated? What portion of the data was generated by the fair dice and loaded dice respectively? What are the probabilities of the transition between the dice? What is the probability of generating 6 using the loaded dice?
8
Hidden-Markov Model Define two states: Fair Loaded Probabilities of the transition between the two states. 0.05 0.95 Transition Matrix: A guess from observation!
9
Hidden-Markov Model In each state, there are 6 possible output: FairLoaded 11/61/10 21/61/10 31/61/10 41/61/10 51/61/10 61/61/2 Emission Matrix: Again a guess!
10
Hidden-Markov Model A set of observations: The states are hidden: For example: s=(FFFFFFFFLLLFFFLL…) Given the output sequence y, we need to find the most likely set of state transition and output probabilities. In other words, to derive the maximum likelihood estimate of the parameters (transition probabilities) of the HMM given a dataset of output sequences.
11
Forward-Backward algorithm What is the probability that the actual state of the system is i at time t? The probability of the observed data up to time t: The probability of the observed data after time t: Then:
12
Baum-Welch re-estimation Notice that we are using a guess of the transition matrix and the emission matrix! Re-estimation of A and b: Then we are able to iterate until it converges—we keep track of the probability of the whole data set generated by the given parameters until it converges to a maximum.
13
Results Transition matrix: Emission matrix:
14
Results Time when the loaded dice was used:
15
Results Histogram of the data generated by the Hidden- Markov model:
16
Results Cumulative sum of the data generated by the Hidden Markov model:
17
Results Log of the likelihood
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.