Lesson 6 Prob Distributions
Lesson 6 Prob Distributions
RANDOM VARIABLE
6.1 Discrete Random Variable
Example: Let X be the discrete variable that the number of fours obtained when two
dice are thrown’. Show that X is a random variable
X P(X)
25 10 1
Now ∑ 𝑃 (𝑋 = 𝑥) = + + =1
36 36 36
X P(X=xi)
0 25/36
1 10/36
2 1/36
𝐹 (𝑡 ) = 𝑃(𝑋 ≤ 𝑡 ) = ∑ 𝑃(𝑋 = 𝑥)
𝑥=1
Example: Two dice are thrown and the score noted where the score is the sum of the
two numbers on which the dice land. If X is the r.v (random variable)’ the score when
two dice are thrown’ find the p.d.f of X.
Solution:
X 2 3 4 5 6 7 8 9 10 11 12
P(X=x)
∑ 𝑃(𝑋 = 𝑥 ) = 1
6.3 Expectation, E(X)
The expectation of X ( or expected value), written E(X) is given by:
𝐸 (𝑋 ) = ∑ 𝑥𝑃(𝑋 = 𝑥)
𝑎𝑙𝑙 𝑥
X -2 -1 0 1 2
P(X=x) 0.30 0.1 0.15 0.4 0.05
𝐸 (𝑋 ) = ∑ 𝑥𝑃(𝑋 = 𝑥)
𝑎𝑙𝑙 𝑥
= (−2)(0.03) + (−1)(0.1) + (0)(0.15) + (1)(0.4)
+ (2)(0.05) = −0.2
X 0 1 2 3 4 5
P(X=x) 0.10 0.15 0.3 0.2 0.15 0.1
𝑬(𝑿) = ∑ 𝒙𝑷(𝑿 = 𝒙)
𝒂𝒍𝒍 𝒙
= (𝟎)(0.1) + (1)(0.15) + (2)(0.3) + (3)(0.2) + (4)(0.15)
+ (5)(0.1) = 2.45
x 1 2 3 4 5
P(X=x) 0.1 0.3 0.2 0.3 0.1
Find:
a. E(X)
b. VAR(X) using 𝑉𝐴𝑅 (𝑋 ) = 𝐸(𝑋 − 𝜇)2
Solutions:
x 1 2 3 4 5
x-3 -2 -1 0 1 2
(x-3)2 4 1 0 1 4
P(X=x) 0.1 0.3 0.2 0.3 0.1
1. Binomial Distribution
A fixed number of observations, n
o e.g., 15 tosses of a coin; ten light bulbs taken from a warehouse
Each observation is categorized as to whether or not the “event of interest”
occurred
o e.g., head or tail in each toss of a coin; defective or not defective light
bulb
o Since these two categories are mutually exclusive and collectively
exhaustive
When the probability of the event of interest is represented as π,
then the probability of the event of interest not occurring is 1 - p
Constant probability for the event of interest occurring (p) for each observation
o Probability of getting a tail is the same each time we toss the coin
Observations are independent
o The outcome of one observation does not affect the outcome of the other
𝑛
𝑃(𝑋 = 𝑥) = ( ) 𝑝 𝑥 (1 − 𝑝)𝑛−𝑥 , 𝑓𝑜𝑟 𝑥 = 1,2,3,4, . . , 𝑛
𝑥
𝑋~𝐵𝑖𝑛(𝑛, 𝑝)
Mean
μ E(x) n
VAR(X)
n (1 - )
2
σ
Example: The probability that a person supports Party A is 0.6.Find the probability
that in a randomly selected sample of 8 voters there are a) exactly 3 who support party
A, b) more than 5 who support party A
Solution:
Solution:
Example : The probability that a pen drawn at random from a box of pens is defective
is 0.1. If a sample of 6 pens is taken, find the probability that it will contain a)no
defective pens, b) more than 4 defective pens, c) less than 3 defective pens.
Solution:
2. Poisson Distribution
You use the Poisson distribution when you are interested in the number
of times an event occurs in a given area of opportunity.
An area of opportunity is a continuous unit or interval of time, volume,
or such area in which more than one occurrence of an event can occur.
o The number of scratches in a car’s paint
o The number of mosquito bites on a person
o The number of computer crashes in a day
Apply the Poisson Distribution when:
e
x 𝑋~𝑃𝑜(𝜆)
P(X ) For x = 0,1,2,3…∞
X!
where:
Mean
μ λ
VAR(X)
λ
2
σ
Solution:
Example: Cars arrive at a petrol station at an average rate of 30 per hour.
Assuming that the number of cars arriving at the petrol stations follows a
Poisson distribution, find the probability that
Solution:
TUTORIAL:
x 0 1 2 3 4
P(X=x) 1/6 1/12 1/4 1/3 1/6
Find E(X)
x 1 2 3 4 5
P(X=x) 0.1 0.3 y 0.2 0.1
Find the value of Y and E(X)
3. The probability that a marksman scores a bull when he shoots at a target is 0.6.
Find the probability that in 7 attempts he scores less than 3 bulls. Assume that
the outcome of each shot is independent of any other.
4. 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 gets
a) None correct
b) More than 7 correct
f(X)
σ X
μ
Mean
= Median
= Mode
The formula for the normal probability density function is
2
1 (X μ)
1 2
f(X) e
2 π
X
μ
The standardize Normal Distribution.
o Any normal distribution (with any mean and standard deviation
combination) can be transformed into the standardized normal
distribution (Z)
o Need to transform X units into Z units
o The standardized normal distribution (Z) has a mean of 0 and a standard
deviation of 1
Translate from X to the standardized normal (the “Z” distribution) by
subtracting the mean of X and dividing by its standard deviation:
X μ
Z
σ
1
Z
Values above the mean have positive Z-values, values below the mean have
negative Z-values
Example:
If X is distributed normally with mean of 100 and standard deviation of 50, the Z
value for X = 200 is
X μ 200 100
Z 2.0
σ 50
This says that X = 200 is two standard deviations (2 increments of 50 units) above
the mean of 100.
a b X
The total area under the curve is 1.0, and the curve is symmetric, so half is
above the mean, half is below
f(X) P( X μ) 0.5
P( μ X ) 0.5
0. 0.
5 5 X
μ
P( X ) 1.0
0.9772
Z
0 2.00
The row
shows
the value
of Z to Z 0.00 0.01
the first0.02 …
decimal0.0
point 0.1. The value within
.
. the table gives the
2.0 .9772 probability from Z
= up to the
desired Z value
P(Z < 2.00)2.=
0
0.9772
Example:
Let X represent the time it takes to download an image file from the internet. Suppose
X is normal with mean 8.0 and standard deviation 5.0. Find P(X < 8.6).
Solution:
X μ 8.6 8.0
Z 0.12
σ 5.0
μ= μ=
8 0
σ= σ=
8 8.6 10 X 0 0.12 1 Z
P(X > 8.6) = P(Z > 0.12) = 1.0 - P(Z ≤ 0.12) = 1.0 - 0.5478 = 0.4522
0.5
1.00 1.0 -
478
0 0.5478
=
Z Z
0 0 0.4522
0.12 0.12
Example: Suppose X is normal with mean 8.0 and standard deviation 5.0. Find P(8
< X < 8.6)
Calculate Z-values:
X μ 88 X μ 8.6 8
Z 0 Z 0.12
σ 5 σ 5
P(8 < X < 8.6) = P(0 < Z < 0.12)
X μ Zσ
Example: Let X represent the time it takes (in seconds) to download an image file
from the internet. Suppose X is normal with mean 8.0 and standard deviation 5.0Find
X such that 20% of download times are less than X.
Z … .03 .05
.04
-0.9 ….1762
.1736.1711
0.2000
….2033 .1977
- .20
-0.7 ….2327
.2296.2266
05 ? 8.0 X
-0.84 0 Z
20% area in the lower tail is consistent with a Z value of -0.84
X μ Zσ
8 . 0 ( 0 . 84 ) 5 . 0
3 . 80
So 20% of the values from a distribution with mean 8.0 and standard deviation 5.0 are
less than 3.80
Example:
1. If Z – N(0,1), find a) 𝑃(𝑍 > 0.87), 𝑏) 𝑃(𝑍 < 0.87), 𝑐) 𝑃(𝑍 <
−0.87), 𝑑) 𝑃(𝑍 > −0.87)
2. If Z – N(0,1), find a) 𝑃(𝑍 > 1.8), 𝑏) 𝑃(𝑍 < −0.65), 𝑐) 𝑃(𝑍 < 1.36),
4. A certain type of cabbage has a mass which is normally distributed with mean
1 kg, and standard deviation 0.15kg. In a lorry load of 800 of these cabbages,
estimate how many will have mass.
a. Greater than 0.79kg
b. Less than 1.13kg
c. Between 0.85 kg and 1.15 kg