Question
Seven small sculptures arrive at a gallery in a sealed crate. Exactly two bear an inspection tag, and every ordering of the seven sculptures is equally likely. A curator checks them in order and stops immediately when the first tagged sculpture appears. Each sculpture inspected, including the tagged one that ends the search, incurs a $3 handling cost. Each untagged sculpture inspected also incurs $5 for cleaning; tagged sculptures are never cleaned.
What is the expected total handling-and-cleaning cost? Give a derivation that accounts for drawing without replacement and for the cost of the final tagged sculpture.
Get hint
Hint 1
If T is the position of the first tag, there are T handling charges but only \(T-1\) cleaning charges.
Check your answer
Solution
Let T be the (one-indexed) position of the first tagged sculpture. The total bill is
\[C=\$3\cdot T+\$5\cdot(T-1)=\$8T-\$5\],
because the terminal tagged sculpture incurs a handling charge but not a cleaning charge.
The two tag positions form a uniformly random 2-element subset of \(\{1,\ldots,7\}\), of which there are \(C(7,2)=21\). The earliest tag cannot be later than position 6, since only five sculptures are untagged. For \(j=1,\ldots,6\),
\[P(T\ge j)=\frac{C(8-j,2)}{C(7,2)}\],
because \(T\ge j\) means both tagged sculptures lie among positions \(j,\ldots,7\). Hence
\[\begin{aligned}E[T]&=\sum_{j=1}^{6}P(T\ge j)\\&=[21+15+10+6+3+1]/21\\&=56/21=\mathbf{8/3}.\end{aligned}\]
It follows that
\(E[C]=\$8\cdot(\frac{8}{3})-\$5=\frac{64}{3}-\frac{15}{3}=\)\(\$\frac{49}{3}\approx\$16.33\).
As another check, the expected first tagged position among \(K=2\) marked positions uniformly sampled without replacement from \(N=7\) positions is \(\frac{N+1}{K+1}=\frac{8}{3}\). Treating inspections as independent with replacement would give a different waiting time and would ignore the finite supply of untagged sculptures.
Assumptions
The seven pieces are arranged in a uniformly random permutation, with exactly two distinguishable marked status indicators.
Inspection ends immediately at the first tag, which still incurs the $3 handling charge.
Only inspected untagged pieces are cleaned and incur an additional $5.
Final Answer
$\(\frac{49}{3}\) \(\approx\) $16.33.