Learn / Library / Expected value
Record highs in a sequence
trades with distinct prices arrive in a uniformly random order. A trade is a record if its price is higher than all earlier prices, so the first trade is always a record. What is the expected number of records? Give a fraction a/b in lowest terms.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
For position , only the relative order of the first prices matters. Where must the largest of them be?
Solution
- Position is a record exactly when the largest of the first prices sits in position .
- By symmetry, that largest price is equally likely to be in any of the first positions, so the probability is .
- By linearity the expectation is .
- Over the common denominator the numerators are , so the sum is .
- In lowest terms this is .
Answer: