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 793 — #801<br />

18.9. Probability versus Confidence 793<br />

An alternative example is<br />

Class Problems<br />

A WWD f1g<br />

B WWD f1; 2g<br />

E WWD f3; 4; 5g:<br />

Problem 18.28.<br />

Event E is evidence in favor of event H when Pr H j E > PrŒH , and it is<br />

evidence against H when Pr H j E < PrŒH .<br />

(a) Give an example of events A; B; H such that A and B are independent, both<br />

are evidence <strong>for</strong> H , but A [ B is evidence against H .<br />

Hint: Let S D Œ1::8<br />

(b) Prove E is evidence in favor of H iff E is evidence against H .<br />

Problem 18.29.<br />

Let G be a simple graph with n vertices. Let “A.u; v/” mean that vertices u and v<br />

are adjacent, and let “W.u; v/” mean that there is a length-two walk between u and<br />

v.<br />

(a) Explain why W.u; u/ holds iff 9v: A.u; v/.<br />

(b) Write a predicate-logic <strong>for</strong>mula defining W.u; v/ in terms of the predicate<br />

A.:; :/ when u ¤ v.<br />

There are e WWD n 2<br />

possible edges between the n vertices of G. Suppose the<br />

actual edges of E.G/ are chosen with randomly from this set of e possible edges.<br />

Each edge is chosen with probability p, and the choices are mutually independent.<br />

(c) Write a simple <strong>for</strong>mula in terms of p; e, and k <strong>for</strong> PrŒjE.G/j D k.<br />

(d) Write a simple <strong>for</strong>mula in terms of p and n <strong>for</strong> PrŒW.u; u/.<br />

Let w, x, y and z be four distinct vertices.<br />

Because edges are chosen mutually independently, events that depend on disjoint<br />

sets of edges will be mutually independent. For example, the events<br />

A.w; y/ AND A.y; x/

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

Saved successfully!

Ooh no, something went wrong!