I'm preparing for an exam in Probability and Statistics and since I am self-studying, I don't have answers to refer to. So would be really great if someone would please take the time and check if my solution for the following problem is correct. Thank you in advance!
X corresponds to the duration of Mary's commute to work, and Y to the duration of John's. X is uniformly distributed in [15,25] and Y in [15,30]. X and Y are assumed to be independent. What is the probability that Mary and John both take more than 20 minutes to get to work?
So we are looking for: P(X>20,Y>20)=P(X>20)xP(Y>20). In other words we are looking for: P[1-(P(X≦20),1-(P(Y≦20).
As per the rule P with Uniform Distribution: P([c,d])= $\int_c^d\frac{1}{b-a}dx=\frac{d-c}{b-a}$
So in our cases:
- $P(X≦20)= P([15,20])= \int_{15}^{20}\frac{1}{25-15}dx=\frac{20-15}{25-15}=0.5$ from here follows that $1-P(X≦20)= 1-0.5=0.5$
So $P(X>20)=0.5$
- $P(Y≦20)= P([15,20])= \int_{15}^{20}\frac{1}{30-15}dx=\frac{20-15}{30-15}=0.33$ from here follows that $1-P(Y≦20)= 1-0.33=0.67$
So $P(Y>20)=0.57$
Going back to
P(X>20,Y>20)=P(X>20)xP(Y>20)=0.5x0.67=0.335
In conclusion, that probability that both Mary and John take more than 20 minutes to get to work is 0.335.
Generally looks good. I wouldn’t introduce decimals and start rounding—the exact answer is $1/3$, which is a bit different from $0.335$.
Also I’m not sure whether the notation $P([a,b])$ is standard. I typically write $P(a\leq{X}\leq{b})$, but that might be my background.
Also I’m not sure what you meant here:
I think you meant $$[1-P(X\leq20)]\cdot[1-P(Y\leq20)],$$ so be careful with notation.