Tree diagram¶
Aufgabe
The following tree diagram is related to a random experiment with events \(C\) and \(D\).
Calculate \(P(\bar{D})\).
Prove that \(C\) and \(D\) are statistically dependent.
Modify the value \(\frac{1}{10}\) in the tree diagram so that \(C\) and \(D\) are statistically independent.
Solution of part a
The probability \(P(D)\) results from the given tree diagram as
The condition \(P(D)+P(\bar{D})=1\) leads to \(P(\bar{D})=\frac{1}{2}\).
Solution of part b
Two events \(C\) and \(D\) are statistically dependent if the occurrence of event \(C\) has an influence on the probability of event \(D\), i.e. \(P(D|C)\neq P(D|\bar{C})\). From the tree diagram we read off \(P(D|C)=\frac{3}{5}\).
In addition, we need
which results in \(P(\bar C) = 1-P(C)=\frac{1}{3}\) and finally in
This proves \(P(D|C)\neq P(D|\bar{C})\) so that \(C\) and \(D\) are indeed statistically dependent.
Solution of part c
In contrast to the previous task, the condition \(P(D|C)=P(D|\bar{C})\) has to hold. \(P(\bar{C})\) is still given as \(\frac{1}{3}\) so that
We will calculate all probabilities of the tree diagram with Sage by using the conditions
The values of \(P(D|C)\), \(P(C\cap D)\), and \(P(\bar{C}\cap D)\)
can be modified in the list probabilities
.