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 811 — #819<br />

19.4. Great Expectations 811<br />

0:25<br />

0:2<br />

0:15<br />

f 20;:75 .k/<br />

0:1<br />

0:05<br />

0<br />

0<br />

5<br />

10 15 20<br />

k<br />

Figure 19.5 The pdf <strong>for</strong> the general binomial distribution f n;p .k/ <strong>for</strong> n D 20<br />

and p D :75.<br />

19.4 Great Expectations<br />

The expectation or expected value of a random variable is a single number that reveals<br />

a lot about the behavior of the variable. The expectation of a random variable<br />

is also known as its mean or average. For example, the first thing you typically<br />

want to know when you see your grade on an exam is the average score of the<br />

class. This average score turns out to be precisely the expectation of the random<br />

variable equal to the score of a random student.<br />

More precisely, the expectation of a random variable is its “average” value when<br />

each value is weighted according to its probability. Formally, the expected value of<br />

a random variable is defined as follows:<br />

Definition 19.4.1. If R is a random variable defined on a sample space S, then the<br />

expectation of R is<br />

ExŒR WWD X !2S<br />

R.!/ PrŒ!: (19.2)<br />

Let’s work through some examples.

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

Saved successfully!

Ooh no, something went wrong!