Professional Documents
Culture Documents
03.1 Probability Distribution
03.1 Probability Distribution
x = {0, 1, 2}
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 4
DEPARTMENT of
STATISTICS Random Variable example
X=x P(X=x)=f(x)
0 P(X=0) = f(0) = 1/4
x = {0, 1, 2} probability
1 P(X=1) = f(1) = 2/4
2 P(X=2) = f(2) = 1/4
1
, 𝑥 = 0,2
𝑃 𝑋=𝑥 =𝑓 𝑥 = 4
2 PROBABILITY
,𝑥 = 1 DISTRIBUTION
4
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 8
DEPARTMENT of
STATISTICS Probability Distribution
1. 0 ≤ 𝑓 x ≤ 1 or 0 ≤ 𝑃 𝑋 = 𝑥 ≤ 1
- the probability for every x should be from 0 to 1
𝜇𝑥 = 𝐸 𝑋 = [𝑥 ∙ 𝑓 𝑥 ]
Properties:
• 𝐸 𝑐 =𝑐
• 𝐸 𝑐𝑋 = 𝑐𝐸[𝑋] Note: c is any constant
number
• 𝐸[𝑋 ± 𝑌] = 𝐸[𝑋] ± 𝐸[𝑌]
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 11
DEPARTMENT of
STATISTICS Mean of a Random Variable
r.e. – tossing two coins X=x P(X=x)=f(x)
Let x – number of heads 0 P(X=0)=f(0)=1/4
x = {0, 1, 2} 1 P(X=1)=f(1)=2/4
2 P(X=2)=f(2)=1/4
Find the expected value of the number of heads
𝜇𝑥 = 𝐸 𝑋 = [𝑥 ∙ 𝑓 𝑥 ]
𝐸 𝑋 = 𝑥1 ∙ 𝑓 0 + 𝑥2 ∙ 𝑓 1 + 𝑥3 ∙ 𝑓 2
1 2 1
= 0∙4 + 1∙4 + 2∙4
2 2 Hence, the expected value of the number
𝐸 𝑋 =0+ + =𝟏 of heads is 1
4 4
Note: expected value can be more or less than 1 STAT2205 - INTRODUCTION TO BIOSTATISTICS | 12
DEPARTMENT of
STATISTICS Variance of a Random Variable
𝜎𝑥2 = 𝑉 𝑋
= 𝐸 𝑋2 − 𝐸 𝑋 2
where
𝐸 𝑋 2 = σ[𝑋 2 ∙ 𝑓(𝑥)]
1 2 1 2 4 𝟔
𝐸 𝑋2 = 02 2 2
∙ + 1 ∙ + 2 ∙ = 0 + + = = 𝟏. 𝟓
4 4 4 4 4 𝟒
Hence, the variance of the
𝜎𝑥2 = 𝑉 𝑋 = 𝐸 𝑋 2 − 𝐸 𝑋 2 = 1.5 − 1 = 𝟎. 𝟓 number of heads is 0.5
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 14
DEPARTMENT of
STATISTICS
Values
Example
Symbol Definition Definition X=1, 2, 3, 4, 5
X=1, 2, 3, 4, 5
𝑃 𝑥 ≥1 =𝑃 𝑥 =1 +𝑃 𝑥 =2
=𝑓 1 +𝑓 2
2 1 3
𝑃 𝑥 ≥ 1 = + = = 𝟎. 𝟕𝟓 𝐨𝐫 𝟕𝟓%
4 4 4
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 17
DEPARTMENT of
STATISTICS Cumulative Probability
r.e. – tossing two coins X=x P(X=x)=f(x)
Let x – number of heads 0 P(X=0)=f(0)=1/4
x = {0, 1, 2} 1 P(X=1)=f(1)=2/4
2 P(X=2)=f(2)=1/4
b) Find the probability of obtaining at most 2 heads.
𝑃 𝑥 ≤2 =𝑃 𝑥 =0 +𝑃 𝑥 =1 +𝑃 𝑥 =2
=𝑓 0 +𝑓 1 +𝑓 2
1 2 1 4
𝑃 𝑥 ≤ 2 = + + = = 𝟏 𝐨𝐫 𝟏𝟎𝟎%
4 4 4 4
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 18
DEPARTMENT of
STATISTICS Probability Distribution
Number of Refill X 0 1 2 3
Probability P(X) 30% 40% 20% 10%
b) 𝜎 = 0.89=0.94
Probability
Distribution
Discrete Continuous
Probability Probability
Distribution Distribution
1. Uniform
2. Binomial
3. Poisson
• rectangular distribution
1
𝑃 𝑋 = 𝑥 = 𝑓 𝑥 = 𝑈 𝑥; 𝑁 =
𝑁
𝑁+1
E[𝑋] =
2
𝑁2 − 1
V[𝑋] =
12
𝑃 𝑥 ≤ 10 = 𝑓 1 + 𝑓 2 + 𝑓 3 + 𝑓 4 + 𝑓 5 +
𝟏𝟎
𝑓 6 + 𝑓 7 + 𝑓 8 + 𝑓 9 + 𝑓 10 = 𝟓𝟎 = 𝟎. 𝟐𝟎
𝑃 𝑋 = 𝑥 = 𝑓 𝑥 = 𝐵 𝑥; 𝑛, 𝑝
𝑛 𝑥 𝑛−𝑥
= ∙𝑝 ∙𝑞
𝑥
=.𝑛 𝐶𝑥 ∙ 𝑝 𝑥 ∙ 𝑞𝑛−𝑥
𝑤ℎ𝑒𝑟𝑒: 𝑥 = 0,1, … , 𝑛
𝑞 =1−𝑝
𝐸 𝑋 = 𝑛𝑝
𝑉 𝑋 = 𝑛𝑝𝑞
Conditions:
• rate of occurrence is constant & known over
time/space
• independent occurrences
• simultaneous occurrences are nearly impossible (rare)
−𝝀 𝑥
𝑒 𝝀
𝑃 𝑋 = 𝑥 = 𝑓 𝑥 = 𝑃 𝑥; 𝝀 =
𝑥!
𝐸 𝑋 =𝝀
𝑉 𝑋 =𝝀
a) 6 days?
a) 6 days?
𝑒 −𝝀 𝝀𝑥 𝑒 −4 46
𝑃 𝑋 = 6 = 𝑓 6 = 𝑃 𝑥 = 6; 𝝀 = 𝟒 = 𝑥! = 6! = 𝟎. 𝟏𝟎𝟒𝟐
the probability that the schools in the city will be close for 6 days is 0.1042 or 10.42%
b) a day during the winter?
𝑒 −𝝀 𝝀𝑥 𝑒 −4 41
𝑃 𝑋 = 1 = 𝑓 1 = 𝑃 𝑥 = 1; 𝝀 = 𝟒 = 𝑥! = 1! = 𝟎. 𝟎𝟕𝟑𝟑
the probability that the schools in the city will be close for at least a day during the
winter is 0.0733 or 7.33%
STAT2205 - INTRODUCTION TO BIOSTATISTICS | 42
DEPARTMENT of
STATISTICS Poisson Distribution: Illustration