Question
A parcel is sent from depot X with probability 0.6, and from depot Y otherwise. At a sorting centre it is marked blue or red. A parcel from X is marked blue with probability 0.8; one from Y is marked blue with probability 0.3. A blue parcel arrives on time with probability 0.9, while a red one arrives on time with probability 0.4.
The delivery outcome depends on the original depot only through the actual sorting colour: conditional on that colour, the depot gives no further information. The sorting colour is observed without error. Given that a parcel is blue, what is its on-time probability? Would learning that its depot was X change the answer? For comparison, calculate the on-time probability if all you know is that its depot was X.
Get hint
Hint 1
The question describes a chain: depot \(\to\) actual sorting colour \(\to\) delivery. Which of those variables directly governs the last step?
Check your answer
Solution
Let \(T\) denote on-time delivery and \(B\) the observed blue state. The stated conditional independence is \(T\perp X\mid B\). Therefore \(P(T\mid B,X)=P(T\mid B)=0.9\); knowledge of the earlier depot is irrelevant after the middle state itself has been observed.
We can verify this rather than treating the statement as a slogan. The blue-state probability is
\[
P(B)=0.6(0.8)+0.4(0.3)=0.60.
\]
The blue-and-on-time joint mass is
\[
P(B,T)=0.6(0.8)(0.9)+0.4(0.3)(0.9)=0.54,
\]
so \(P(T\mid B)=0.54/0.60=0.9\). Similarly, \(P(X,B,T)=0.432\) and \(P(X,B)=0.48\), giving \(0.432/0.48=0.9\).
Knowing X but not the colour instead requires averaging over both sorting outcomes:
\[
P(T\mid X)=0.8(0.9)+0.2(0.4)=0.80.
\]
As a full-table check, the marginal blue rate is 0.6, and \(P(T)=0.6(0.9)+0.4(0.4)=0.70\). None of these equalities would generally follow if only a noisy report of the colour, rather than the colour itself, were observed.
Assumptions
Each parcel has exactly one source and one actual sorting colour.
Conditional on the actual colour, on-time delivery is independent of the source depot.
The given colour is observed exactly, with no misclassification.
Final Answer
\(P(T\mid B)=P(T\mid B,X)=0.9\); \(P(T\mid X)=0.8\).