Difference between revisions of "Aufgaben:Exercise 1.7: Ternary Markov Chain"

From LNTwww
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
  
 
[[File:P_ID453__Sto_A_1_7.png|right|frame|Ternary Markov chain]]
 
[[File:P_ID453__Sto_A_1_7.png|right|frame|Ternary Markov chain]]
We consider a Markov chain with three possible events  $A$,  $B$  and  $C$:  
+
We consider a Markov chain with three possible events  $A$,  $B$,  $C$:  
 
*The transition probabilities are shown in the graph.
 
*The transition probabilities are shown in the graph.
*Thus, a transition from  $A$  to  $C$  and vice versa is not possible
+
*Thus,  a transition from  $A$  to  $C$  and vice versa is not possible.
  
 
:$$p_\text{AC} = p_\text{CA} = 0.$$  
 
:$$p_\text{AC} = p_\text{CA} = 0.$$  
  
The three event probabilities at the starting time  $\nu = 0$  are given as follows:
+
The three event probabilities at the starting time  $(\nu = 0)$  are given as follows:
 
   
 
   
 
:$${\rm Pr}(A_0) = 0,$$
 
:$${\rm Pr}(A_0) = 0,$$
 
 
:$${\rm Pr}(B_0) = 1,$$
 
:$${\rm Pr}(B_0) = 1,$$
 
 
:$${\rm Pr}(C_0) = 0.$$
 
:$${\rm Pr}(C_0) = 0.$$
 
 
 
  
  
Line 26: Line 21:
 
Hints:  
 
Hints:  
 
*The exercise belongs to the chapter  [[Theory_of_Stochastic_Signals/Markov_Chains|Markov Chains]].
 
*The exercise belongs to the chapter  [[Theory_of_Stochastic_Signals/Markov_Chains|Markov Chains]].
*In particular, reference is made to the page  [[Theory_of_Stochastic_Signals/Markov_Chains#Matrix_vector_representation|Matrix vector representation]] .
+
*In particular,  reference is made to the page  [[Theory_of_Stochastic_Signals/Markov_Chains#Matrix_vector_representation|Matrix vector representation]].
 
   
 
   
  
Line 33: Line 28:
  
 
<quiz display=simple>
 
<quiz display=simple>
{Give the transition matrix&nbsp; ${\mathbf{P}}$&nbsp; and the transition probabilities&nbsp; $p_\text{AA}$,&nbsp; $p_\text{BB}$&nbsp; and&nbsp; $p_\text{CC}$ an.
+
{Give the transition matrix&nbsp; ${\mathbf{P}}$&nbsp; and the transition probabilities&nbsp; $p_\text{AA}$,&nbsp; $p_\text{BB}$&nbsp; and&nbsp; $p_\text{CC}$.
 
|type="{}"}
 
|type="{}"}
 
$p_\text{AA} \ = \ $ { 0.25 3% }
 
$p_\text{AA} \ = \ $ { 0.25 3% }
Line 39: Line 34:
 
$p_\text{CC} \ = \ $ { 0.75 3% }
 
$p_\text{CC} \ = \ $ { 0.75 3% }
  
{Calculate the event probabilities at time&nbsp; $\nu = 1$, in particular
+
{Calculate the event probabilities at time&nbsp; $\nu = 1$,&nbsp; in particular
 
|type="{}"}
 
|type="{}"}
 
${\rm Pr}(A_1) \ = \ $ { 0.75 3% }
 
${\rm Pr}(A_1) \ = \ $ { 0.75 3% }
  
{Calculate the event probabilities at time&nbsp; $\nu = 2$, in particular
+
{Calculate the event probabilities at time&nbsp; $\nu = 2$,&nbsp; in particular
 
|type="{}"}
 
|type="{}"}
 
${\rm Pr}(A_2) \ =  \ ${ 0.1875 3% }
 
${\rm Pr}(A_2) \ =  \ ${ 0.1875 3% }
Line 58: Line 53:
 
===Solution===
 
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; In general, or in this special case, it must hold:
+
'''(1)'''&nbsp; In general&nbsp; (or in this special case)&nbsp; it must hold:
 
:$$p_{\rm AA} = 1 - p_{\rm AB} - p_{\rm AC} \hspace{0.5cm} \Rightarrow  \hspace{0.5cm} p_{\rm AA} = 1 - 0.75 -0 \hspace{0.15cm}\underline {= 0.25},$$
 
:$$p_{\rm AA} = 1 - p_{\rm AB} - p_{\rm AC} \hspace{0.5cm} \Rightarrow  \hspace{0.5cm} p_{\rm AA} = 1 - 0.75 -0 \hspace{0.15cm}\underline {= 0.25},$$
 
:$$p_{\rm BB} = 1 - p_{\rm BA} - p_{\rm BC} \hspace{0.5cm} \Rightarrow  \hspace{0.5cm} p_{\rm BB} = 1 - 0.75 -0.25 \hspace{0.15cm}\underline {= 0},$$
 
:$$p_{\rm BB} = 1 - p_{\rm BA} - p_{\rm BC} \hspace{0.5cm} \Rightarrow  \hspace{0.5cm} p_{\rm BB} = 1 - 0.75 -0.25 \hspace{0.15cm}\underline {= 0},$$
 
:$$p_{\rm CC} = 1 - p_{\rm CA} - p_{\rm CB} \hspace{0.5cm} \Rightarrow  \hspace{0.5cm} p_{\rm CC} = 1 - 0 - 0.25 \hspace{0.15cm}\underline {= 0.75}.$$
 
:$$p_{\rm CC} = 1 - p_{\rm CA} - p_{\rm CB} \hspace{0.5cm} \Rightarrow  \hspace{0.5cm} p_{\rm CC} = 1 - 0 - 0.25 \hspace{0.15cm}\underline {= 0.75}.$$
*Thus, the transition matrix is:
+
*Thus,&nbsp; the transition matrix is:
 
:$${\mathbf{P}} = \left[ \begin{array}{ccc} 1/4 & 3/4 & 0 \\ 3/4 & 0 & 1/4  \\ 0 & 1/4 & 3/4  \end{array} \right] .$$
 
:$${\mathbf{P}} = \left[ \begin{array}{ccc} 1/4 & 3/4 & 0 \\ 3/4 & 0 & 1/4  \\ 0 & 1/4 & 3/4  \end{array} \right] .$$
  
  
  
'''(2)'''&nbsp; Because of&nbsp; ${\rm Pr}(B_0) = 1$&nbsp; and&nbsp; $p_\text{BB}  = 0$&nbsp;, at time&nbsp; $\nu = 1$&nbsp; event&nbsp; $B$&nbsp; cannot occur and&nbsp; $A$&nbsp; is much more probable than&nbsp; $C$:
+
'''(2)'''&nbsp; Because of&nbsp; ${\rm Pr}(B_0) = 1$&nbsp; and&nbsp; $p_\text{BB}  = 0$,&nbsp; at time&nbsp; $\nu = 1$&nbsp; the event&nbsp; $B$&nbsp; cannot occur and&nbsp; $A$&nbsp; is much more probable than&nbsp; $C$:
 
:$$\hspace{0.15cm}\underline {{\rm Pr}(A_1) = 0.75}; \hspace{0.5cm} {\rm Pr}(B_1) = 0; \hspace{0.5cm}{\rm Pr}(C_1) = 0.25.$$
 
:$$\hspace{0.15cm}\underline {{\rm Pr}(A_1) = 0.75}; \hspace{0.5cm} {\rm Pr}(B_1) = 0; \hspace{0.5cm}{\rm Pr}(C_1) = 0.25.$$
 
*The same result is obtained by applying the vector matrix representation.
 
*The same result is obtained by applying the vector matrix representation.
Line 75: Line 70:
 
'''(3)'''&nbsp; For the probability vector at time&nbsp; $\nu = 2$&nbsp; holds:
 
'''(3)'''&nbsp; For the probability vector at time&nbsp; $\nu = 2$&nbsp; holds:
 
:$${\mathbf{p}^{(\nu = 2)}} = {\mathbf{P}}^{\rm T} \cdot {\mathbf{p}^{(\nu =1 )}}= \left[ \begin{array}{ccc} 1/4 & 3/4&  0 \\ 3/4 & 0 & 1/4 \\ 0& 1/4& 3/4  \end{array} \right] \left[ \begin{array}{c} 3/4 \\ 0  \\ 1/4  \end{array} \right] = \left[ \begin{array}{c} 3/16 \\ 10/16  \\ 3/16 \end{array} \right] .$$
 
:$${\mathbf{p}^{(\nu = 2)}} = {\mathbf{P}}^{\rm T} \cdot {\mathbf{p}^{(\nu =1 )}}= \left[ \begin{array}{ccc} 1/4 & 3/4&  0 \\ 3/4 & 0 & 1/4 \\ 0& 1/4& 3/4  \end{array} \right] \left[ \begin{array}{c} 3/4 \\ 0  \\ 1/4  \end{array} \right] = \left[ \begin{array}{c} 3/16 \\ 10/16  \\ 3/16 \end{array} \right] .$$
*Thus, the event probability is&nbsp; ${\rm Pr}(A_2) = 3/16\hspace{0.15cm}\underline {=  0.1875}$.
+
*Thus,&nbsp; the event probability is&nbsp; ${\rm Pr}(A_2) = 3/16\hspace{0.15cm}\underline {=  0.1875}$.
  
  
  
'''(4)'''&nbsp; To solve this problem, several possibilities should be given.  
+
'''(4)'''&nbsp; To solve this problem,&nbsp; several possibilities should be given.  
 
*One is to solve a system of equations with three unknowns:
 
*One is to solve a system of equations with three unknowns:
 
:$${\rm Pr}(A) = 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(A)  \hspace{0.1cm} + \hspace{0.1cm} 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(B),$$
 
:$${\rm Pr}(A) = 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(A)  \hspace{0.1cm} + \hspace{0.1cm} 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(B),$$
 
:$${\rm Pr}(B) = 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(A)  \hspace{2.8cm} + \hspace{0.1cm} 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(C),$$
 
:$${\rm Pr}(B) = 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(A)  \hspace{2.8cm} + \hspace{0.1cm} 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(C),$$
 
:$${\rm Pr}(C) = \hspace{2.8cm} 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(B)  \hspace{0.1cm} + \hspace{0.1cm} 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(C).$$
 
:$${\rm Pr}(C) = \hspace{2.8cm} 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(B)  \hspace{0.1cm} + \hspace{0.1cm} 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(C).$$
:From the first equation we get ${\rm Pr}(B) = {\rm Pr}(A)$, from the last ${\rm Pr}(C) = {\rm Pr}(A)$. Since the sum of all probabilities is equal to $1$, it follows  $ {\rm Pr}(A) = {\rm Pr}(B) = {\rm Pr}(C) = 1/3 \hspace{0.15cm}\underline {\approx  0.333}$.
+
:From the first equation we get&nbsp; ${\rm Pr}(B) = {\rm Pr}(A)$,&nbsp; from the last&nbsp; ${\rm Pr}(C) = {\rm Pr}(A)$.&nbsp; Since the sum of all probabilities is equal to&nbsp; $1$,&nbsp; it follows   
*The same result is obtained by analyzing the transition matrix.&nbsp; Since the sum of each column equals&nbsp; $1$&nbsp;&nbsp; $(that is, the sum of each row of the transposed matrix also equals $1)$, it is obvious that all event probabilities must be equal.
+
:$$ {\rm Pr}(A) = {\rm Pr}(B) = {\rm Pr}(C) = 1/3 \hspace{0.15cm}\underline {\approx  0.333}.$$
 +
*The same result is obtained by analyzing the transition matrix.&nbsp; Since the sum of each column equals&nbsp; $1$&nbsp;&nbsp; $($that is,&nbsp; the sum of each row of the transposed matrix also equals $1)$,&nbsp; it is obvious that all event probabilities must be equal.
  
*Even by thinking about it briefly, one could have predicted the result without calculating.&nbsp; Since at each event the numerical values at the outgoing arrows&nbsp; (only to other events)&nbsp; are equal with those at the incoming ones, it is not to be seen why one of the events should be preferred.
+
*Even by thinking about it briefly,&nbsp; one could have predicted the result without calculating.&nbsp; Since at each event the numerical values at the outgoing arrows&nbsp; (only to other events)&nbsp; are equal with those at the incoming ones,&nbsp; it is not to be seen why one of the events should be preferred.
 
{{ML-Fuß}}
 
{{ML-Fuß}}
  

Latest revision as of 15:21, 2 December 2021

Ternary Markov chain

We consider a Markov chain with three possible events  $A$,  $B$,  $C$:

  • The transition probabilities are shown in the graph.
  • Thus,  a transition from  $A$  to  $C$  and vice versa is not possible.
$$p_\text{AC} = p_\text{CA} = 0.$$

The three event probabilities at the starting time  $(\nu = 0)$  are given as follows:

$${\rm Pr}(A_0) = 0,$$
$${\rm Pr}(B_0) = 1,$$
$${\rm Pr}(C_0) = 0.$$



Hints:


Questions

1

Give the transition matrix  ${\mathbf{P}}$  and the transition probabilities  $p_\text{AA}$,  $p_\text{BB}$  and  $p_\text{CC}$.

$p_\text{AA} \ = \ $

$p_\text{BB} \ = \ $

$p_\text{CC} \ = \ $

2

Calculate the event probabilities at time  $\nu = 1$,  in particular

${\rm Pr}(A_1) \ = \ $

3

Calculate the event probabilities at time  $\nu = 2$,  in particular

${\rm Pr}(A_2) \ = \ $

4

What probabilities will occur very long after the Markov chain is turned on  $(ν \rightarrow \infty)$?
In particular, what is the ergodic probability  ${\rm Pr}(A)$?

${\rm Pr}(A) \ = \ $


Solution

(1)  In general  (or in this special case)  it must hold:

$$p_{\rm AA} = 1 - p_{\rm AB} - p_{\rm AC} \hspace{0.5cm} \Rightarrow \hspace{0.5cm} p_{\rm AA} = 1 - 0.75 -0 \hspace{0.15cm}\underline {= 0.25},$$
$$p_{\rm BB} = 1 - p_{\rm BA} - p_{\rm BC} \hspace{0.5cm} \Rightarrow \hspace{0.5cm} p_{\rm BB} = 1 - 0.75 -0.25 \hspace{0.15cm}\underline {= 0},$$
$$p_{\rm CC} = 1 - p_{\rm CA} - p_{\rm CB} \hspace{0.5cm} \Rightarrow \hspace{0.5cm} p_{\rm CC} = 1 - 0 - 0.25 \hspace{0.15cm}\underline {= 0.75}.$$
  • Thus,  the transition matrix is:
$${\mathbf{P}} = \left[ \begin{array}{ccc} 1/4 & 3/4 & 0 \\ 3/4 & 0 & 1/4 \\ 0 & 1/4 & 3/4 \end{array} \right] .$$


(2)  Because of  ${\rm Pr}(B_0) = 1$  and  $p_\text{BB} = 0$,  at time  $\nu = 1$  the event  $B$  cannot occur and  $A$  is much more probable than  $C$:

$$\hspace{0.15cm}\underline {{\rm Pr}(A_1) = 0.75}; \hspace{0.5cm} {\rm Pr}(B_1) = 0; \hspace{0.5cm}{\rm Pr}(C_1) = 0.25.$$
  • The same result is obtained by applying the vector matrix representation.


(3)  For the probability vector at time  $\nu = 2$  holds:

$${\mathbf{p}^{(\nu = 2)}} = {\mathbf{P}}^{\rm T} \cdot {\mathbf{p}^{(\nu =1 )}}= \left[ \begin{array}{ccc} 1/4 & 3/4& 0 \\ 3/4 & 0 & 1/4 \\ 0& 1/4& 3/4 \end{array} \right] \left[ \begin{array}{c} 3/4 \\ 0 \\ 1/4 \end{array} \right] = \left[ \begin{array}{c} 3/16 \\ 10/16 \\ 3/16 \end{array} \right] .$$
  • Thus,  the event probability is  ${\rm Pr}(A_2) = 3/16\hspace{0.15cm}\underline {= 0.1875}$.


(4)  To solve this problem,  several possibilities should be given.

  • One is to solve a system of equations with three unknowns:
$${\rm Pr}(A) = 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(A) \hspace{0.1cm} + \hspace{0.1cm} 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(B),$$
$${\rm Pr}(B) = 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(A) \hspace{2.8cm} + \hspace{0.1cm} 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(C),$$
$${\rm Pr}(C) = \hspace{2.8cm} 1/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(B) \hspace{0.1cm} + \hspace{0.1cm} 3/4 \hspace{0.05cm} \cdot \hspace{0.05cm} {\rm Pr}(C).$$
From the first equation we get  ${\rm Pr}(B) = {\rm Pr}(A)$,  from the last  ${\rm Pr}(C) = {\rm Pr}(A)$.  Since the sum of all probabilities is equal to  $1$,  it follows
$$ {\rm Pr}(A) = {\rm Pr}(B) = {\rm Pr}(C) = 1/3 \hspace{0.15cm}\underline {\approx 0.333}.$$
  • The same result is obtained by analyzing the transition matrix.  Since the sum of each column equals  $1$   $($that is,  the sum of each row of the transposed matrix also equals $1)$,  it is obvious that all event probabilities must be equal.
  • Even by thinking about it briefly,  one could have predicted the result without calculating.  Since at each event the numerical values at the outgoing arrows  (only to other events)  are equal with those at the incoming ones,  it is not to be seen why one of the events should be preferred.