Home page for accesible maths 2.6 Expectation and Related Summaries

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

2.6.3 Properties of Summary Measures

Both summing and integration are linear operators:

  1. ∑i=-∞∞c⁢ai=c⁢∑i=-∞∞ai

  2. ∑i=-∞∞(ai+bi)=∑i=-∞∞ai+∑i=-∞∞bi

  3. ∫-∞∞c⁢a⁢(s)⁢ds=c⁢∫-∞∞a⁢(s)⁢ds

  4. ∫-∞∞(a⁢(s)+b⁢(s))⁢ds=∫-∞∞a⁢(s)⁢ds+∫-∞∞b⁢(s)⁢ds.

So expectation, whether for a continuous (set a⁢(x)=g⁢(x)⁢fX⁢(x) and b⁢(x)=h⁢(x)⁢fX⁢(x)) or a discrete (set ar=g⁢(r)⁢pR⁢(r) and br=h⁢(r)⁢pR⁢(r)) random variable, obeys the two rules of linearity which follow directly from the definition. For arbitrary functions g and h, and a constant c:

  1. 𝖤⁡[g⁢(R)+h⁢(R)]=𝖤⁡[g⁢(R)]+𝖤⁡[h⁢(R)],

  2. 𝖤⁡[c⁢g⁢(R)]=c⁢𝖤⁡[g⁢(R)].

The expectation, variance and standard deviation respectively of the linear function a⁢R+b of the random variable R for constants a and b are:

  1. 𝖤⁡[a⁢R+b]=a⁢𝖤⁡[R]+b,

  2. 𝖵𝖺𝗋⁡[a⁢R+b]=a2⁢𝖵𝖺𝗋⁡[R],

  3. 𝖲𝗍𝖽𝖣𝖾𝗏⁡[a⁢R+b]=|a|⁢𝖲𝗍𝖽𝖣𝖾𝗏⁡[R].

The first formula is a direct consequence of the two properties of linearity. The second formula arises because 𝖤⁡[(a⁢R+b)2]=𝖤⁡[a2⁢R2+2⁢a⁢b⁢R+b2]=a2⁢𝖤⁡[R2]+2⁢a⁢b⁢𝖤⁡[R]+b2, so

𝖵𝖺𝗋[aR+b]=𝖤[(aR+b)2]-𝖤[aR+b]2=a2(𝖤[R2]-𝖤[R]2).

Finally, recall that the standard deviation is the positive square root of the variance.

Example 2.6.1.

What are the expectation and variance of the discrete probability distribution given below?

r -1 0 1
p⁢(r) 1/3 1/6 1/2

Solution. 

  1. 𝖤⁡[R]=∑i=-∞∞i⁢p⁢(i)=-1⁢(1/3)+0⁢(1/6)+1⁢(1/2)=1/6.

  2. 𝖤⁡[R2]=∑i=-∞∞i2⁢p⁢(i)=(-1)2⁢(1/3)+02⁢(1/6)+12⁢(1/2)=5/6.

  3. 𝖵𝖺𝗋[R]=𝖤[R2]-𝖤[R]2=5/6-1/36=29/36.

Example 2.6.2.

A triangular pdf: the random variable X in Example 2.4.2 has pdf

fX⁢(x)={1+x-1<x≤01-x0<x≤10otherwise

Find

  1. (a)

    𝖤⁡[X],

  2. (b)

    𝖵𝖺𝗋⁡[X],

  3. (c)

    𝖤⁡[(2⁢X+1)2], and

  4. (d)

    𝖤⁡[|X|].

Solution.  We need only consider the intervals where fX⁢(x)>0.

  1. (a)
    𝖤⁡[X] =∫-10t⁢(1+t)⁢dt+∫01t⁢(1-t)⁢dt
    =[t2/2+t3/3]-10+[t2/2-t3/3]01
    =-(1/2-1/3)+(1/2-1/3)=0,

    which we could also write down directly by symmetry.

  2. (b)
    𝖤⁡[X2] =∫-10t2⁢(1+t)⁢dt+∫01t2⁢(1-t)⁢dt
    =[t3/3+t4/4]-10+[t3/3-t4/4]01
    =-(-1/3+1/4)+(1/3-1/4)=1/6.

    So 𝖵𝖺𝗋⁡[X]=1/6.

  3. (c)

    By linearity, 𝖤⁡[(2⁢X+1)2]=4⁢𝖤⁡[X2]+4⁢𝖤⁡[X]+1=4/6+1=5/3.

  4. (d)

    |t|=-t when t≤0 and |t|=t when t≥0, so

    𝖤⁡[|X|] =∫-10-t⁢(1+t)⁢d⁢t+∫01t⁢(1-t)⁢dx
    =-[t2/2+t3/3]-10+[t2/2-t3/3]01
    =(1/2-1/3)+(1/2-1/3)=1/3.
Example 2.6.3.

A random variable X has a pdf of

fX⁢(x)={1/x21<x<∞0otherwise

Find 𝖤⁡[X].

Solution. 

𝖤⁡[X] =∫1∞t×1t2⁢dt=limr→∞⁡∫1r1t⁢dt
=limr→∞⁡[log⁡t]1r=∞.

The expectation is infinity! An example where the expectation is not even well defined is given in Chapter 3.