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 805 — #813<br />

19.3. Distribution Functions 805<br />

Both PDF R and CDF R capture the same in<strong>for</strong>mation about R, so take your choice.<br />

The key point here is that neither the probability density function nor the cumulative<br />

distribution function involves the sample space of an experiment.<br />

One of the really interesting things about density functions and distribution functions<br />

is that many random variables turn out to have the same pdf and cdf. In other<br />

words, even though R and S are different random variables on different probability<br />

spaces, it is often the case that<br />

PDF R D PDF S :<br />

In fact, some pdf’s are so common that they are given special names. For example,<br />

the three most important distributions in computer science are the Bernoulli<br />

distribution, the uni<strong>for</strong>m distribution, and the binomial distribution. We look more<br />

closely at these common distributions in the next several sections.<br />

19.3.1 Bernoulli Distributions<br />

A Bernoulli distribution is the distribution function <strong>for</strong> a Bernoulli variable. Specifically,<br />

the Bernoulli distribution has a probability density function of the <strong>for</strong>m<br />

f p W f0; 1g ! Œ0; 1 where<br />

f p .0/ D p;<br />

f p .1/ D 1 p;<br />

<strong>for</strong> some p 2 Œ0; 1. The corresponding cumulative distribution function is F p W<br />

R ! Œ0; 1 where<br />

8<br />

ˆ< 0 if x < 0<br />

F p .x/ WWD p if 0 x < 1<br />

ˆ:<br />

1 if 1 x:<br />

19.3.2 Uni<strong>for</strong>m Distributions<br />

A random variable that takes on each possible value in its codomain with the same<br />

probability is said to be uni<strong>for</strong>m. If the codomain V has n elements, then the<br />

uni<strong>for</strong>m distribution has a pdf of the <strong>for</strong>m<br />

where<br />

<strong>for</strong> all v 2 V .<br />

and<br />

f W V ! Œ0; 1<br />

f .v/ D 1 n

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

Saved successfully!

Ooh no, something went wrong!