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

19.2. Independence 801<br />

Likewise ŒM D 1 is the event fT T T; HHH g and has probability 1=4.<br />

More generally, any assertion about the values of random variables defines an<br />

event. For example, the assertion that C 1 defines<br />

ŒC 1 D fT T T; T TH; TH T; H T T g;<br />

and so PrŒC 1 D 1=2.<br />

Another example is the assertion that C M is an odd number. If you think about<br />

it <strong>for</strong> a minute, you’ll realize that this is an obscure way of saying that all three<br />

coins came up heads, namely,<br />

ŒC M is odd D fHHH g:<br />

19.2 Independence<br />

The notion of independence carries over from events to random variables as well.<br />

Random variables R 1 and R 2 are independent iff <strong>for</strong> all x 1 ; x 2 , the two events<br />

ŒR 1 D x 1 and ŒR 2 D x 2 <br />

are independent.<br />

For example, are C and M independent? Intuitively, the answer should be “no.”<br />

The number of heads C completely determines whether all three coins match; that<br />

is, whether M D 1. But, to verify this intuition, we must find some x 1 ; x 2 2 R<br />

such that:<br />

PrŒC D x 1 AND M D x 2 ¤ PrŒC D x 1 PrŒM D x 2 :<br />

One appropriate choice of values is x 1 D 2 and x 2 D 1. In this case, we have:<br />

PrŒC D 2 AND M D 1 D 0 ¤ 1 4 3 8<br />

D PrŒM D 1 PrŒC D 2:<br />

The first probability is zero because we never have exactly two heads (C D 2)<br />

when all three coins match (M D 1). The other two probabilities were computed<br />

earlier.<br />

On the other hand, let H 1 be the indicator variable <strong>for</strong> the event that the first flip<br />

is a Head, so<br />

ŒH 1 D 1 D fHHH; H TH; HH T; H T T g:

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

Saved successfully!

Ooh no, something went wrong!