Professional Documents
Culture Documents
Week 8 Extra Slidespdf
Week 8 Extra Slidespdf
Examples
1. The simplest Bernoulli trial is the toss of a coin.
The two outcomes are heads and tails. If we define
heads to be the success outcome, then p is the
probability that the coin comes up heads. For a fair
coin, p = 0.5.
2. Another Bernoulli trial is a selection of a
component from a population of components, some
of which are defective. If we define “success” to be
a defective component, then p is the proportion of
defective components in the population.
X ~ Bernoulli(p)
For any Bernoulli trial, we define a random variable X
as follows:
0(1 p ) 1( p ) p
X
X2 (0 p) 2 (1 p) (1 p) 2 ( p) p(1 p)
Example
Example
Mean: X = np
Variance: np(1 p)
2
X
Example
Example
A large chain retailer purchases a certain kind of electronic
device from a manufacturer. The manufacturer indicates that
the defective rate of the device is 3%.
a) The inspector randomly picks 20 items from a shipment.
What is the probability that there will be at least one
defective item among these 20?
b) Suppose that the retailer receives 10 shipments in a
month and the inspector randomly tests 20 devices per
shipment. What is the probability that there will be exactly 3
shipments each containing at least one defective device
among the 20 that are selected and tested from the
shipment?
Mean: X = λ
Variance: X2
Example
Particles are suspended in a liquid medium at a
concentration of 10 particles per mL. A large volume of
the suspension is thoroughly agitated, and then 1 mL is
withdrawn. What is the probability that exactly eight
particles are withdrawn?
Example
Particles are suspended in a liquid medium at a
concentration of 6 particles per mL. A large volume of
the suspension is thoroughly agitated, and then 3 mL are
withdrawn. What is the probability that exactly 15
particles are withdrawn?
Example
Grandma bakes chocolate chip cookies in batches of
100. She puts 300 chips into the dough. When the
cookies are done, she gives you one. What is the
probability that your cookie contains no chocolate
chips?
Hypergeometric Distribution
Hypergeometric
• For this reason the trials are not independent, so
the number of successes in the sample does not
follow a binomial distribution.
• The distribution that properly describes the
number of successes is the hypergeometric
distribution.
Hypergeometric pmf
Assume a finite population contains N items, of which R
are classified as successes and N – R are classified as
failures. Assume that n items are sampled from this
population, and let X represent the number of successes
in the sample. Then X has a hypergeometric
distribution with parameters N, R, and n, which can be
denoted X ~ H(N, R, n).
Hypergeometric pmf
The probability mass function of X is
R N R
x
n x , max(0, R n N ) x min(n, R )
p( x) P( X x) N
n
0, otherwise
Hypergeometric Distribution
If X ~ H(N, R, n), then
nR
Mean of X: X
N
R R N n
Variance of X: n 1
2
N N N 1
X
Example
Of 50 buildings in an industrial park, 12 have electrical
code violations. If 10 buildings are selected at random
for inspection, what is the probability that exactly 3 of
the 10 have code violations? What are the mean and
variance of X?
Geometric Distribution
• Assume that a sequence of independent Bernoulli
trials is conducted, each with the same probability of
success, p.
• Let X represent the number of trials up to and
including (until) the first success.
• Then X is a discrete random variable, which is said to
have the geometric distribution with parameter p.
• We write X ~ Geom(p).
The pmf of X is
p (1 p ) x 1 , x 1, 2,...
p( x) P( X x)
0, otherwise
1
The mean of X is X .
p
1 p
The variance of X is X2 2
.
p
McGraw-Hill ©2014 by The McGraw-Hill Companies, Inc. All rights reserved.
4-26
Example
A test of weld strength involves loading welded joints
until a fracture occurs. For a certain type of weld, 80%
of the fractures occur in the weld itself, while the other
20% occur in the beam. A number of welds are tested.
Let X be the number of tests up to and including the first
test that results in a beam fracture.
a) What is the distribution of X?
b) Find P(X = 3).
c) What are the mean and variance of X?
Example
In a test of weld strength, 80% of tests result in a
fracture in the weld, while the other 20% result in a
fracture in the beam. Let X denote the number of tests
up to and including the third beam fracture.
a) What is the distribution of X?
b) Find P(X = 8).
c) Find the mean and variance of X.