Quoto

Learn / Library / Expected value

Record highs in a sequence

Expected valueHard

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

For position , only the relative order of the first prices matters. Where must the largest of them be?

Solution
  1. Position is a record exactly when the largest of the first prices sits in position .
  2. By symmetry, that largest price is equally likely to be in any of the first positions, so the probability is .
  3. By linearity the expectation is .
  4. Over the common denominator the numerators are , so the sum is .
  5. In lowest terms this is .

Answer: