09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

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.

8<br />

Discrete Probability<br />

THE ELEMENT OF CHANCE enters into many of our attempts to understand<br />

the world we live in. A mathematical theory of probability allows us<br />

to calculate the likelihood of complex events if we assume that the events are<br />

governed by appropriate axioms. This theory has significant applications in<br />

all branches of <strong>science</strong>, and it has strong connections with the techniques we<br />

have studied in previous chapters.<br />

Probabilities are called “discrete” if we can compute the probabilities of<br />

all events by summation instead of by integration. We are getting pretty good<br />

at sums, so it should come as no great surprise that we are ready to apply<br />

our knowledge to some interesting calculations of probabilities and averages.<br />

8.1 DEFINITIONS<br />

(Readers unfamiliar Probability theory starts with the idea of a probability space, which<br />

with probability<br />

theory will, with<br />

high probability,<br />

benefit from a<br />

perusal of Feller’s<br />

is a set fl of all things that can happen in a given problem together with a<br />

rule that assigns a probability Pr(w) to each elementary event w E a. The<br />

probability Pr(w) must be a nonnegative real number, and the condition<br />

classic introduction<br />

to the subject [96].)<br />

x Pr(w) = 1 WEn<br />

(8.1)<br />

must hold in every dimscrete probability space. Thus, each value Pr(w) must lie<br />

in the interval [O . . 11. We speak of Pr as a probability distribution, because<br />

it distributes a total probability of 1 among the events w.<br />

Here’s an example: If we’re rolling a pair of dice, the set 0 of elementary<br />

events is D2 = { � E], � D, . . . , � a}, where<br />

Never say die. is the set of all six ways that a given die can land. Two rolls such as � u<br />

and � n are considered to be distinct; hence this probability space has a<br />

367

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

Saved successfully!

Ooh no, something went wrong!