The expected value of a discrete random variable is the average value of the random variable.
Let XX be a discrete random variable and let SS be the set of points such that P(X=x)>0P(X=x)>0 if and only if x∈S.x∈S. The expected value of XX is
E[X]=∑x∈Sx⋅P(X=x)E[X]=∑x∈Sx⋅P(X=x)
Using the pmf, we can write the expectation as
E[X]=∑x∈Sxp(x)E[X]=∑x∈Sxp(x)
Example: Let XX be the discrete random variable with pmf p(−1)=0.5,p(4)=0.2,p(6)=0.3p(−1)=0.5,p(4)=0.2,p(6)=0.3 Then the expected value of XX is E[X]=−1⋅p(−1)+4⋅p(4)+6⋅p(6)=−1⋅0.5+4⋅0.2+6⋅0.3=−0.5+0.8+1.8=2.1E[X]=−1⋅p(−1)+4⋅p(4)+6⋅p(6)=−1⋅0.5+4⋅0.2+6⋅0.3=−0.5+0.8+1.8=2.1
If X=0,X=0, then S=∅S=∅ and the sum is empty. An empty sum is 0,0, so E[X]=∑x∈∅x⋅P(X=x)=0E[X]=∑x∈∅x⋅P(X=x)=0
An alternate formula for the expected value of a discrete random variable XX is ∑ω∈ΩX(ω)P(ω)∑ω∈ΩX(ω)P(ω)
Example: Roll a die that has values from 11 to 66 and square that number. What is the average value?
In this example, Ω={1,2,3,4,5,6}.Ω={1,2,3,4,5,6}. For every ω∈Ω,ω∈Ω, P(ω)=16P(ω)=16 and X(ω)=ω2.X(ω)=ω2. So, the expected value is
E[X]=6∑ω=1X(ω)P(ω)=6∑ω=1ω26=1+4+9+16+25+366=916=15.166…E[X]=6∑ω=1X(ω)P(ω)=6∑ω=1ω26=1+4+9+16+25+366=916=15.166…
Claim: For any discrete random variable XX and any constand c,c, E[cX]=cE[X]E[cX]=cE[X]
Example: A salesman is trying to make a sale. Let XX be the amount of the sale that the salesman will make, and suppose XX has the following distribution:
P(X=0)=0.4P(X=0)=0.4
P(X=10)=0.3P(X=10)=0.3
P(X=15)=0.2P(X=15)=0.2
P(X=50)=0.1P(X=50)=0.1
Also, the salesman works on commission. The salesman gets 75%75% of the money made in the sale.
What is the expected value of the amount of money the salesman will get on the sale?
We can compute the amount the salesman makes on each sale, then take the average value. That is, we can find the expected value of 75%75% of the sale, E[0.75X].E[0.75X]. On the other hand, it is probably easier to compute by hand if we pull out the 75%,75%, 0.75E[X].0.75E[X].
First find E[X]E[X] by direct computation:
E[X]=0⋅0.4+10⋅0.3+15⋅0.2+50⋅0.1=3+3+5=11E[X]=0⋅0.4+10⋅0.3+15⋅0.2+50⋅0.1=3+3+5=11
Finally, 0.75E[X]=0.75⋅11=8.25.0.75E[X]=0.75⋅11=8.25. So, the salesman's commission is on average E[0.75X]=8.25.E[0.75X]=8.25.
Claim: For any two discrete random variables XX and Y,Y, E[X+Y]=E[X]+E[Y]E[X+Y]=E[X]+E[Y]
Example: Roll a die that has values from 1 to 6. Let X be the square of the roll and let Y be the value of the roll itself. What is the average value of X+Y?
The example above shows that E[X]=15.166…. The expected value of Y is
E[Y]=1+2+3+4+5+66=3.5
The average value of the sum is
E[X+Y]=E[X]+E[Y]=(15.166…)+3.5=18.666…
Corollary: Given two random variables X and Y and constants a,b, and c, E[aX+bY+c]=aE[X]+bE[Y]+c
Claim: If X and Y are independent, then E[XY]=E[X]E[Y]
Quiz:
For questions 1 through 4, let X and Y be independent random variables with pmf's pX and pY defined as follows:
pX(0)=0.1,pX(1)=0.5,pX(2)=0.3,pX(3)=0.1pY(−2)=0.4,pY(1)=0.2,pY(2)=0.3,pY(3)=0.1
1. Find E[X].
Unanswered
2. Find E[Y].
Unanswered
3. Find E[−2X+3]
Unanswered
4. Find E[XY2]
Unanswered