20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

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.

2.5. BASIC PROBABILITY COMPUTATIONS: ALOHA NETWORK EXAMPLE 11<br />

P (X1 = 2) = P (C1 and C2 or not C1 and not C2)<br />

<br />

(2.8)<br />

= P (C1 and C2) + P ( not C1 and not C2) (from (2.2)) (2.9)<br />

= P (C1)P (C2) + P ( not C1)P ( not C2) (from (2.4)) (2.10)<br />

= p 2 + (1 − p) 2<br />

(2.11)<br />

(The underbraces in (2.8) do not represent some esoteric mathematical operation. There are there<br />

simply <strong>to</strong> make the grouping clearer, corresponding <strong>to</strong> events G and H defined below.)<br />

Here are the reasons for these steps:<br />

(2.8): We listed the ways in which the event {X1 = 2} could occur.<br />

(2.9): Write G = C1 and C2, H = D1 and D2, where Di = not Ci, i = 1,2. Then the events G and<br />

H are clearly disjoint; if in a given line <strong>of</strong> our notebook there is a Yes for G, then definitely<br />

there will be a No for H, and vice versa.<br />

(2.10): The two nodes act physically independently <strong>of</strong> each other. Thus the events C1 and C2 are<br />

s<strong>to</strong>chastically independent, so we applied (2.4). Then we did the same for D1 and D2.<br />

Now, what about P (X2 = 2)? Again, we break big events down in<strong>to</strong> small events, in this case<br />

according <strong>to</strong> the value <strong>of</strong> X1:<br />

P (X2 = 2) = P (X1 = 0 and X2 = 2 or X1 = 1 and X2 = 2 or X1 = 2 and X2 = 2)<br />

= P (X1 = 0 and X2 = 2) (2.12)<br />

+ P (X1 = 1 and X2 = 2)<br />

+ P (X1 = 2 and X2 = 2)<br />

Since X1 cannot be 0, that first term, P (X1 = 0 and X2 = 2) is 0. To deal with the second term,<br />

P (X1 = 1 and X2 = 2), we’ll use (2.5). Due <strong>to</strong> the time-sequential nature <strong>of</strong> our experiment here,<br />

it is natural (but certainly not “mandated,” as we’ll <strong>of</strong>ten see situations <strong>to</strong> the contrary) <strong>to</strong> take A<br />

and B <strong>to</strong> be {X1 = 1} and {X2 = 2}, respectively. So, we write<br />

P (X1 = 1 and X2 = 2) = P (X1 = 1)P (X2 = 2|X1 = 1) (2.13)

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

Saved successfully!

Ooh no, something went wrong!