06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 835 — #843<br />

19.5. Linearity of Expectation 835<br />

(b) Conclude that the maximum value of PDF J is asymptotically equal to<br />

1<br />

p 2npq<br />

:<br />

Hint: For the asymptotic estimate, it’s ok to assume that np is an integer, so by<br />

part (a), the maximum value is PDF J .np/. Use Stirling’s Formula.<br />

Problem 19.7.<br />

Let R 1 ; R 2 ; : : : ; R m , be mutually independent random variables with uni<strong>for</strong>m distribution<br />

on Œ1; n. Let M WWD maxfR i j i 2 Œ1; m g.<br />

(a) Write a <strong>for</strong>mula <strong>for</strong> PDF M .1/.<br />

(b) More generally, write a <strong>for</strong>mula <strong>for</strong> PrŒM k.<br />

(c) For k 2 Œ1; n, write a <strong>for</strong>mula <strong>for</strong> PDF M .k/ in terms of expressions of the<br />

<strong>for</strong>m “PrŒM j ” <strong>for</strong> j 2 Œ1; n.<br />

Homework Problems<br />

Problem 19.8.<br />

A drunken sailor wanders along main street, which conveniently consists of the<br />

points along the x axis with integer coordinates. In each step, the sailor moves<br />

one unit left or right along the x axis. A particular path taken by the sailor can be<br />

described by a sequence of “left” and “right” steps. For example, hleft,left,righti<br />

describes the walk that goes left twice then goes right.<br />

We model this scenario with a random walk graph whose vertices are the integers<br />

and with edges going in each direction between consecutive integers. All edges are<br />

labelled 1=2.<br />

The sailor begins his random walk at the origin. This is described by an initial<br />

distribution which labels the origin with probability 1 and all other vertices with<br />

probability 0. After one step, the sailor is equally likely to be at location 1 or 1,<br />

so the distribution after one step gives label 1/2 to the vertices 1 and 1 and labels<br />

all other vertices with probability 0.<br />

(a) Give the distributions after the 2nd, 3rd, and 4th step by filling in the table of<br />

probabilities below, where omitted entries are 0. For each row, write all the nonzero<br />

entries so they have the same denominator.

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

Saved successfully!

Ooh no, something went wrong!