20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.10. EXAMPLE: A SIMPLE BOARD GAME 17<br />

for ALL j in 1,...,5.<br />

That may seem counterintuitive. Yet the example here is in essence the same as one found as an<br />

exercise in many textbooks on probability:<br />

A man has five keys. He knows one <strong>of</strong> them opens a given lock, but he doesn’t know<br />

which. So he tries the keys one at a time until he finds the right one. Find P(N = j), j<br />

= 1,...,5, where N is the number <strong>of</strong> keys he tries until he succeeds.<br />

Here <strong>to</strong>o the answer is 1/5 for all j. But this one makes intuitive sense: Each <strong>of</strong> the keys has chance<br />

1/5 <strong>of</strong> being the right key, so each <strong>of</strong> the values 1,...,5 is equally likely for N.<br />

This is then an example <strong>of</strong> the fact that sometimes we can gain insight in<strong>to</strong> one problem by<br />

considering a mathematically equivalent problem in a quite different setting.<br />

2.10 Example: A Simple Board Game<br />

Consider a board game, which for simplicity we’ll assume consists <strong>of</strong> two squares per side, on four<br />

sides. A player’s <strong>to</strong>ken advances around the board. The squares are numbered 0-7, and play begins<br />

at square 0.<br />

A <strong>to</strong>ken advances according <strong>to</strong> the roll <strong>of</strong> a single die. If a player lands on square 3, he/she gets<br />

a bonus turn. Let’s find the probability that a player has yet <strong>to</strong> make a complete circuit <strong>of</strong> the<br />

board—i.e. has reached or passed 0—after the first turn (including the bonus, if any). Let R denote<br />

his first roll, and let B be his bonus if there is one, with B being set <strong>to</strong> 0 if there is no bonus. Then<br />

(using commas as a shorthand notation for and)<br />

P (doesn’t reach or pass 0) = P (R + B ≤ 7) (2.30)<br />

= P (R ≤ 6, R = 3 or R = 3, B ≤ 4) (2.31)<br />

= P (R ≤ 6, R = 3) + P (R = 3, B ≤ 4) (2.32)<br />

= P (R ≤ 6, R = 3) + P (R = 3) P (B ≤ 4) (2.33)<br />

= 5 1 4<br />

+ ·<br />

6 6 6<br />

(2.34)<br />

= 17<br />

18<br />

(2.35)<br />

Now, here’s a shorter way (there are always multiple ways <strong>to</strong> do a problem):

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!