Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please be quick 1 Some Computations Consider the Markov chain with transition matrix P=1/23/401/3011/61/40 1. Show that this is irreducible and even regular. 2. The

please be quick

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

1 Some Computations Consider the Markov chain with transition matrix P=1/23/401/3011/61/40 1. Show that this is irreducible and even regular. 2. The process is started in state 1 ; find the probability that it is in state 3 after two steps. 3. Find the matrix which is the limit of Pn as n. 4. Write a Python function that runs the Markov chain starting from state 1 and show that the vector p(n) indeed tends toward the stationary distribution. To make it concrete run the chain during N=1000 steps and let ni be the number of time it has been in state i for i=1,2,3. Observe that the vector (n1/N,n2/N,n3/N) is indeed very close to the stationary distribution. Consider a Markov chain with states S={0,,N} and transition probabilities pi,i+1=p,pi,i1= q, for 1iN1, where p+q=1,0

0 and q>0. Compute the ruin probability: hi=P({n0,Xn=0}X0=i). Show that even if the casino is fair, that is if p=q, the gambler probability to be ruined is 1 . 4.1 SySTEM DESCRIPTION Welcome to the Emperor palace! The elder daughter of Probabil the Great, beautiful Princess Variance, reached the 2-pi-square age that is considered as a mean of a normal distribution for the age when maidens of the Empire get married. Today, the traditional matrimonial contest will be held in the Palace. The winner will marry the Princess. The contest has ancient roots. When a princess is born, the Emperor assigns her a special servant. Every day from the day of the princess birth to the day of her 2-pi-square age her servant must visit four ponds in the Emperor Garden, in accordance to a Markov process, 2 and catch one hundred fishes. The servant must record fish colors (red, blue, or green) and then return the fish back to the ponds. Each pond is strictly maintained and has its own proportion of fish of different colors. Every day, the Emperor mass media announced the results of the fishing. Ten days before the princess comes of age, her servant will put every caught fish into a transparent numbered jar and send it to the Palace. (It is assumed that taking out 1,000 fishes does not change the statistical properties of the ponds.) In order to win the Princess hand in marriage, a contestant has to guess as accurately as possible from which pond each fish came. Our data is a sequence of observations O of length L=1000. Every data element is a color of a fish from a finite set of colors (or a finite alphabet of symbols). In our case the set contains three symbols: "red", "blue", and "green". Each fish was taken out of some pond, or we can say "a data point was emitted in some state q ". A first-order Markov chain determines the sequence of states, according to the following transition matrix: A=0.60.10.050.10.050.050.70.10.10.70.10.60.250.150.150.2 Every state has its own discrete probability distribution for fish color. We shall call this distribution a symbol emission vector in i-th state. Collecting all vectors as columns of the matrix, we can get a symbol emission matrix: B=0.80.10.10.20.70.10.10.70.20.50.30.2RG The first state is randomly chosen from the four possible states according to the prior distribution: =(0.30.10.40.2) 4.2 TASKS 1. Simulate the discrete system and extract a sequence of 1000 states and observations. 2. Implement the forward algorithm 3. Implement the backward algorithm 4. Compute with both algorithms the probability of the sequence of observations generated by the simulation. 5. Implement the Viterbi algorithm. 6. Compute the most probable sequence of states given the sequence of observations generated by the simulation. Compare it with the sequence of states generated by the simulation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

6. Develop a self-management module for a training program.

Answered: 1 week ago

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago