Professional Documents
Culture Documents
Discrete Uniform
Distribution
KNS2723 NUMERICAL METHODS AND STATISTICS
MR ABDUL AZIM ABDULLAH
1
4/27/2018
2
4/27/2018
Discrete RV vs Continuous RV
Discrete Continuous
A set of data is said to be A set of data is said to be continuous if
discrete if the values the values belonging to the set can take
belonging to the set are any value within a finite or infinite
distinct or separate. interval.
Discrete RV is a set of data Continuous RV is a set of data that can
that can be COUNTED be MEASURED
e.g. in roll of a dice you can e.g. height of sunflower grown from the
only have {1,2,3,4,5,6}. This seed. Let say it can grow up to 70 inches
data is discrete because you tall. So the height of a sunflower can
cannot get a 2.5. So, in this take any value between 0 to 70 [0, 70]
case we have six distinct e.g. Measure amount of rain per day by
values for 6 different using a container with max capacity of
outcomes. 1L. The amount of rain can take any
value between 0 to 1L [0,1]
Discrete RV vs Continuous RV
Discrete Continuous
Number of language Height of a child
spoken
Length of hair grows per day
Number of books on a
Speed of a train
shelf
Time it takes to sprint 100 m
Number of students
Weight of random animals in the
Purchasing tickets
zoo
3
4/27/2018
Discrete RV vs Continuous RV
Discrete Continuous
4
4/27/2018
Example 1: PDF
We flips a fair coins three times and we would like to find out the
number of heads we can get.
Example 1
3/4
Pobability
1/4
0
0 1 2 3
P(X=x) 1/8 3/8 3/8 1/8
5
4/27/2018
So, the number of times you will see 2 people in queue for the next 100
visit
100 x 0.16 = 16 times
6
4/27/2018
Example 3
A report by the Ministry of Health reveal that approximately 48%
Malaysian adults have high cholesterol. Suppose we randomly sample
2 Malaysian adults, what is the probability that one or more adult we
sample have high cholesterol.
Possibilities LL LH HL HH
Value of X 0 1 1 2
(x)
Probabilities 0.52*0.52 0.52*0.48 0.52*0.48 0.48*0.48
=0.2704 =0.2496 =0.2496 =0.2304
Example 3
Now we can construct the PDF using the probability distribution table
Possibilities NN NC CN CC
Probability
Value of X 0 1 1 2 distribution
(x) table for all
Probabilities 0.52*0.52 0.52*0.48 0.52*0.48 0.48*0.48 possibilities/
=0.2704 =0.2496 =0.2496 =0.2304 outcomes
x 0 1 2 Total
P(X=x) 0.2704 0.2496*2 0.2304 1 PDF
=0.4992
7
4/27/2018
Example 3
0.6
0.5
Probabilities
0.4
0.3
Plot of PDF
0.2
0.1
0
0 1 2
X 0.2704 0.4992 0.2304
What is the probability that one or more adult selected randomly have high cholesterol?
F(x) = P(X ≤ x)
Properties;
1. 0 ≤ F(x) ≤ 1; -∞ < x < ∞
Note: P(X > x1) = P(x1 < X < ∞)
2. F(- ∞) = 0; F(∞) = 1 = F(∞) – F(x1)
3. If x1 < X2 then F(x1) ≤ F(x2) = 1 – F(x1)
8
4/27/2018
Example 4: CDF
Given the probability distribution for RV X, find the CDF and find
P(X ≤ 4.5), P(X > 4.5), P(1.5 < X ≤ 4.5).
x 1 2 4 6
PDF
P(X = x) 0.2 0.5 0.1 0.2
x 1 2 4 6
F(x) = P(X ≤ x) = P(X ≤ 1) = P(X ≤ 2) = P(X ≤ 4) 1
CDF = 0.2 = P(X=1)+P(X=2) = P(X=1)+P(X=2)+P(X=4)
=0.2+0.5 =0.2+0.5+0.1
=0.7 =0.8
x 1 2 4 6
Example 4 P(X = x) 0.2 0.5 0.1 0.2
F(x) 0.2 0.7 0.8 1
1.2
F(X)
1
find P(X ≤ 4.5), P(X > 4.5), P(1.5 < X ≤ 4.5)?
0.8
0.6
0.4
0.2
0
-4 -2 0 2 4 6 8
X
9
4/27/2018
Example 5
Let say we are flipping a fair coin twice. Find the PDF and CDF of the
outcome of the experiment.
Example 6
Using the following PDF, find the value of a and its CDF.
x 3 5 6 8 9
P(X=x) 0.1 0.2 0.1 0.5 a
10
4/27/2018
Example 7
The table shows the CDF of a certain experiment. Find its PDF.
x 4 7 9 11
F(x) 0.3 0.4 0.9 1
Example 8
Given the mathematical expression of a CDF for a certain random
event. Find the PDF for that expression.
𝑥+𝑘
𝐹 𝑥 = ; x =1, 2, 3, 4
6
11
4/27/2018
12
4/27/2018
13
4/27/2018
Binomial RV
aka Bernoulli RV
14
4/27/2018
15
4/27/2018
Binomial RV
16
4/27/2018
Binomial RV
17
4/27/2018
18
4/27/2018
Binomial Tables
Probability
of success
Values Cumulative
of the binomial
RV x probabilities
19
4/27/2018
Binomial Tables
20
4/27/2018
The Hypergeometric RV
21
4/27/2018
The Hypergeometric RV
Example 16 Hypergeometric
Distribution
22
4/27/2018
Example 16 Hypergeometric
Distribution
The Poisson RV
Poisson probability distribution is useful in describing the number of
rare events that will occur during a specific period or in a specific
area or volume
Typical examples
1. The number of traffic accidents per month at a busy intersection
2. The number of noticeable surface defects (scratches, dents, etc.)
found by quality inspectors on a new automobile
3. The number of parts per million of some toxin found in the water or
air emissions from a manufacturing plant
4. The number of diseased tress per acre of certain woodland
5. The number of death claims received per day by an insurance
company
6. The number of unscheduled admissions per day to a hospital
23
4/27/2018
The Poisson RV
The calculation of Poisson probabilities is made easier by the use of Table III
in Appendix A (pp 769-772), which gives the cumulative probabilities P(x ≤ k)
for various values of λ
24
4/27/2018
THANK YOU
25