Assigned Thursday, January 22
Due Sunday, February 1
Total points: 60
When you hand in your results from this homework, you should submit the following, in separate files:
Submit everything by the due date and time using the web-based handin program.
On this homework, you must work on your own and submit your own results written in your own words.
You will build one model for each of the following training sequences: train1.txt and train2.txt. Each of these files (consisting of one long line) contains a sequence of outcomes of dice rolls (numbered 0–5), interspersed with the notation :x:, which denotes a change to die x (x takes values from {0, 1, 2}). Thus in the training set you know which die produced each outcome. After your program infers each model, you will graphically display the model in your report. Your program will also run the Viterbi and forward algorithms on your model, using the following test sequences as input: test1.txt, test2.txt, and test3.txt. For each test sequence, give the most likely path through the model as well as the probability of this path. Also give the probability that each sequence was generated by the model.
You are to submit a detailed, well-written report, with conclusions. In particular, you should answer the following questions. Did the test sequences come from the same model as the training sequences? Which ones did and which did not? Of course, this is merely the minimum that is required in your report. Other experiments that you run (including generating your own sequences and building models from them) and other interesting questions that you answer might yield extra points.