Random Variables
Random Variables
o May be bounded:
o Example: number of components failed in a batch of 200: n [0, 200]
P 𝑋 = 𝑥 = 𝑓 𝑥 = 1Τ6 , 𝑥 ∈ 1,6
f(x) F(a)
a x a
𝑎
𝑃 𝑋 ≤ 𝑎 = 𝐹𝑥 𝑎 = 𝑓𝑥 𝑥𝑖 𝑃 𝑋 ≤ 𝑎 = 𝐹𝑥 𝑎 = න 𝑓𝑥 𝑥 𝑑𝑥
𝑥𝑖 ≤𝑎 −∞
o Total area under a PDF, or sum of PMF, must equal 1 (axiom of probability theory)
𝑃 𝑎 < 𝑋 ≤ 𝑏 = 𝑓𝑥 𝑥𝑖 = 𝐹𝑥 𝑏 − 𝐹𝑥 𝑎
𝑎<𝑥𝑖 ≤𝑏
𝑏 𝑎
𝑃 𝑎<𝑋≤𝑏 = න 𝑓𝑥 𝑥 𝑑𝑥 − න 𝑓𝑥 𝑥 𝑑𝑥 = 𝐹𝑥 𝑏 − 𝐹𝑥 𝑎 f(x)
−∞ −∞
a b x
o Mean (1st moment) is the weighted average, or most likely value of the random variable:
𝐸 𝑋 = 𝜇𝑥 = 𝑥𝑖 𝑓𝑥 𝑥𝑖
𝑖
f(x)
𝐸 𝑋 = 𝜇𝑥 = න 𝑥𝑓𝑥 𝑥 𝑑𝑥 x
−∞ μ = 3.5 μ
2 2
𝐸 𝑋 − 𝜇𝑥 = var 𝑋 = 𝑥𝑖 − 𝜇𝑥 𝑓𝑥 𝑥𝑖
𝑖
∞
var 𝑋 = 𝐸 𝑋 2 − 𝜇𝑥 2
2
𝐸 𝑋 − 𝜇𝑥 = var 𝑋 = න 𝑥𝑖 − 𝜇𝑥 2 𝑓𝑥 𝑥 𝑑𝑥
−∞
o Coefficient of variation: Vx = σx / μx
o Uncertainty in the value of a random basic variable is represented using a PMF or PDF
𝑎 𝑛!
CDF: P 𝑋 ≤ 𝑎 = F 𝑎 = 𝑝𝑦 1 − 𝑝 𝑛−𝑦
𝑦=0 𝑦! 𝑛 − 𝑦 !
Mean: 𝜇𝑥 = 𝑛𝑝
Variance: 𝜎𝑥2 = 𝑛𝑝 1 − 𝑝
o Examples:
➢ Quality control on a production line, a product either passes or fails inspection
Jacob Bernoulli
➢ In an earthquake zone a building may or may not be damaged during one year 1654-1705
1. What is the probability that in a batch of 100, 2 or less components fail inspection?
Use the CDF for the Binomial distribution. For convenience define the event of a failed inspection
as a “success.” Thus, n = 100, p = 0.01:
2 100!
P X≤2 =F 2 = 0.01𝑦 × 0.99100−𝑦
𝑦=0 𝑦! 100 − 𝑦 !
Use the Binomial PMF with a “success” being a passed inspection: then p = 0.99, n = 100:
100!
𝑃 𝑋 = 97 = 𝑓 97 = 0.9997 × 0.013 = 𝟎. 𝟎𝟔𝟏
3! × 97!
100!
𝑃 𝑋=3 =𝑓 3 = 0.013 × 0.9997 = 𝟎. 𝟎𝟔𝟏
97! × 3!
Mean: 𝜇𝑥 = 1/𝑝
ഥ:
o Mean recurrence time is known as the (average) return period 𝑻
∞
1
𝑇ത = 𝐸 𝑇 = 𝑝 1 − 𝑝 𝑡−1 =
𝑝
𝑡=1
o The probability that more than one event will occur in such a short time
interval, or fall in such a small region is negligible
o Binominal distribution: in one interval (trial) an event either occurs or does not, thus an event
can only occur at most once during an interval
o Poisson distribution: an event can occur more than once during an event
o As the time interval gets shorter, the Poisson distribution approaches the Binomial distribution
because the likelihood of multiple events occurring in one interval decreases
Poisson parameter: 𝜆 = 𝑣𝑡
PMF: 𝑓 𝑥 =
𝜆𝑥 −𝜆
𝑒 , 𝑥 = 0,1,2, ⋯ λ=2
𝑥!
𝑎
𝜆𝑦 −𝜆
CDF: P 𝑋 ≤ 𝑎 = F 𝑎 = 𝑒
𝑦!
𝑦=0
Mean: 𝜇𝑥 = 𝜆
Variance: 𝜎𝑥2 = 𝜆
3.650 3.651
𝑃 𝑋 ≥ 2 = 1 − 𝑃 𝑋 ≤ 1 = 1 − 𝐹 1 = 1 − 𝑒 −3.65 + = 𝟎. 𝟖𝟕𝟗
0! 1!
o However, the likelihood of an event occurring may be dependent on previous events (or
earlier trials), and thus could involve conditional probabilities
o If this conditional probability depends on the immediately preceding trial (or interval),
the resulting model is a Markov chain (or Markov Process) – beyond this course!