Matching floors of a logarithm

Let X,Y∼iidUniform(0,1)X, Y \overset{\text{iid}}{\sim} \text{Uniform}(0,1). Compute P ⁣[⌊log⁡2X⌋=⌊log⁡2Y⌋]\mathbb{P}\!\left[\lfloor \log_2 X \rfloor = \lfloor \log_2 Y \rfloor\right].

Show hints (2)+
  1. ⌊log⁡2X⌋=−k\lfloor\log_2 X\rfloor=-k means X∈[2−k,2−k+1)X\in[2^{-k},2^{-k+1}), an interval of length 2−k2^{-k}.
  2. Both variables share band kk with probability (2−k)2(2^{-k})^2. Sum the geometric series over k≥1k\ge1.

Answer

Reveal answer →

0.3333 (± 0.001)

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Betting Game Rounds

Related questions