MAT 263 Lecture 3 - Special Discrete Distribution
MAT 263 Lecture 3 - Special Discrete Distribution
Bernoulli distribution
i) Random experiment with 1 trial.
ii) The outcome of which can be classified in
but one of two mutually exclusive and
exhaustive ways, say, success or failure
(e.g. female or male, life or death,
nondefective or defective).
iii) P (success) p
iv) P (failure) 1 p q
v) A r.v. X is the occurrence of success in 1
trial.
1
Example:
1) Toss a fair of coin.
Success = head appear
2) An observation at a junction.
Success = an accident occurs
2
Binomial distribution
i) random experiment with n identical trials.
ii) the outcome of each trial can be classified in
but one of two mutually exclusive and
exhaustive ways, say, success or failure.
iii) P (success) p
P (failure) 1 p q
iv) the probability of success is the same from
one trial to another.
v) the trials are independent.
vi) The r.v. X is the total number of successes
in n (Bernoulli) trials.
n x n x
p (1 p ) ; x 0,1,, n
f ( x) x
0
; otherwise
where
n n n!
x Cx x !(n x)!
n! n(n 1)(n 1)(2)(1)
3
Example:
1) Toss a fair coin 10 times.
success = obtain head
P ( H ) 1/ 2 for each toss.
3) 6 observations at a junction.
success = accident and P(accident) is the
same for each observation.
4
Exercise: A student is given a quiz which consists
of 10 questions true false. Assuming that the
student is not ready and answers the questions by
guessing,
5
Refer: New Cambridge table
Binomial table: page 4 – 23
Table gives:
F (r ) P( X r )
r
p x q n x
x 0
6
Example: Given m.g.f. of X as
mX (t ) (0.3 et 0.7 )6 .
Find the mean, variance and p.d.f. of X .
7
Example: A box of N marbles consists of K glass
marbles and N K stone marbles of the same size.
A marble is selected at random from the box, its
type is noted. Then the marble is returned into the
box. n trials are performed. If X the number of
glass marble selected, find the distribution of X .
8
Example: Refer to previous example. Let us take a
random sample of n marbles. The number of each
type of marbles are observed and the marbles are
not returned into the box. If out of n selected
marbles, X are glass marbles and n X are stone
marbles. Find the distribution of X .
N
We can sample it with ways.
n
1
Thus P (each sample) .
N
n
9
Since this process happens at the same time, there
K N K
are ways to choose X glass marbles
X n X
and n X stone marbles altogether.
K N K
x n x
P ( X x) , x ?
N
n
10
Hypergeometric distribution
n1 n2
x r x ; x 0,1, 2,, r
iv) P ( X x) n
r
0 ; otherwise
where
x r, x n1 , r x n 2
12
Geometric distribution
The p.d.f. of X is
(1 p ) x p ; x 0,1,
f ( x)
0 ; otherwise
13
If we let Y X 1, the trials on which the first
success is observed, then
14
Negative Binomial distribution
The p.d.f. of X is
x r 1 r
f ( x) p (1 p ) x ; x 0,1, 2,
r 1
x r 1 r
p (1 p ) x
; x 0,1, 2,
x
0 ; otherwise
15
P(of observing 10 fruit flies with red eyes before
the third white-eyed fruit fly is observed) =
h k (0) k
(1 w) n
w
k 0 k!
n k 1 k
w , | w | 1
k 0 k
known as negative binomial expansion
16
Example: Given the m.g.f. of a discrete r.v.
4
0.45
mX (t ) t
1 0.55 e
What is the p.d.f. of X ? E ( X ) ? Var ( X ) ?
17
Poisson distribution
Let the number of changes (events) that occur in a
given continuous interval be counted. A r.v. X is
the number of changes (events) in this unit interval.
X is said to be a Poisson r.v.. The events that are
observed in the interval are considered as ‘success’.
Notation: X ~ P ( )
The p.d.f. of X is
e x
; x 0,1, 2,
f ( x) x !
0 ; otherwise
Example:
1) the number of incoming calls in a minute.
2) the number of typo error on each page.
3) the number of micro-organism in 1 ml water.
4) the number of people that arrive at the post
office in 1 hour.
18
Example: Assume that the accidents that occur at
an iron factory follow a Poisson distribution of
mean ½ per week.
19
Poisson distribution as an approximation of
Binomial distribution
20
Thus,
n x n x e np (np ) x
f ( x) p (1 p ) approaches
x x!
if n and p 0 (small).
Example: X ~ B(300,0.02)
21