06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

“mcs” — 2017/3/3 — 11:21 — page 851 — #859<br />

19.5. Linearity of Expectation 851<br />

(c) What is his expected final profit (amount won minus amount lost)?<br />

(d) You can beat a biased game by bet doubling, but bet doubling is not feasible<br />

because it requires an infinite bankroll. Verify this by proving that the expected size<br />

of the gambler’s last bet is infinite.<br />

Problem 19.36.<br />

Six pairs of cards with ranks 1–6 are shuffled and laid out in a row, <strong>for</strong> example,<br />

1 2 3 3 4 6 1 4 5 5 2 6<br />

In this case, there are two adjacent pairs with the same value, the two 3’s and the<br />

two 5’s. What is the expected number of adjacent pairs with the same value?<br />

Problem 19.37.<br />

There are six kinds of cards, three of each kind, <strong>for</strong> a total of eighteen cards. The<br />

cards are randonly shuffled and laid out in a row, <strong>for</strong> example,<br />

1 2 5 5 5 1 4 6 2 6 6 2 1 4 3 3 3 4<br />

In this case, there are two adjacent triples of the same kind, the three 3’s and the<br />

three 5’s.<br />

(a) Derive a <strong>for</strong>mula <strong>for</strong> the probability that the 4th, 5th, and 6th consecutive cards<br />

will be the same kind—that is, all 1’s or all 2’s or. . . all 6’s?<br />

(b) Let p WWD PrŒ4th, 5th and 6th cards match—that is, p is the correct answer to<br />

part (a). Write a simple <strong>for</strong>mula <strong>for</strong> the expected number of matching triples in<br />

terms of p.

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

Saved successfully!

Ooh no, something went wrong!