01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

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.

Example A. 12<br />

A.6 Expectation, Variance <strong>and</strong> Moments 415<br />

Q: A gambler throws a dice <strong>and</strong> wins 1€ if the face is odd, loses 2.5€ if the face is<br />

2 or 4, <strong>and</strong> wins 3€ if the face is 6. What is the gambler’s<br />

expectation?<br />

A: We have:<br />

⎧ 1 if X = 1,<br />

3,<br />

5;<br />

⎪<br />

g( x ) = ⎨−<br />

2.<br />

5 if X = 2,<br />

4;<br />

⎪<br />

⎩ 3 if X = 6.<br />

1 2.<br />

5 3 1<br />

Therefore: Ε[ g ( X ) ] = 3 − 2 + = .<br />

6 6 6 6<br />

The word “expectation” is somewhat misleading since the gambler will only<br />

expect to get close to winning 1/6 € in a long run of throws.<br />

The following cases are worth noting:<br />

1. g(X) = X: Expected value, mean or average of X.<br />

µ = Ε[<br />

X ] = ∑ x P(<br />

X = x ) , if X is discrete (<strong>and</strong> the sum exists); A.24a<br />

[ ] ∫ ∞<br />

=<br />

−∞<br />

i<br />

i<br />

i<br />

µ = Ε X xf ( x)<br />

dx , if X is continuous (<strong>and</strong> the integral exists). A.24b<br />

The mean of a distribution is the probabilistic mass center (center of gravity) of<br />

the distribution.<br />

Example A. 13<br />

Q: Consider the Cauchy distribution, with:<br />

mean?<br />

A: We have:<br />

f X<br />

a<br />

( x)<br />

=<br />

π a<br />

2<br />

1<br />

+ x<br />

2<br />

1 2<br />

, x∈ℜ. What is its<br />

[ ] ∫ ∞ a x<br />

Ε X =<br />

π − ∞ 2 2<br />

a + x<br />

dx.<br />

But<br />

x<br />

∫ 2 2<br />

a + x<br />

2<br />

dx = ln( a + x<br />

2<br />

) , therefore the<br />

integral diverges <strong>and</strong> the mean does not exist.<br />

Properties of the mean (for arbitrary real constants a, b):<br />

i. [ aX + b]<br />

= aΕ[<br />

X ] + b<br />

ii. [ X + Y ] = Ε[<br />

X ] + Ε[<br />

Y ]<br />

iii. [ XY ] = Ε[<br />

X ] Ε[<br />

Y ]<br />

Ε (linearity);<br />

Ε (additivity);<br />

Ε if X <strong>and</strong> Y are independent.<br />

The mean reflects the “central tendency” of a distribution. For a data set with n<br />

values xi occurring with frequencies fi, the mean is estimated as (see A.24a):

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

Saved successfully!

Ooh no, something went wrong!