Lecture Note L4
Lecture Note L4
Lecture Note L4
Chapter 3
Mathematical
Expectation
Fall 2023
Mean of a Set of Observations Ch 03: 2
Fall 2023
Mean of a Set of Observations Ch 03: 3
Fall 2023
Mean of a Random Variable Ch 03: 4
Fall 2023
Ch 03: 5
Example:
A salesperson for a medical device company has two appointments on a given day.
At the first appointment, he believes that he has a 70% chance to make the deal,
from which he can earn $1000 commission if successful. On the other hand, he
thinks he only has a 40% chance to make the deal at the second appointment,
from which, if successful, he can make $1500. What is his expected commission
based on his own probability belief? Assume that the appointment results are
independent of each other.
Solution:
4 possible commission totals: $0, $1000, $1500, and $2500.
calculate their associated probabilities. By independence, we obtain
f($0) = (1 − 0.7)(1 − 0.4) = 0.18, f($1000) = (0.7)(1 − 0.4) = 0.42,
f($1500) = (1 − 0.7)(0.4) = 0.12. f($2500) = (0.7)(0.4) = 0.28,
Fall 2023
Mean of a Random Variable Ch 03: 6
Example:
A lot containing 7 components is sampled by a quality inspector; the lot
contains 4 good components and 3 defective components. A sample of 3
is taken by the inspector. Find the expected value of the number of good
components in this sample.
Solution:
Simple calculations yield f(0) = 1/35, f(1) = 12/35, f(2) = 18/35, and
f(3) = 4/35. Therefore,
Fall 2023
Mean of a Random Variable Ch 03: 7
Example:
Let X be the random variable that denotes the life in hours of a certain
electronic device. The probability density function is
Fall 2023
Mean of a Random Variable Depending on X Ch 03: 8
Fall 2023
Mean of a Random Variable Depending on X Ch 03: 9
Example:
Suppose that the number of cars X that pass through a car wash
between 4:00 P. M . and 5:00 P.M. on any sunny Friday has the
following probability distribution:
Let g(X) = 2X− 1 represent the amount of money, in dollars, paid to the
attendant by the manager. Find the attendant’s expected earnings for
this particular time period.
Solution:
Fall 2023
Mean of a Random Variable Depending on X Ch 03: 10
Example:
Let X be a random variable with density function
Fall 2023
Expected Value for a Joint Distribution Ch 03: 11
Fall 2023
Mean of a Random Variable Depending on X Ch 03: 12
Example:
Let X and Y be the random variables with joint probability
distribution indicated in Table
Solution:
Fall 2023
Mean of a Random Variable Depending on X Ch 03: 13
Solution:
+ 0 2 𝑓(0,2)
Fall 2023
Mean of a Random Variable Depending on X Ch 03: 14
Example:
Solution:
Fall 2023
Variance Ch 03: 15
Fall 2023
Variance Ch 03: 16
Fall 2023
Variance Ch 03: 17
Example:
Let the random variable X represent the number of automobiles that
are used for official business purposes on any given workday. The
probability distribution for company A is
Fall 2023
Variance Ch 03: 18
Solution:
For company A, we find that
The variance of the number of automobiles that are used for official business
purposes is greater for company B than for company A
Fall 2023
Variance of a Sample Ch 03: 19
Fall 2023
Variance Ch 03: 20
Example:
Let the random variable X with the probability distribution as shown.
calculate σ2.
Solution:
2 = E [X2] - 2
Fall 2023
Variance Ch 03: 21
Example:
A continuous random variable X having the probability density
Fall 2023
Variance Ch 03: 22
Fall 2023
Variance Ch 03: 23
Example:
Calculate the variance of g(X) = 2X + 3, where X is a random
variable with probability distribution
Solution:
Fall 2023
Variance Ch 03: 24
Example:
Calculate the variance of g(X) = 2X + 3, where X is a random
variable with probability distribution
Solution:
1 1
= 4 0 − 12 0 + 9 ∙ + 4 1 − 12 1 + 9 ∙ +
4 8
1 1
4 4 − 12 2 + 9 ∙ + 4 9 − 12 3 + 9 ∙ =4
2 8
Fall 2023
Variance Ch 03: 25
Example:
X is a random variable with probability distribution
Solution:
2 𝑥2 1 2
𝜇(4𝑋+3) = −1 4𝑥 + 3 𝑑𝑥 = −1 4𝑥 3 + 3𝑥 2 𝑑𝑥
3 3
1 4 3
2
= 𝑥 +𝑥 ቚ =8
3 −1
Fall 2023
Variance Ch 03: 26
Example:
X is a random variable with probability distribution
Solution:
Fall 2023
Covariance Ch 03: 27
tend to be negative.
• When X and Y are statistically independent, it can be shown that the covariance
is zero
Fall 2023
Covariance Ch 03: 28
Fall 2023
Covariance Ch 03: 29
Example:
X and Y are two random variables with joint probability distribution
Fall 2023
Covariance Ch 03: 30
Solution:
Fall 2023
Covariance Ch 03: 31
Example:
X and Y are two random variables with joint probability distribution
h( y ) = f ( x, y) dx
−
for all y
Fall 2023
Covariance Ch 03: 32
Solution:
Fall 2023
Correlation Coefficient Ch 03: 33
XY = XY / ( X Y )
Fall 2023
Correlation Coefficient Ch 03: 34
XY = XY / ( X Y )
Fall 2023
Correlation Coefficient Ch 03: 35
Example:
Find the correlation coefficient between X and Y with joint probability
distribution
Fall 2023
Correlation Coefficient Ch 03: 36
Solution:
Fall 2023
Correlation Coefficient Ch 03: 37
Example:
X and Y are two random variables with joint probability distribution
Fall 2023
Correlation Coefficient Ch 03: 38
Solution:
Fall 2023
Linear Combinations of Random Variables Ch 03: 39
E (aX + b) = a E(X) + b
• Also holds if a = 0 or b = 0.
If we add two functions,
Fall 2023
Ch 03: 40
Linear Combinations of Random Variables
Example:
Suppose that the number of cars X that pass through a car wash
between 4:00P.M. and 5:00 P.M. on any sunny Friday has the
following probability distribution
Solution:
Fall 2023
Linear Combinations of Random Variables Ch 03: 41
Example:
Find the Expected value of g(X) = 4X + 3, where the probability
distribution is given by
Solution:
Fall 2023
Functions of Two or More Random Variables Ch 03: 42
E (X Y) = E(X) E(Y)
E (X Y) = E(X) E(Y)
Fall 2023
Functions of Two or More Random Variables Ch 03: 43
Example:
X and Y are independent random variables with the joint density
function
1 1 2 2 1 2
𝐸 𝑋𝑌 = න න 𝑥 𝑦 𝑑𝑥𝑑𝑦 + න න 3𝑥 2 𝑦 3 𝑑𝑥𝑑𝑦
4 0 0 0 0
2
1 1 1 1
1 𝑥3 2 1 8
= න อ 𝑦 𝑑𝑦 + න 𝑥 3 ቚ 𝑦 3 𝑑𝑦 = න 𝑦 𝑑𝑦 + න 8 𝑦 3 𝑑𝑦
4 0 3 0 0 4 0 3 0
0
Fall 2023
Functions of Two or More Random Variables Ch 03: 44
1 1
1 8 𝑦2 𝑦4 1 4 5
𝐸(𝑋𝑌) = อ +8 อ = +2 =
4 3 2 4 4 3 6
0 0
𝐸 𝑋 = න 𝑥𝑔 𝑥 𝑑𝑥 𝐸 𝑌 = න 𝑦ℎ 𝑦 𝑑𝑦
g ( x) = f ( x, y) dy for all x h( y ) = f ( x, y) dx
−
for all y
−
1 1 𝑥 1 2 1 3𝑦 2
2
𝑔 𝑥 = න 𝑥 + 3𝑥𝑦 𝑑𝑦 = h 𝑦 = 𝑥+ 3𝑥𝑦 2 𝑑𝑥 = ( + )
4 0 2 4 0 2 2
2 1
𝑥 4 1 3𝑦 2 5
𝐸 𝑋 =න 𝑥 𝑑𝑥 = , 𝐸 𝑌 =න 𝑦 + 𝑑𝑦 =
0 2 3 0 2 2 8
4 5 20 5
𝐸 𝑋 𝐸 𝑌 = ∙ = =
3 8 24 6
Fall 2023
Variance Relationships Ch 03: 45
Fall 2023
Variance Relationships Ch 03: 46
Proof
Fall 2023
Variance Relationships Ch 03: 47
Example:
If X and Y are random variables with variances σ2X= 2 and σ2Y = 4
and covariance σXY = −2, find the variance of the random variable
Z = 3X − 4Y + 8.
Solution:
Fall 2023
Variance Relationships Ch 03: 48
Fall 2023
Variance Relationships Ch 03: 49
Example:
Suppose that X and Y are independent random variables with
variances σ2X = 2 and σ2Y = 3. Find the variance of the random
variable Z = 3X − 2Y + 5.
Fall 2023