Chapter 5 Prob
Chapter 5 Prob
Chapter - 5
5. RANDOM VARIABLES AND DISCRETE PROBABILITY DISTRIBUTIONS
5. 1 RANDOM VARIABLES
Definition: a probability distribution consists of a value a random variable can assume and the
corresponding probabilities of the values.
Example: Consider the experiment of tossing a coin three times. Let X be the number of
heads. Construct the probability distribution of X.
Solution: First identify the possible value that X can assume.
Calculate the probability of each possible distinct value of X and express
X in the form of frequency distribution.
𝑋=𝑥 0 1 2 3
𝑃(𝑋 = 𝑥) 1/8 3/8 3/8 1/8
NB: Probability distribution is denoted by P for discrete and by f for continuous random
variable.
Requirements for probability distribution
1. 𝑃(𝑥) ≥ 0, 𝑓𝑜𝑟 𝑑𝑖𝑠𝑐𝑟𝑒𝑡𝑒 𝑟. 𝑣. 2. ∑𝑥 𝑃(𝑥) = 1, 𝑓𝑜𝑟 𝑑𝑖𝑠𝑐𝑟𝑒𝑡𝑒 𝑟. 𝑣.
∞
𝑓(𝑥) ≥ 0, 𝑓𝑜𝑟 𝑐𝑜𝑛𝑡𝑖𝑛𝑜𝑢𝑠 𝑟. 𝑣 ∫−∞ 𝑓(𝑥)𝑑𝑥 = 1, 𝑓𝑜𝑟 𝑐𝑜𝑛𝑡𝑖𝑛𝑜𝑢𝑠 𝑟. 𝑣.
Note:
𝑏
1. If X is a continuous random variable then 𝑃(𝑎 < 𝑋 < 𝑏) = ∫𝑎 𝑓(𝑥)𝑑𝑥.
2. Probability of a fixed value of a continuous random variable is zero.
𝑏
≫ 𝑃(𝑎 < 𝑋 < 𝑏) = 𝑃(𝑎 ≤ 𝑋 < 𝑏) = 𝑃(𝑎 < 𝑋 ≤ 𝑏) = 𝑃(𝑎 ≤ 𝑋 ≤ 𝑏) = ∫ 𝑓(𝑥)𝑑𝑥.
𝑎
3. If X is discrete random variable then
𝑏−1 𝑏−1
2. Let X be a continuous random variable assuming the values in the interval (a, b) such that
𝑏 𝑏
, ∫𝑎 𝑓(𝑥)𝑑𝑥 = 1, then 𝐸(𝑋) = ∫𝑎 𝑥 𝑓(𝑥)𝑑𝑥.
Solution: First find the sample space and construct the probability distribution of X.
𝑆 = {𝐻𝐻, 𝐻𝑇, 𝑇𝐻, 𝑇𝑇} ; 𝑎𝑛𝑑 𝑋 = {0,1,2}.
𝑋=𝑥 0 1 2
𝑃(𝑋 = 𝑥) 1/4 2/4 1/4
3
2. Each trial has only one of the two possible outcomes. i.e. success or failure.
3. The outcome of each trial must be independent of each other.
4. The probability of success must remain the same for each trial.
Examples of binomial experiments:
Tossing a coin 20 times to see how many tails occur.
Registering a newly produced product as defective or non defective.
Asking 100 people if they favor the ruling party.
Definition: The outcome of a binomial experiment and the corresponding probabilities of these
outcomes are called a Binomial Distribution.
25
𝑎) 𝑃(𝑋 = 10) = ( ) (0.3)10 (1 − 0.3)25−10 = 0.0916.
10
𝑏) 𝑃(𝑥 < 5) = 𝑃(𝑥 = 0) + 𝑃(𝑥 = 1) + 𝑃(𝑥 = 2) + 𝑃(𝑥 = 3) + 𝑃(𝑥 = 4)
25 25 25 25
= ( ) (0.3)0 (1 − 0.3)25−0 + ( ) (0.3)1 (1 − 0.3)25−1 + ( ) (0.3)2 (1 − 0.3)25−2 + ( ) (0.3)3 (1 − 0.3)25−3
0 1 2 3
25
+ ( ) (0.3)4 (1 − 0.3)25−4 = 0.0905.
4
𝑐) 𝑃 (𝑋 ≥ 5) = 1 − 𝑃(𝑥 < 5) = 1 − 0.0905 = 0.9095.
𝑑) 𝑃 (3 ≤ 𝑋 ≤ 5) = 𝑃 (𝑋 = 3) + 𝑃 (𝑋 = 4) + 𝑃 (𝑋 = 5) = 0.1945.
𝑒) 𝑃(4 < 𝑥 < 7) = 𝑃(𝑋 = 5) + 𝑃 (𝑋 = 6) = 0.2502.
Remark: If X is a binomial random variable with parameters n and p then
𝑬(𝑿) = 𝒏𝒑 𝒂𝒏𝒅 𝑽𝒂𝒓(𝑿) = 𝒏𝒑𝒒.
2. The Poisson distributions
It is used to model situations where the random variable x is the number of occurrences of a
particular event over a given period of time (space). Together with this property, the following
conditions must also be fulfilled.
Events are independent of each other.
Events occur singly.
Events occur at a constant rate (i.e. the mean number of occurrences is
proportional to the length of the interval).
The poison distribution is used as a distribution of rare events such as:
Number of telephone calls per minute.
Number of misprints per page.
Number of bacteria per slide.
Number of road accidents per day.
The processes that given rise to such events are called poison processes.
The probability that the number of occurrences, x, over a given period of time is equal to:
𝑒 −𝜆 𝜆𝑥
𝑃(𝑋 = 𝑥) = ; 𝑥 = 0, 1, 2, … 𝑎𝑛𝑑 𝑒 = 2.7182818 …
𝑥!
Where: λ = is the average number of events in a given period of time.
The Poisson distribution depends only on the average number of occurrences per unit time
(space).
The mean and variance of a poison distribution is given by
𝑬(𝑿) = 𝝀 𝒂𝒏𝒅 𝑽𝒂𝒓(𝑿) = 𝛌.
Example: Suppose that the bank customers arrive randomly and independently on an average of 3.2
customers every 4 minutes. What is the probability that
Lecture Notes Page 5
MTU Stat Dept Probability and statistics Chapter-5