Documente Academic
Documente Profesional
Documente Cultură
- Binomial Distribution
Lecture sixth
Conditional Probability and Independence
The Venn diagram the part (a) the unconditional probability P(A). P(A) is
illustrated by considering the event A in proportion to the entire sample space,
which is represented by the rectangle. (b) The diagram represents the conditional
probability P(A|B). Since the event B is known to occur, the event B now becomes
the sample space. For the event A to occur, the outcome must be in the intersection
A ∩ B. The conditional probability P(A|B) is therefore illustrated by considering
the intersection A ∩ B in proportion to the entire event B
1
Example1: Compute the conditional probability P(diameter OK | length too long).
Is this the same as the unconditional probability P(diameter OK)?
The unconditional probability P(diameter OK) is computed on the basis of all 1000
outcomes in the sample space and is equal to 928/1000 = 0.928. In this case, the
conditional probability differs from the unconditional probability.
In the answer 25/40, the denominator, 40, represents the number of outcomes that
satisfy the condition that the rod is too long, while the numerator, 25, represents
the number of outcomes that satisfy both the condition that the rod is too long and
that its diameter is OK. If we divide both the numerator and denominator of this
answer by the number of outcomes in the full sample space, which is 1000, we
obtain
Now 40/1000 represents the probability of satisfying the condition that the rod is
too long. That is,
The quantity 25/1000 represents the probability of satisfying both the condition
that the rod is too long and that the diameter is OK. That is,
2
P(diameter OK and length too long) = 25/1000,We can now express the
conditional probability as P(diameter OK | length too long) = P(diameter OK and
length too long)/ P(length too long)
Solution
(a)The given that P(flaw on side) = 0.02, P(flaw on top) = 0.03, and P(flaw on
(c) Let A be the event that a can has a flaw on the top
and let B be the event that a can has a flaw on the side.
3
(d)
P(flaw on side) = 0.02, and P(flaw on side and flaw on top) =0.01
nPn = n!.
4
Example3
Winnipeg. How many different sequences or orders of visiting these three plants
are possible?
5
n1 are the same of one class, n2 are the same of a second class, and n3 are the same
of a third class, such that n1 + n2 + n3 = 1, the number n of permutations is.
Example
A machinist produces 22 items during a shift. Three of the 22 items are defective
and the rest are not defective. In how many different orders can the 22 items be
arranged if all the defective items are considered identical and all the non-defective
items are identical of a different class?
Answer: The number of ways of arranging 3 defective items and 19 non defective
items is
6
(c )Combinations are similar to permutations, but with the important difference
that combinations take no account of order. Thus, AB and BA are different
permutations but the same combination of letters. Then the number of
permutations must be larger than the number of combinations, and the ratio
between them must be the number of ways the chosen items can be arranged.
Say on an examination we have to do any eight questions out
of ten. The number of permutations of questions would be
nCr gives the number of equally likely ways of choosing r items from a group of n
distinguishable items. That can be used with the classical approach to probability.
Solution Since the order of the five chosen people does not matter, we need to
compute the number of combinations of 5 chosen from 30. This is
7
Choosing a combination of k objects from a set of n divides the n objects into
two subsets: the k that were chosen and the n − k that were not chosen
Sometimes a set is to be divided up into more than two subsets
For example, assume that in a class of 12 students, a project is assigned in
which the students will work in groups. Three groups are to be formed,
consisting of five, four, and three students. We can calculate the number of
ways in which the groups can be formed as follows. We consider the process of
dividing the class into three groups as a sequence of two operations. The first
operation is to select a combination of 5 students to make up the group of 5.
The second operation is to select a combination of 4 students from the
remaining 7 to make up the group of 4. The group of 3 will then automatically
consist of the 3 students who are left. The number of ways to perform the first
operation is
After the first operation has been performed, the number of ways to perform the
second operation is
The total number of ways to perform the sequence of two operations is therefore
8
Probability Functions and Distribution Functions
The possible values of a discrete random variable, X, are x0, x1, x2, ... xk, and
the corresponding probabilities are p(x0), p(x1), p(x2) ... p(xk). Then for any
choice of i,
9
(b) Cumulative Distribution Functions
The functional relationship between the cumulative probability and the upper limit,
x, is called the cumulative distribution function, or the probability distribution
function.
In general,
10
Binomial Distribution
This important distribution applies in some cases to repeated trials where there are
only two possible outcomes: heads or tails, success or failure, defective item or
good item, or many other possible pairs. The probability of each outcome can be
calculated using the multiplication rule, perhaps with a tree diagram, but it is
usually much faster and more convenient to use a general formula
• All trials have the same probability for a particular outcome in a single trial.
• The number of trials, n, must be fixed, regardless of the outcome of each trial.
All items from a production line are tested as they are produced. Each item is
classified as either defective (D) or good (G). There are no other possible
outcomes. Pr[D] = 0.100, Pr[G] = 1 – Pr[D] = 0.900. Let us consider all the
possible results for a sample consisting of three items, calculating their
probabilities from basic principles using the multiplication rule
11
Notice that the outcome containing three good items appeared once, and so did the
outcome containing three defective items. The outcome containing two good items
and one defective appeared three times, which is the number of permutations of
two items of one class and one item of another class. The outcome containing one
good item and two defectives also appears three times (as D D G, G D D, and D G
D); again, this is the number of permutations of one item of one class and two
items of another class.
Now we’ll develop more general results. Let the probability that an item is
defective be p. Let the probability that an item is good be q, such that q = 1 – p.
Notice that the definitions of p and q can be interchanged, and other terms such as
“success” and “failure” can be used instead (and often are). Let the fixed number
of trials be n. The probability that all n items are defective is pn. The probability
that exactly r items are defective and (n–r) items are good, in any one sequence, is
pr q(n–r). But r defective items and (n–r) good items can be arranged in various
ways. How many different orders are possible? This is the number of permutations
into two classes, consisting of r defective items and (n–r) good items, respectively
But this is exactly the expression for the number of combinations of n items taken r
at a time, nCr. Then the general expression for the probability of exactly r defective
items (or successes, heads, etc.) in any order in n trials must be pr q(n–r) multiplied
by nCr, or
12
The left-hand side of this equation should be read as the probability that exactly r
items are defective (or successes, heads, etc.). The name given to this discrete
probability distribution is the binomial distribution. This name arises because the
expression for probability in equation 5.9 is the same as the (n+1)th term in the
binomial expansion of (q+p)n .
13
Example
On the basis of past experience, the probability that a certain electrical component
will be satisfactory is 0.98. The components are sampled item by item from
continuous production. In a sample of five components, what are the probabilities
of finding (a) zero, (b) exactly one, (c) exactly two, (d) two or more defectives?
=1 – 0.9039 – 0.0922
= 0.0038.
14
Shape of the Binomial Distribution
The Figure above compares the shapes of the distributions for p equal to 0.05,
0.50, and 0.95, all for n equal to 5. When p is close to zero or one, the distribution
is very skewed, and the distribution for p equal to p1 is the mirror image of the
distribution for p equal to (1–p1). When p is equal to 0.500, the distribution is
symmetrical.
15
Expected Mean and Standard Deviation
For the binomial distribution, from above equation the probability of r “successes”
in n trials is given by
Then
Thus, the mean value of the binomial distribution is the product of the number of
trials and the probability of “success” in a single trial. This seems to be intuitively
for any discrete probability distribution correct.
Substituting for the probability for the binomial distribution and following through
the algebra a gives
or
16
The standard deviation is always given by the square root of the corresponding
Example
Twelve doughnuts sampled from a manufacturing process are weighed each day.
The probability that a sample will have no doughnuts weighing less than the design
weight is 6.872%. a) What is the probability that a sample of twelve doughnuts
contains exactly three doughnuts weighing less than the design weight? b) What is
the probability that the sample contains more than three doughnuts weighing less
than the design weight? c) In a sample of twelve doughnuts, what is the expected
number of doughnuts weighing less than the design weight?
Assuming that Pr [a single doughnut < design weight] is the same for all doughnuts
and that weights of doughnuts vary randomly, the binomial distribution will apply.
Let this probability that a single doughnut will weigh less than the design weight
be p.
17
18