p3 Sol
p3 Sol
Li Li
1
Random variables
Bernoulli distribution
-
Binomial distribution
I
Geometric distribution
Poisson distribution
2
Bernoulli distribution
3
Bernoulli distribution
⑦
The pmf (probability mass function) of X is
x 0 1
f (x) 1 p p
where p is often called “success rate” or “probability of
success”.
• X is said to be a Bernoulli random variable.
=
• The experiment is also called a Bernoulli trial.
-
4
Mean and Variance of a Bernoulli distribution
µ =p
2
g- =
p ( t p)
- -
MHI = Ci p)-
t et -
5
Where we use Bernoulli distributions?
6
Estimation of p
7
Related distributions
8
Binomial distribution
#
in a sequence of n independent and identical Bernoulli
experiments:
• All the Bernoulli experiments have the same
success/yes/true probability p and failure/no/false
probability q = 1 p.
• All the Bernoulli experiments are independent of each
other.
9
Probability mass function
--
2 3 Binomial ( 3. p)
X O l
1) fx =D } =
- i
④
-
C i head for 3rd ton
(Itn ) .UA#i.UABc)
'
1) { x -
- I } -
-
f- lol (III. ( IP ) (
=
IP) Ifl pp
-
f- Ill = 3. p.ci#.e-pl.=3pci-p5
10
Probability mass function
11
Cumulative distribution function
12
Example
13
Mean and Variance
E(X ) = np
14
Proof for mean and variance
15
Proof for mean and variance
16
Where we use Binomial distributions?
17
Does X follow a Binomial distribution?
18
Does X follow a Binomial distribution?
Boxes of six-inch slate flooring tile contain 40 tiles per box. The
count X is the number of cracked tiles in a box. You have
noticed that most boxes contain no cracked tiles, but if there are
cracked tiles in a box, then there are usually several.
X does not follow a Binomial distribution since whether each
tile has a crack are not independent.
19
Does X follow a Binomial distribution?
20
Estimation of p
21
Definition
22
Probability mass function of Geometric
distribution
f (x) = (1 p)x 1
p where x = 1, 2, . . .
23
Example
24
Example
25
Proof of Mean and Variance
26
Proof of Mean and Variance
27
Proof of Mean and Variance
• 2 = 1 p.
p2
28
Estimation of p
29
Probability mass function
e T( T )x
f (x) = where x = 0, 1, 2, . . .
x!
For example, f (0) = e T. Denote this distribution by
Poisson( T ).
30
Definition
31
Example
32
Example
33
Example
34
Example
35
Where do we use Poisson distributions?
36
Proof of Mean and Variance
37
Proof of Mean and Variance
38
Poisson approximation to the Binomial
Binomial(n, p) ! Poisson( T ),
i.e.
e T( T )x
Cxn px (1 p)n x
! .
x!
So for those “large” Binomials (n 100) and for small p (usually
0.01), we can use a Poisson with T = np to approximate it!
39
Estimation of
40