Difference between revisions of "Aufgaben:Exercise 1.6Z: Ergodic Probabilities"
From LNTwww
m (Text replacement - "Category:Aufgaben zu Stochastische Signaltheorie" to "Category:Theory of Stochastic Signals: Exercises") |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{quiz-Header|Buchseite= | + | {{quiz-Header|Buchseite=Theory_of_Stochastic_Signals/Markov_Chains}} |
− | [[File:P_ID452__Sto_Z_1_6.png|right|frame| | + | [[File:P_ID452__Sto_Z_1_6.png|right|frame|Markov chain with A, B]] |
− | + | We consider a homogeneous stationary first-order Markov chain with events A and B and transition probabilities corresponding to the adjacent Markov diagram: | |
− | + | For subtasks '''(1)''' to '''(4)''', assume: | |
− | * | + | *Event A is followed by A and B with equal probability. |
− | * | + | *After B: The event A is twice as likely as B. |
− | + | From subtask '''(5)''' on, p and q are free parameters, while the ergodic probabilities Pr(A)=2/3 and Pr(B)=1/3 are fixed. | |
Line 20: | Line 20: | ||
− | + | Hints: | |
− | + | *The exercise belongs to the chapter [[Theory_of_Stochastic_Signals/Markov_Chains|Markov Chains]]. | |
− | * | ||
− | * | + | *You can check your results with the (German language) interactive SWF applet |
+ | : [[Applets:Markovketten|Ereigniswahrscheinlichkeiten einer Markov-Kette erster Ordnung]] ⇒ "Event Probabilities of a First Order Markov Chain". | ||
− | === | + | ===Questions=== |
<quiz display=simple> | <quiz display=simple> | ||
− | { | + | {What are the transition probabilities p and q? |
|type="{}"} | |type="{}"} | ||
p = { 0.5 3% } | p = { 0.5 3% } | ||
q = { 0.333 3% } | q = { 0.333 3% } | ||
− | { | + | {Calculate the ergodic probabilities. |
|type="{}"} | |type="{}"} | ||
Pr(A) = { 0.571 3% } | Pr(A) = { 0.571 3% } | ||
Pr(B) = { 0.429 3% } | Pr(B) = { 0.429 3% } | ||
− | { | + | {What is the conditional probability that event B occurs if event A occurred two steps before? |
|type="{}"} | |type="{}"} | ||
Pr(Bν|Aν−2) = { 0.417 3% } | Pr(Bν|Aν−2) = { 0.417 3% } | ||
− | { | + | {What is the inferential probability that event A occurred two steps before, when event B currently occurs? |
|type="{}"} | |type="{}"} | ||
Pr(Aν−2|Bν) = { 0.556 3% } | Pr(Aν−2|Bν) = { 0.556 3% } | ||
− | { | + | {Let now p=1/2 and Pr(A)=2/3. Which value results for q? |
|type="{}"} | |type="{}"} | ||
q = { 0. } | q = { 0. } | ||
− | { | + | {How must the parameters be chosen so that the sequence elements of the Markov chain are statistically independent and additionally Pr(A)=2/3 ? |
|type="{}"} | |type="{}"} | ||
p = { 0.667 3% } | p = { 0.667 3% } | ||
Line 61: | Line 61: | ||
</quiz> | </quiz> | ||
− | === | + | ===Solution=== |
{{ML-Kopf}} | {{ML-Kopf}} | ||
− | '''(1)''' | + | '''(1)''' According to the instruction, p=1−p ⇒ p=0.500_ and q=(1−q)/2, ⇒ q=0.333_ holds. |
− | '''(2)''' | + | '''(2)''' For the event probability of A holds: |
:Pr(A)=Pr(A|B)Pr(A|B)+Pr(B|A)=1−q1−q+1−p=2/32/3+1/2=47≈0.571_. | :Pr(A)=Pr(A|B)Pr(A|B)+Pr(B|A)=1−q1−q+1−p=2/32/3+1/2=47≈0.571_. | ||
− | * | + | *This gives Pr(B)=1−Pr(A)=3/7≈0.429_. |
− | '''(3)''' | + | '''(3)''' No statement is made about the time ν−1 . |
− | * | + | *At this time A or B may have occurred. Therefore holds: |
:$${\rm Pr}(B_{\nu} \hspace{0.05cm} | \hspace{0.05cm}A_{\nu -2}) = {\rm Pr}(A \hspace{0.05cm} | \hspace{0.05cm}A) \hspace{0.05cm} \cdot \hspace{0.05cm}{\rm Pr}(B \hspace{0.05cm} | \hspace{0.05cm}A) \hspace{0.15cm} +\hspace{0.15cm} {\rm Pr}(B \hspace{0.05cm} | \hspace{0.05cm}A) \hspace{0.05cm} \cdot \hspace{0.05cm}{\rm Pr}(B \hspace{0.05cm} | \hspace{0.05cm}B) = p \hspace{0.1cm} \cdot \hspace{0.1cm} (1-p) + q \hspace{0.1cm} \cdot \hspace{0.1cm} (1-p) | :$${\rm Pr}(B_{\nu} \hspace{0.05cm} | \hspace{0.05cm}A_{\nu -2}) = {\rm Pr}(A \hspace{0.05cm} | \hspace{0.05cm}A) \hspace{0.05cm} \cdot \hspace{0.05cm}{\rm Pr}(B \hspace{0.05cm} | \hspace{0.05cm}A) \hspace{0.15cm} +\hspace{0.15cm} {\rm Pr}(B \hspace{0.05cm} | \hspace{0.05cm}A) \hspace{0.05cm} \cdot \hspace{0.05cm}{\rm Pr}(B \hspace{0.05cm} | \hspace{0.05cm}B) = p \hspace{0.1cm} \cdot \hspace{0.1cm} (1-p) + q \hspace{0.1cm} \cdot \hspace{0.1cm} (1-p) | ||
= {5}/{12} \hspace{0.15cm}\underline {\approx 0.417}.$$ | = {5}/{12} \hspace{0.15cm}\underline {\approx 0.417}.$$ | ||
Line 81: | Line 81: | ||
− | '''(4)''' | + | '''(4)''' According to Bayes' theorem: |
:$${\rm Pr}(A_{\nu -2} \hspace{0.05cm} | \hspace{0.05cm}B_{\nu}) = \frac{{\rm Pr}(B_{\nu} \hspace{0.05cm} | \hspace{0.05cm}A_{\nu -2}) \cdot {\rm Pr}(A_{\nu -2} ) }{{\rm Pr}(B_{\nu}) } = \frac{5/12 \cdot 4/7 }{3/7 } | :$${\rm Pr}(A_{\nu -2} \hspace{0.05cm} | \hspace{0.05cm}B_{\nu}) = \frac{{\rm Pr}(B_{\nu} \hspace{0.05cm} | \hspace{0.05cm}A_{\nu -2}) \cdot {\rm Pr}(A_{\nu -2} ) }{{\rm Pr}(B_{\nu}) } = \frac{5/12 \cdot 4/7 }{3/7 } | ||
= {5}/{9} \hspace{0.15cm}\underline {\approx 0.556}.$$ | = {5}/{9} \hspace{0.15cm}\underline {\approx 0.556}.$$ | ||
− | + | Reasoning: | |
− | * | + | *The probability Pr(Bν|Aν−2)=5/12 has already been calculated in subsection '''(3)'''. |
− | * | + | *Due to stationarity, Pr(Aν−2)=Pr(A)=4/7 and Pr(Bν)=Pr(B)=3/7 holds. |
− | * | + | *Thus, the value of 5/9 is obtained for the sought inference probability according to the above equation. |
− | '''(5)''' | + | '''(5)''' According to subtask '''(2)''' with p=1/2 for the probability of A in general: |
:Pr(A)=1−q1.5−q. | :Pr(A)=1−q1.5−q. | ||
− | * | + | *Thus from Pr(A)=2/3 follows q=0_. |
− | '''(6)''' | + | '''(6)''' In the case of statistical independence, for example, it must hold: |
:Pr(A|A)=Pr(A|B)=Pr(A). | :Pr(A|A)=Pr(A|B)=Pr(A). | ||
− | * | + | *From this follows p=Pr(A)=2/3_ and accordingly q=1−p=1/3_. |
{{ML-Fuß}} | {{ML-Fuß}} | ||
− | [[Category:Theory of Stochastic Signals: Exercises|^1.4 | + | [[Category:Theory of Stochastic Signals: Exercises|^1.4 Markov Chains |
^]] | ^]] |
Latest revision as of 19:07, 1 December 2021
We consider a homogeneous stationary first-order Markov chain with events A and B and transition probabilities corresponding to the adjacent Markov diagram:
For subtasks (1) to (4), assume:
- Event A is followed by A and B with equal probability.
- After B: The event A is twice as likely as B.
From subtask (5) on, p and q are free parameters, while the ergodic probabilities Pr(A)=2/3 and Pr(B)=1/3 are fixed.
Hints:
- The exercise belongs to the chapter Markov Chains.
- You can check your results with the (German language) interactive SWF applet
- Ereigniswahrscheinlichkeiten einer Markov-Kette erster Ordnung ⇒ "Event Probabilities of a First Order Markov Chain".
Questions
Solution
(1) According to the instruction, p=1−p ⇒ p=0.500_ and q=(1−q)/2, ⇒ q=0.333_ holds.
(2) For the event probability of A holds:
- Pr(A)=Pr(A|B)Pr(A|B)+Pr(B|A)=1−q1−q+1−p=2/32/3+1/2=47≈0.571_.
- This gives Pr(B)=1−Pr(A)=3/7≈0.429_.
(3) No statement is made about the time ν−1 .
- At this time A or B may have occurred. Therefore holds:
- Pr(Bν|Aν−2)=Pr(A|A)⋅Pr(B|A)+Pr(B|A)⋅Pr(B|B)=p⋅(1−p)+q⋅(1−p)=5/12≈0.417_.
(4) According to Bayes' theorem:
- Pr(Aν−2|Bν)=Pr(Bν|Aν−2)⋅Pr(Aν−2)Pr(Bν)=5/12⋅4/73/7=5/9≈0.556_.
Reasoning:
- The probability Pr(Bν|Aν−2)=5/12 has already been calculated in subsection (3).
- Due to stationarity, Pr(Aν−2)=Pr(A)=4/7 and Pr(Bν)=Pr(B)=3/7 holds.
- Thus, the value of 5/9 is obtained for the sought inference probability according to the above equation.
(5) According to subtask (2) with p=1/2 for the probability of A in general:
- Pr(A)=1−q1.5−q.
- Thus from Pr(A)=2/3 follows q=0_.
(6) In the case of statistical independence, for example, it must hold:
- Pr(A|A)=Pr(A|B)=Pr(A).
- From this follows p=Pr(A)=2/3_ and accordingly q=1−p=1/3_.