Professional Documents
Culture Documents
Expected Value of A Random Variable
Expected Value of A Random Variable
Definition1.
Let X be a discrete random variable. Then the expected value (or mean value or
mean) of X, written E(X) or 𝜇𝑋 , is defined by
𝑛 𝑛
𝜇 = 𝔼(𝑋) = ∑ 𝑥 𝑃 (𝑋 = 𝑥 ) = ∑ 𝑥 𝑃𝑋 (𝑥 )
𝑖=1 𝑖=1
In other words, the mean or expected value of any discrete random variable may be
obtained by multiplying each of the values x1, x2,…, xn of the random variable X by its
corresponding probability f(x1), f(x2),…, f(xn) and summing up the products.
Definition 2.
x x1 x1 … xn
P(X=x) f(x1) f(x2) … f(xn)
MATHEMATICAL EXPECTATIONS
𝜇 = 𝐸 (𝑋) = ∑ 𝑥𝑖 𝑓(𝑥𝑖 )
𝑖=1
Example 1. Let us find the expected value of X, where X is the number of tails that
occur per toss when two coins are tossed 12 times and that the experiment yield no
tails, 1 tail, and 2 tails, a total of 2, 4, and 6 times, respectively.
2 4 6 4
𝜇 = 𝐸 (𝑋) = (0) ( ) + (1) ( ) + (2) ( ) =
12 12 12 3
Example 2. Suppose that P(Z = −3) = 0.2, and P(Z = 11) = 0.7, and P(Z = 31) = 0.1.
Then
Suppose that P(W = −3) = 0.2, and P(W = −11) = 0.7, and P(W = 31) = 0.1.
Then
We can see that computing the expected value of a discrete random variable X
is simple (at least in simple cases) once we know the probabilities that X = x (or,
equivalently, once we know the probability function f(x)).
MATHEMATICAL EXPECTATIONS
Example 3. Let X be a discrete random variable, with probability function f(x) given
by
f(2k) = 2−k
(i.e., f(x) ≥ 0 for all x, with ∑ 𝑓 (𝑥 ) = 1). On the other hand, we compute that
∞
We therefore say that E(X) = ∞, i.e., that the expected value of X is infinite.
6 5
( )( )
𝑥 4−𝑥
𝑓 (𝑥 ) = 11 , for x = 0, 1, 2, 3, 4
( )
4
6
( ) (5) 1
𝑓(0) = 0 4 =
11 66
( )
4
MATHEMATICAL EXPECTATIONS
6 5
( )( ) 2
𝑓(1) = 1 3 =
11 11
( )
4
6 5
( )( ) 5
𝑓 (2) = 2 2 =
11 11
( )
4
6
( ) (5) 10
𝑓(3) = 3 1 =
11 33
( )
4
6 5
( )( ) 1
𝑓(4) = 4 0 =
11 22
( )
4
1 2 5 10 1
𝜇 = 𝐸 (𝑋) = (0) ( ) + (1) ( ) + (2) ( ) + (3) ( ) + (4) ( )
66 11 11 33 22
24
=
11
Example 5. Suppose the number of product Y, ordered in an on-line shop on the first
hour of the sale period has the following distribution:
Y 5 6 7 8 9 10
P(Y=y) 1 1 1 1 1 1
12 12 4 4 6 6
Let f(y) = 20Y-1 represents the net income for the checked-out item. Find the expected
net income for this time period.
MATHEMATICAL EXPECTATIONS
Solution:
1 1 1
𝜇 = 𝐸 (𝑌) = (20(5) − 1) ( ) + (20(6) − 1) ( ) + (20(7) − 1) ( )
12 12 4
1 1 1
+ (20(8) − 1) ( ) + (20(9) − 1) ( ) + (20(10) − 1) ( )
4 6 6
467
=
3
≈ 155.67
Hence, the expected net income on the first hour of the sale period is 155.67 pesos.
Example 6. We roll two standard 6-sided dice. You win P1000 if the sum is 2 and lose
P100 otherwise. How much do you expect to win on average per trial?
Solution:
The probability of getting a sum of 2 is 1/36. If you play N times, you can
𝟏 𝟑𝟓
‘expect’ ·N of the trials to give a 2 and · N of the trials to give something else.
𝟑𝟔 𝟑𝟔
𝑁 35𝑁
1000 ( ) − 100 ( )
36 36
1 35
𝑒𝑥𝑝𝑒𝑐𝑡𝑒𝑑 𝑎𝑣𝑒𝑟𝑎𝑔𝑒 𝑤𝑖𝑛 = 1000 ( ) − 100 ( ) = −69.44
36 36
Now, would you be willing to play this game one time? multiple times?
MATHEMATICAL EXPECTATIONS
Notes:
1. The expected value is also called the mean or average of X and often denoted
by µ (“mu”).
2. As seen in the above examples, the expected value need not be a possible value of
the random variable. Rather it is a weighted average of the possible values.
4. If all the values are equally probable then the expected value is just the usual average
of the values.
2. The expected value of a random variable is also interpreted as the long-run value of
the random variable. In other words, if we repeat the underlying random
experiment several times and take the average of the values of the random variable
corresponding to the outcomes, we would get the expected value, approximately.
Again, we see that the expected value is related to an average value of the random
variable. Given the interpretation of the expected value as an average, either
"weighted'' or "long-run'', the expected value is often referred to as a measure of
center of the random variable.
3. The expected value of a random variable has a graphical interpretation. The expected
value gives the center of mass of the probability mass function.
MATHEMATICAL EXPECTATIONS
𝑁
1
∑(𝑥𝑖 )(𝑦𝑖 )
𝑁
𝑖=1
Definition. Let X and Y be discrete random variables with joint probabilities given by
f(x,y), where x= x1, x2, …,xm and y=y1, y2,…,yn. The mean or expected value of the
random variable g(x,y) is
Example 7. Two refills for ball point pen are selected at random from a bag that
contains 3 blue refills, 2 red refills, and 3 black refills. If X is the number of blue refills
and Y is the number of red refills selected, the following table summarized the joint
probability distribution of X and Y.
6 6
28 28 12
y 1
28
1 1
2 28 28
Column 10 15 3 1
28 28 28
total
MATHEMATICAL EXPECTATIONS
Solution:
= ∑ ∑ 𝑥𝑦 𝑓(𝑥𝑖 , 𝑦𝑗 )
𝑥=0 𝑦=0
3 6 1 9
= (0)(0)+ (0)(1) + (0)(2) + (1)(0)
28 28 28 28
6 3
+ (1)(1) + (2)(0)
28 28
6
=0+0+0+0+ +0
28
3
=
14
b. To solve for 𝜇𝑥 ,
𝑚 𝑛 𝑚
2 2 2
10 15 3
= (0) + (1) + (2)
28 28 28
3
=
4
MATHEMATICAL EXPECTATIONS
To solve for 𝜇𝑦 ,
𝑚 𝑛 𝑚
2 2 2
15 3 1
= (0) + (1) + (2)
28 7 28
1
=
2
References