Professional Documents
Culture Documents
Distributions
Task
A r.v. Y takes the integer value y with probability pY (y ), where
ky 3 if y = 1, 2, 3, 4, 5
pY (y ) =
0 otherwise
Expected Value
The mean, µ of a probability distribution is the expected value of its
random variable. The expected value is given by,
N
µ = E (X ) = ∑ xi P (X = xi )
i =1
where
xi = the i th outcome of the discrete random variable X
P (X = xi ) = probability of occurrence of the i th outcome of X
where
xi = the i th outcome of the discrete random variable X
P (X = xi ) = probability of occurrence of the i th outcome of X
Note:
We can also compute the variance as;
σ2 = E (X 2 ) − (E (X ))2
i) Let g and h be functions, and let a and b be constants. For any random
variable X (discrete or continuous),
In particular,
E(aX + b ) = aE(X ) + b
ii) Let X and Y be ANY random variables (discrete, continuous,
independent, or non-independent). Then
Binomial Distribution: Consider a coin toss which can turn up heads with
probability p or tails with probability 1 − p (independently of prior tosses).
Let X be the number of heads in a sequence of n tosses of the coin. Then
X is a binomial r.v. with parameters n and p. Alternatively, we say that X
is binomial(n, p) distributed. The pmf of a binomial(n, p) distributed r.v.
X is given by:
n x
pX (x ) = P(X = x ) = p (1 − p )n −x (2)
x
for x = 0, 1, 2, . . . , n and 0 ≤ pX (x ) ≤ 1. Alternatively the above pmf can
be written as
n x
(x )p (1 − p )n−x if x = 0, 1, 2, . . . , n
pX (x ) =
0 elsewhere
(a) P (X = 2)
(b) P (X < 2)
(c) P (X ≥ 1).
(2) If X ∼ B (10, 0.3) find:
(a) P (X = 9)
(b) P (X = 0)
(c) P (X ≤ 5).
(3) If the probability that I get a lift to work on any morning is 0.6 what
is the probability that in a working week of five days I will get a lift
only twice?
(4) A random variable X is binomially distributed with mean 6 and
variance 4.2. Find P (X ≤ 6).
Solution
n = 10, p = 0.75, 1 − p = 0.25. Thus, X ∼ Bin (10, 0.75)
We can also write this as X ∼ binomial(10, 0.75). Hence,
(a) P(exactly 8 flowers will be produced)
= P(X = 8) = (10 8 2
8 )(0.75) (0.25) = 0.282
(b) P(at least 8 flowers will be produced)
= P(X ≥ 8) = P(X = 8) + P(X = 9) + P(X = 10) =
(10 8 2 10 9 1 10 10 0
8 )(0.75) (0.25) + ( 9 )(0.75) (0.25) + (10)(0.75) (0.25) =
0.282 + 0.188 + 0.056 = 0.526
(c) P(at most 7 flowers will be produced)
= P(X ≤ 7) = 1 − P(X ≥ 8) = 1 − 0.526 = 0.474
Edwin Moyo (emoyo@mu.ac.zm) Lecture 4 - Discrete and Continuous Probability Distributions
November 25, 2022 28 / 62
Task
Q1. Suppose that 40% of the students in BEC 260 at KNU are in favor of
a ban on playing music in dormitories. Suppose that 5 students are
randomly sampled. Find the probability that
(a) 2 favor the ban.
(b) less than 4 favor the ban.
(c) at least 1 favor the ban.
Q2. In a multiple choice test there are 10 questions and for each question
there is a choice of 4 answers, only one of which is correct. If a
student guesses at each of the answers, find the probability that he or
she gets
(a) none correct.
(b) more than 7 correct.
(c) if he or she needs to obtain over half marks to pass, and the questions
carry equal weight, find the probability that he or she passes.
Q3. The random variable X has a binomial distribution B (11, p ). If
P (X = 8) = P (X = 7) find the value of p.
( λ )x
pX (x ) = P(X = x ) = e−λ (3)
x!
for x = 0, 1, 2, . . . and 0 ≤ pX (x ) ≤ 1, where λ is the mean number of
occurrences of a random event in a unit interval of time or space. The
number of occurrences of the random event in the interval is indicated by
x. It so happens that the variance of a Poisson r.v. is also λ .
Task
If, on average, calls arrive at a company according to a Poisson
distribution at a rate of one in every 30 seconds, calculate the probability
that the company receives
(a) only one call in 30 second interval.
(b) at least 3 calls in a 30 second interval.
(c) less than two calls in a 30 second interval.
(d) no calls in a 5 second internal.
Note
Poisson Approximation to the Binomial: In a binomial situation, if n is
very large (greater than 30) and p is very small (less than 0.1), then we
can approximate the binomial distribution using the Poisson with mean np.
The larger n is and the smaller p is, the better the approximation.
Edwin Moyo (emoyo@mu.ac.zm) Lecture 4 - Discrete and Continuous Probability Distributions
November 25, 2022 35 / 62
Task
1 The probability of a student failing to graduate after 5 years (for 4
year-degree programs) is 0.004. For a sample of 250 students,
determine the probability that less than 3 students will fail to
graduate after 5 years. What is the expected number of students
failing to graduate after 5 years?
2 The number of people entering a Commercial Bank during any
four-minute interval follows the Poisson distribution with mean µ = 4.
Find the probability of the following during a four-minute interval
(a) No one enters the bank.
(b) At least two people enter the bank.
3 The probability that a student admitted in URP programme will
graduate after five years is 0.90.
(a) Determine the probability of the following out of 10 students: (1) At
least nine will graduate. (2) Five will graduate.
(b) Find E(X ) and Var (X )
Note that the area under the pdf is 1 (the normalization property).
Example
The number of miles that a particular car can run before its battery wears
out is exponentially distributed with an average of 10,000 km. The owner
of the car needs to take a 5,000-km trip. What is the probability that he
will be able to complete the trip without having to replace the car battery?
Example
The number of miles that a particular car can run before its battery wears
out is exponentially distributed with an average of 10,000 km. The owner
of the car needs to take a 5,000-km trip. What is the probability that he
will be able to complete the trip without having to replace the car battery?
Solution
The rate of this exponential distribution is 1 battery per 10,000 km, i.e.,
5,000
− 10,000
10,000 so P(X > 5, 000) = F (5, 000) = e = e−0.5 ≈ 0.604. Note
1
1 (x − µ )2
√ e− 2σ2 , for x ∈ R
fX (x ) = (5)
σ 2π
where −∞ < µ < ∞ and 0 ≤ σ < ∞ are the two parameters
characterizing the pdf. µ and σ2 are, respectively the mean and variance
of normally distributed random variable X . If µ = 0 and σ = 1, then (5)
1 2
becomes √12π e− 2 x . A normal r.v. Z with a mean of zero and a variance
of 1 is said to have a standard normal distribution (generally easier to deal
with as there is a table of probabilities for it).