← Back to Flow Traders Interview Questions

Question

A custom-order shop can accept at most three small orders and two large orders today. Each small order, if independently cancelled, costs the shop $100; it cancels with probability 0.2. Each large order independently cancels with probability 0.1 and costs $250. All cancellation events are independent, including across order types. Non-cancelled orders cause no cash loss under this risk calculation.

The owner wants to accept as many orders as possible, but requires that the probability total cancellation loss is strictly greater than $300 be at most 5%. Find the optimal integer mix \((n_s,n_l)\) of small and large orders, and compute its exact risk. Explain why counting cancelled orders without distinguishing their sizes would give the wrong answer.

Hint 1

Let \(S\sim\operatorname{Binomial}(n_s,0.2)\) and \(B\sim\operatorname{Binomial}(n_l,0.1)\). The cash loss is \(100S+250B\).

At a strict $300 threshold, three cancelled small orders cause exactly $300 and do not breach. With one large order, any additional small cancellation breaches; with two large orders, two large cancellations already breach.

Check your answer

© 2026 EverythingQuant. All Rights Reserved.