Friday, August 20, 2021

In my town, it's rainy one third of the days. Given that it is rainy, there will be heavy traffic with probability 1212, and given that it is not rainy, there will be heavy traffic with probability 1414. If it's rainy and there is heavy traffic, I arrive late for work with probability 1212. On the other hand, the probability of being late is reduced to 1818 if it is not rainy and there is no heavy traffic. In other situations (rainy and no traffic, not rainy and traffic) the probability of being late is 0.250.25. You pick a random day. What is the probability that it's not raining and there is heavy traffic and I am not late? What is the probability that I am late? Given that I arrived late at work, what is the probability that it rained that day?

 Problem

In my town, it's rainy one third of the days. Given that it is rainy, there will be heavy traffic with probability 

12, and given that it is not rainy, there will be heavy traffic with probability 14. If it's rainy and there is heavy traffic, I arrive late for work with probability 12. On the other hand, the probability of being late is reduced to 18 if it is not rainy and there is no heavy traffic. In other situations (rainy and no traffic, not rainy and traffic) the probability of being late is 0.25. You pick a random day.

  1. What is the probability that it's not raining and there is heavy traffic and I am not late?
  2. What is the probability that I am late?
  3. Given that I arrived late at work, what is the probability that it rained that day?

  • Solution
    • Let R be the event that it's rainy, T be the event that there is heavy traffic, and L be the event that I am late for work. As it is seen from the problem statement, we are given conditional probabilities in a chain format. Thus, it is useful to draw a tree diagram. Figure 1.27 shows a tree diagram for this problem. In this figure, each leaf in the tree corresponds to a single outcome in the sample space. We can calculate the probabilities of each outcome in the sample space by multiplying the probabilities on the edges of the tree that lead to the corresponding outcome.

      Tree diagram
      Fig.1.27 - Tree diagram for Problem 5.
      1. The probability that it's not raining and there is heavy traffic and I am not late can be found using the tree diagram which is in fact applying the chain rule:

        P(RcTLc)=P(Rc)P(T|Rc)P(Lc|RcT)
        =231434
        =18.

      2. The probability that I am late can be found from the tree. All we need to do is sum the probabilities of the outcomes that correspond to me being late. In fact, we are using the law of total probability here.

        P(L)=P(R,T,L)+P(R,Tc,L)+P(Rc,T,L)+P(Rc,Tc,L)
        =112+124+124+116
        =1148.

      3. We can find P(R|L) using P(R|L)=P(RL)P(L). We have already found P(L)=1148, and we can find P(RL) similarly by adding the probabilities of the outcomes that belong to RL. In particular,

        P(RL)=P(R,T,L)+P(R,Tc,L)
        =112+124
        =18.

        Thus, we obtain

        P(R|L)=P(RL)P(L)
        =18.4811
        =611.

No comments:

Post a Comment