Probability Handout
Probability Handout
0 RANDOM VARIABLES
1.1 Introduction
In application of probability, we are often interested in a number associated with the outcome of a random
experiment. Such a quantity whose value is determined by the outcome of a random experiment is called a
random variable. It can also be defined as any quantity or attribute whose value varies from one unit of the
population to another.
A discrete random variable is function whose range is finite and/or countable, i.e it can only assume values
in a finite or countably infinite set of values. A continuous random variable is one that can take any value in
an interval of real numbers. (There are uncountably many real numbers in an interval of positive length.)
1.2 Discrete Random Variables and Probability Mass Function
Consider the experiment of flipping a fair coin three times. The number of tails that appear is noted as a
discrete random variable. X= number of tails that appear in 3 flips of a fair coin.
There are 8 possible outcomes of the experiment: namely the sample space consists of
In general,
𝑛!
𝑃(𝑋 = 𝑥) = (𝑛−𝑥)!𝑥!
𝑝 𝑥 𝑞 𝑛−𝑥 , where n is the number of trials.
The mean and variance of a binomial random variable are represented by;
𝜇 = 𝑛𝑝 𝑎𝑛𝑑 𝜎 2 = 𝑛𝑝𝑞
Poisson probabilities are useful when there are a large number of independent trials with a small probability
of success on a single trial and the variables occur over a period of time. It can also be used when a density
This is abbreviated as is the shape parameter which indicates the average number of events
in the given time interval. The mean and variance of this distribution are equal ie
Properties of Poisson
The sum of independent Poisson variables is a further Poisson variable with mean equal to the sum
of the individual means.
As well as cropping up in the situations already mentioned, the Poisson distribution provides an
approximation for the Binomial distribution.
The cumulative distribution function of a standard normal random variable is denoted , and is given by
𝑧
Φ(𝑧) = ∫−∞ ∅(𝑡) 𝑑𝑡
𝑃(𝑍 < 𝑧1 ) = 0.5 + 𝑃(𝑍 = 𝑧1 ), 𝑤ℎ𝑒𝑟𝑒 𝑃(𝑍 = 𝑧1 ) 𝑖𝑠 𝑟𝑒𝑎𝑑 𝑓𝑟𝑜𝑚 𝑡ℎ𝑒 𝑡𝑎𝑏𝑙𝑒.\
𝑃(𝑍 > 𝑧1 ) = 0.5 − 𝑃(𝑍 = 𝑧1 ), 𝑤ℎ𝑒𝑟𝑒 𝑃(𝑍 = 𝑧1 ) 𝑖𝑠 𝑟𝑒𝑎𝑑 𝑓𝑟𝑜𝑚 𝑡ℎ𝑒 𝑡𝑎𝑏𝑙𝑒
𝑃(𝑍 = −𝑧1 ) = 𝑃(𝑍 = 𝑧1 ), 𝑤ℎ𝑒𝑟𝑒 𝑃(𝑍 = 𝑧1 ) 𝑖𝑠 𝑟𝑒𝑎𝑑 𝑓𝑟𝑜𝑚 𝑡ℎ𝑒 𝑡𝑎𝑏𝑙𝑒 and note we read only positive
values from the table.
Examples
1. A r.v.x~ 𝑁(50,25), compute 𝑃(45 ≤ 𝑥 ≤ 60).
Solution
𝑥 − 50
𝜇 = 50 𝑎𝑛𝑑 𝜎 = 5, 𝑧 = ~𝑁(0,1)
5
45−50 60−50
𝑃(45 ≤ 𝑥 ≤ 60) = 𝑃 ( 5
≤𝑥≤ 5
)
= 𝑃(−1 ≤ 𝑥 ≤ 2)
3. The mean diameter of a sample of 400 rollers is 22.50 mm and the standard deviation is 0.50 mm. Rollers
are acceptable with diameters 22.36±0.53 mm. Determine the probability of any roller being within the
acceptable limits.
Solution
𝜇 = 22.50 𝑚𝑚 𝑎𝑛𝑑 𝜎 = 0.50 𝑚𝑚
𝑙𝑖𝑚𝑖𝑡𝑠 𝑜𝑓 𝑥1 = 22.36 − 0.53 = 21.83 𝑚𝑚
𝑥2 = 22.36 + 0.53 = 22.89 𝑚𝑚
21.83 −22.50 22.89−22.50
𝑃(21.83 ≤ 𝑥 ≤ 22.89) = 𝑃 ( ≤𝑥≤ )
0.50 0.50
= 𝑃(−1.34 ≤ 𝑥 ≤ 0.78)
= 𝑃(𝑧 = −1.34) + 𝑃(𝑧 = 0.78)
= 0.4099 + 0.2823 (From tables)
= 0.6922
Exercise
1. Family income is believed to be normally distributed with a mean of shs 250000 and a standard deviation
of 100000. If the poverty level is 100000, what percentage of the population lives in poverty? A new tax law
is expected to benefit middle income families, those with incomes between shs 200000 and shs 300000.
What percentage of population will benefit from the law?