Chapter 2 - Random Variables
Chapter 2 - Random Variables
• Random Variables
• Every probability function must display the two basic properties of probability.
These two properties are:
Property 1 : the probability assigned to each value of the random variable must
be between zero and one. 0 P (X) 1
Property 2 : the sum of the probabilities assigned to all the values of the random
variable must equal one. σ P(X) =1
Discrete Random Variables
Probability Mass Function
f(x) =
f(x) =
1.
3. The number of heads obtained when two unbiased coins are tossed
is denoted by Z.
i. Construct a probability distribution table for Z.
ii. Find P(Z = 2).
Continuous Random Variables
Probability Density Function
𝑥2
−1<𝑥 <2
𝑓 𝑥 =൞ 3
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
i. Show that
1
(4 − 2𝑥 ) 0≤𝑥≤2
𝑓 𝑥 =൞ 4
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Find
i. P(X > 1)
ii. P(0.5 < X ≤ 1)
iii. P(X < 1)
Exercises
1. The continuous random variable X has probability density function given
by the following, where k is a constant
𝑘(𝑥 2 + 1) 1≤𝑥≤4
𝑓 𝑥 =ቐ
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
i. Find the value of k.
ii. Calculate P(X = 3).
ii. Calculate P(2 < X ≤ 3).
i. What proportion of disks is the distance to the first flaw greater than
1000 micrometers?
ii. What proportion of parts is between 1000 and 2000 micrometers?
Mathematical Expectation Random Variables
Mathematical Expectation Random Variables
When it exists, the mathematical expectation E satisfies the
following properties:
E(c) = c
E(cX) = cE(X)
E(c + X) = c + E(X)
E(X + Y) = E(X) + E(Y)
Example 7
Let X have the p.m.f
Find
i. E(X)
ii. E(𝑋 2 )
iii. 𝐸 𝑋 5−𝑋
iv. Var 𝐸
Example 8
The probability distribution of the discrete random variable X is shown below.
Find
i. E(X)
ii. Var (X)
iii. σ
Exercises
1. The discrete random variable X has the following probability distribution.
𝑥2
0<𝑥<3
𝑓 𝑥 =൞ 9
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1
𝑥, 0≤𝑥≤3
6
𝑓 𝑥 =
1
2 − 𝑥, 3≤𝑥≤4
2