17.3. Distribution Functions 581
Step 1: Find the sample space.
You either choosextoo low (< L), too high (> H), or just right (L < x < H).
Then you either peek at the lower number (TDL) or the higher number (TDH).
This gives a total of six possible outcomes, as show in Figure 17.3.
choices
of xnumber
peeked atTDH
TDL
TDH
TDL
TDH
TDL
1=2
1=2
1=2
1=2
1=2
1=2
L=n.H�L/=n.n�H/=nresultlosewinwinwinwinloseprobabilityL=2nL=2n.H�L/= 2n.H�L/= 2n.n�H/=2n.n�H/=2nx too lowx too highx just rightFigure 17.3 The tree diagram for the numbers game.Step 2: Define events of interest.
The four outcomes in the event that you win are marked in the tree diagram.
Step 3: Assign outcome probabilities.
First, we assign edge probabilities. Your guessxis too low with probabilityL=n,
too high with probability.n H/=n, and just right with probability.H L/=n.
Next, you peek at either the lower or higher number with equal probability. Multi-
plying along root-to-leaf paths gives the outcome probabilities.