S5 Prob Dist
S5 Prob Dist
Discrete Probability
Distributions
David Chow
Sep 2021
1
Learning Objectives
2
Random Variables
3
Random Variables
Definition: A random variable (rv) represents a
possible numerical value from an uncertain event
Examples
- Value of a dice
- Waiting time for MTR
4
Probability Distribution
A probability distribution for a discrete random variable
is a mutually exclusive listing of all possible numerical
outcomes and the probability associated with each outcome
Eg: X = # heads when a fair coin is tossed twice
5
Eg: Probability Distribution
Two conditions for a discrete PD:
(i) f(x) ≥ 0, and
(ii) Σf(x) = 1
6
Expected Value
A probability distribution has ____ properties to
describe: ________
The mean () of a probability distribution is the
expected value of its random variable
7
Eg: No. of Boys
Find E(X) where X = no. of boys in a 2-children family
First, the probability distribution
8
Eg: Credit Card
The table below shows the number of credit cards owned by a US adult:
Number of Credit Cards (X) P(X)
0 0.26
1 0.22
2 0.16
3 0.12
4 0.08
5 0.06
6 0.04
7 0.03
8 0.02
9 0.01
Compute and interpret E(X)
X = possible outcomes = 1, 2, …, 6
P(X) = ⅙ for all Xs
E(X) = ∑ X∙P(X) = 3.5 -- Why is it the average value of X?
10
Measuring Dispersion
Variance of a discrete random variable
N
σ [X i E(X)]2 P(X i )
2
i 1
N
σ σ 2
[X
i 1
i E(X)]2 P(X i )
11
Measuring Dispersion
12
Application of Expected Values:
Lottery Games
Ticket price is $2
Q: Is it worth buying?
13
Application of Expected Values:
Lottery Games
Q: Is it worth buying?
14
Binomial Distribution
15
The Binomial Distribution
16
Properties of the Binomial Dist
Properties
A fixed number (n) of identical observations
Eg: 15 tosses of a coin (n=15),
Eg: 10 light bulbs from a production line (n=10)
Identical observations?
You may think of it as
repeated draws (with replacement)
17
Properties of the Binomial Dist
Properties (cont)
Two mutually exclusive & collectively exhaustive
categories, “success” and “failure”
If P (Success) = π, then P (Fail) = ____
Examples
People who have “taken” or “not yet taken” vaccinations
New job applicants either accept or reject the offer
18
Example: MC Quiz
You are randomly guessing on a quiz of 5 MCs
Each MC has 5 choices
What is the probability of getting a zero?
Answer
Define Success = correct answer, then P(S) = 0.2 i.e., π=0.2
5 identical & independent trials i.e.,
n=5
X = no. of success = 0, 1, 2, 3, 4, or 5
P (zero score) = P(X=0) = (0.8)5 = 0.32768
Next, what is P(X=1)?
One correct answer, followed by 4 wrongs …
hence P(X=1) = 0.2 x 0.84 … Agree?
19
Example: MC Quiz
P(X=1)
Answer
SFFFF (S=success, or correct answer)
FSFFF (F=failure, or wrong answer)
FFSFF
FFFSF
FFFFS
The required probability is 5 x 0.2 x 0.8 4 = 0.4096
20
Counting Techniques
Rule of Combinations
The number of combinations of
selecting X objects out of n objects is:
n n!
C
n X
X X!(n X)!
21
Counting Techniques
Rule of Combinations
Eg1: An ice cream shop carries 31 possible flavors. How many
combinations of 3-scoop cones are possible?
Select X=3 from n=31, the number of flavors:
31 31! 31! 31 30 29 28!
C
31 3
3 3!(31 3)! 3!28! 3 2 1 28! 31 5 29 4495
Excel command: =combin(31,3)
22
The Binomial Formula
Eg: MC Quiz
P(X) = Probability of X successes in n trials,
(n=5, π=0.2)
with probability of success π on each
trial X P(X)
0 0.32768
1 0.4096
X = Number of ‘successes’ in sample, 2 0.2048
(X = 0, 1, 2, ..., n) 3 0.0512
4 0.0064
n = Sample size (or number of trials)
5 0.00032
π = Probability of “success”
Q: Find E(X)
23
The Binomial Formula
Probability of a particular
No. of experimental sequence of trial outcomes
outcomes providing exactly with x successes in n trials
x successes in n trials
24
Eg: Quality Control
Excel command:
=binomdist(X,n,π,cumulative)
• ANSWER
25
Properties of the Binomial Dist
Properties (again)
Identical trials
The probability ___ is constant for each observation
Eg: Probability of getting a tail
Observations are independent
26
Shape of the Binomial Dist
Eg: MC Quiz Again
Is it a symmetric distribution?
27
Shape of the Binomial Dist
Conditions for Symmetry
A binomial variable follows a
symmetric distribution if
1. π = 0.5, or
2. Both nπ and n(1-π) > 5
If (2) is satisfied, the binomial
would look like a normal distribution
Mean:
μ E(X) n
Variance: σ 2 n (1 - )
Standard Deviation: σ nπ (1 - π )
(a) symmetric
(b) asymmetric
(c) all
29
The Binomial Dist Characteristics
Eg1
Shape?
Eg2
30