Independence and Bernoulli Trials: Independence: Events A and B Are Independent If
Independence and Bernoulli Trials: Independence: Events A and B Are Independent If
or
(2-3)
2
• Let
(2-4)
a union of n independent events. Then by De-Morgan’s
law
(2-5)
Thus for any A as in (2-4)
(2-6)
a useful result.
We can use these results to solve an interesting number
theory problem.
3
Example 2.1: Three switches connected in parallel operate
independently. Each switch remains closed with probability
p. (a) Find the probability of receiving an input signal at the
output. (b) Find the probability that switch S1 is open given
that an input signal is received at the output.
Input Output
Fig.2.1
Solution: a. Let Ai = “Switch Si is closed”. Then
Since switches operate independently, we have
4
Let R = “input signal is received at the output”. For the
event R to occur either switch 1 or switch 2 or switch 3
must remain closed, i.e.,
(2-7)
Using (2-3) - (2-6),
(2-8)
We can also derive (2-8) in a different manner. Since any
event and its compliment form a trivial partition, we can
always write
(2-9)
But and
and using these in (2-9) we obtain
(2-10)
which agrees with (2-8). 5
Note that the events A1, A2, A3 do not form a partition, since
they are not mutually exclusive. Obviously any two or all
three switches can be closed (or open) simultaneously.
Moreover,
b. We need From Bayes’ theorem
2
𝑃(𝑅∨ 𝐴 ) 𝑃( 𝐴 ) (2 𝑝 − 𝑝 )(1− 𝑝) 2 𝑝 −3 𝑝2 + 𝑝3
𝑃( 𝐴 1∨𝑅)= 1 1
= 2 3
= 2 3
. (2-11)
𝑃(𝑅) 3 𝑝 −3 𝑝 + 𝑝 3 𝑝 −3 𝑝 + 𝑝
6
Independent repeated experiments, where the outcome is
either a “success” or a “failure” are characterized as
Bernoulli trials, and the probability of k successes in n
trials is given by (2-12), where p represents the
probability of “success” in any one trial.
(2-12)
7
Bernoulli trial: consists of repeated independent and
identical experiments each of which has only two outcomes A
or with and The probability of exactly
k occurrences of A in n such trials is
Let
(2-13)
Fig. 2.2 9
(2-17)
Thus if or
Thus as a function of k increases until
(2-18)
(2-19)
11
Using (2-19), the desired probability is given by
(2-20)
(2-32)
or
(2-33)
12
Exercise
A company has three machines B1, B2, and B3 for making
1 k resistors. It has been observed that 80% of resistors
produced by B1 are within 50 Ω of the nominal value.
Machine B2 produces 90% of resistors within 50 of the
nominal value. The percentage for machine B3 is 60%.
Each hour, machine B1 produces 3000 resistors, B2
produces 4000 resistors, and B3 produces 3000 resistors.
All of the resistors are mixed together at random in one bin
and packed for shipment. What is the probability that the
company ships a resistor that is within 50 of the nominal
value?
13
In the previous example about a shipment of resistors from the
factory, we learned that:
• The probability that a resistor is from machine B3 is P[B3] =
0.3.
• The probability that a resistor is acceptable, i.e., within 50 of
the nominal value, is P[A] = 0.78.
• Given that a resistor is from machine B3, the conditional
probability that it is acceptable is P[A|B3] = 0.6.
What is the probability that an acceptable resistor comes from
machine B 3?
14
In the previous example, we found that a randomly tested
resistor was acceptable with probability P[A] = 0.78. If we
randomly test 100 resistors, what is the probability of the event
that i resistors test acceptable?
15