Question: Assuming that there are 3 m&m candy bottles (labeled B1, B2, B3) with red, green and yellow colors, one of the candies from 3 bottles
Assuming that there are 3 m&m candy bottles (labeled B1, B2, B3) with red, green and yellow colors, one of the candies from 3 bottles will be randomly taken out in a series. Given the transition probability matrix A, emission probability B and initial probability π as follows, if observation sequence is red-red-yellow-green-yellow, write python program by the functions from "hmmlearn" model to find probability of observation sequence P(rrygy), and what most likely bottles in series they are coming from.

Transition matrix A (to)B1 (to)B2 (to)B3 (from)B1 0.3 0.2 0.5 (from)B2 0.1 0.3 0.6 (from)B3 0.7 0.25 0.05 B1 B2 B3 Emission matrix B red green yellow 0.8 0.1 0.1 0.2 0.4 0.4 0.15 0.25 0.6 Initial Probabilities Prob. B3 B1 B2 0.4 0.35 0.25
Step by Step Solution
3.38 Rating (164 Votes )
There are 3 Steps involved in it
Sony question Seth Eminem plan candies in 6 colours brown green Orange red blue and yellow assume th... View full answer
Get step-by-step solutions from verified subject matter experts
