← Back to Jane Street Interview Questions

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.

Hint 1

The question describes a chain: depot \(\to\) actual sorting colour \(\to\) delivery. Which of those variables directly governs the last step?

Write \(P(X,B,T)=P(X)P(B\mid X)P(T\mid B)\). You can similarly sum over the two depots and then divide by \(P(B)\).

Check your answer

© 2026 EverythingQuant. All Rights Reserved.