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 849 — #857<br />

19.5. Linearity of Expectation 849<br />

Since the groups are chosen randomly, each soldier in the group has the disease<br />

with probability p, and it is safe to assume that whether one soldier has the disease<br />

is independent of whether the others do.<br />

(a) What is the expected number of tests in Approach (2) as a function of the<br />

number of soldiers n, the disease fraction p, and the group size k?<br />

(b) Show how to choose k so that the expected number of tests using Approach (2)<br />

is approximately n p p. Hint: Since p is small, you may assume that .1 p/ k 1<br />

and ln.1 p/ p.<br />

(c) What fraction of the work does Approach (2) expect to save over Approach<br />

(1) in a million-strong army of whom approximately 1% are diseased?<br />

(d) Can you come up with a better scheme by using multiple levels of grouping,<br />

that is, groups of groups?<br />

Problem 19.31.<br />

A wheel-of-<strong>for</strong>tune has the numbers from 1 to 2n arranged in a circle. The wheel<br />

has a spinner, and a spin randomly determines the two numbers at the opposite ends<br />

of the spinner. How would you arrange the numbers on the wheel to maximize the<br />

expected value of:<br />

(a) the sum of the numbers chosen? What is this maximum?<br />

(b) the product of the numbers chosen? What is this maximum?<br />

Hint: For part (b), verify that the sum of the products of numbers oppposite each<br />

other is maximized when successive integers are on the opposite ends of the spinner,<br />

that is, 1 is opposite 2, 3 is opposite 4, 5 is opposite 6, . . . .<br />

Problem 19.32.<br />

Let R and S be independent random variables, and f and g be any functions such<br />

that domain.f / D codomain.R/ and domain.g/ D codomain.S/. Prove that f .R/<br />

and g.S/ are also independent random variables.<br />

Hint: The event Œf .R/ D a is the disjoint union of all the events ŒR D r <strong>for</strong> r<br />

such that f .r/ D a.<br />

Problem 19.33.<br />

Peeta bakes between 1 and 2n loaves of bread to sell every day. Each day he rolls

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

Saved successfully!

Ooh no, something went wrong!