Independence and Bernoulli Trials: Independence: Events A and B Are Independent If
Independence and Bernoulli Trials: Independence: Events A and B Are Independent If
⎛ n ⎞ n
P ⎜⎜ ∩ Aik ⎟⎟ = ∏ P( A ik ). (2-3)
⎝ k =1 ⎠ k =1
3
• Let
A = A1 ∪ A2 ∪ A3 ∪ ∪ An , (2-4)
a union of n independent events. Then by De-Morgan’s
law
A = A1 A 2 An
and using their independence
n n
P ( A ) = P ( A1 A 2 An ) = ∏ P ( A ) = ∏ (1 − P ( A )) . (2-5)
i =1
i
i =1
i
4
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.
s1
s2
Input Output
s3
Fig.2.1
Solution: a. Let Ai = “Switch Si is closed”. Then P ( Ai ) = p ,
i = 1 → 3 . Since switches operate independently, we have
P ( Ai A j ) = P ( Ai ) P ( A j ); P ( A1 A2 A3 ) = P ( A1 ) P ( A2 ) P ( A3 ).
5
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.,
R = A1 ∪ A2 ∪ A3 . (2-7)
Using (2-3) - (2-6),
P( R) = P( A1 ∪ A2 ∪ A3 ) = 1 − (1 − p)3 = 3 p − 3 p 2 + p3. (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
P ( R ) = P ( R | A1 ) P ( A1 ) + P ( R | A1 ) P ( A1 ). (2-9)
But P ( R | A1 ) = 1, and P ( R | A1 ) = P ( A2 ∪ A3 ) = 2 p − p 2
and using these in (2-9) we obtain
P ( R ) = p + ( 2 p − p 2 )(1 − p ) = 3 p − 3 p 2 + p 3 , (2-10)
which agrees with (2-8).
6
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, P ( A1 ) + P ( A2 ) + P ( A3 ) ≠ 1 .
b. We need P ( A1 | R ). From Bayes’ theorem
P ( R | A1 ) P ( A1 ) ( 2 p − p 2 )(1 − p ) 2 − 2 p + p 2 (2-11)
P ( A1 | R ) = = = .
P( R) 3p − 3p + p
2 3
3p − 3p + p
2 3
7
Repeated Trials
Consider two independent experiments with associated
probability models (Ω1, F1, P1) and (Ω2, F2, P2). Let
ξ∈Ω1, η∈Ω2 represent elementary events. A joint
performance of the two experiments produces an
elementary events ω = (ξ, η). How to characterize an
appropriate probability to this “combined event” ?
Towards this, consider the Cartesian product space
Ω = Ω1× Ω2 generated from Ω1 and Ω2 such that if
ξ ∈ Ω1 and η ∈ Ω2 , then every ω in Ω is an ordered pair
of the form ω = (ξ, η). To arrive at a probability model
we need to define the combined trio (Ω, F, P).
8
Suppose A∈F1 and B ∈ F2. Then A × B is the set of all pairs
(ξ, η), where ξ ∈ A and η ∈ B. Any such subset of Ω
appears to be a legitimate event for the combined
experiment. Let F denote the field composed of all such
subsets A × B together with their unions and compliments.
In this combined experiment, the probabilities of the events
A × Ω2 and Ω1 × B are such that
P ( A × Ω 2 ) = P1 ( A), P (Ω1 × B ) = P2 ( B ). (2-12)
12
Thus
P(" A occurs exactly k times in n trials" )
N
= ∑ P0 (ωi ) = NP0 (ω ) = Np k q n −k , (2-21)
i =1
13
represents the number of combinations, or choices of n
identical objects taken k at a time. Using (2-22) in (2-21),
we get
Pn (k ) = P(" A occurs exactly k times in n trials" )
⎛ n ⎞ k n −k
= ⎜⎜ ⎟⎟ p q , k = 0,1,2, , n, (2-23)
⎝k ⎠
a formula, due to Bernoulli.
Independent repeated experiments of this nature, where the
outcome is either a “success” ( = A) or a “failure” ( = A)
are characterized as Bernoulli trials, and the probability of
k successes in n trials is given by (2-23), where p
represents the probability of “success” in any one trial.
14
Example 2.3: Toss a coin n times. Obtain the probability
of getting k heads in n trials ?
Solution: We may identify “head” with “success” (A) and
let p = P (H ). In that case (2-23) gives the desired
probability.
Example 2.4: Consider rolling a fair die eight times. Find
the probability that either 3 or 4 shows up five times ?
Solution: In this case we can identify
"success" = A = { either 3 or 4 } = { f 3 } ∪ { f 4 }.
Thus
1 1 1
P ( A) = P ( f 3 ) + P ( f 4 ) = + = ,
6 6 3
and the desired probability is given by (2-23) with n = 8 , k = 5
and p = 1/ 3. Notice that this is similar to a “biased coin”
problem. 15
Bernoulli trial: consists of repeated independent and
identical experiments each of which has only two outcomes A
or A with P ( A) = p, and P( A) = q. The probability of exactly
k occurrences of A in n such trials is given by (2-23).
Let
X k = " exactly k occurrence s in n trials" . (2-24)
16
n
⎛ n ⎞ k n−k
n
P(X 0 ∪ X1 ∪ ∪ X n) = ∑k =0
P ( X k ) = ∑ ⎜⎜ ⎟⎟ p q
k =0 ⎝ k ⎠
. (2-26)
k
Fig. 2.2
17
Pn ( k − 1) n ! p k −1 q n − k + 1 ( n − k )! k ! k q
= k n −k
= . (2-28)
Pn ( k ) ( n − k + 1)! ( k − 1)! n! p q n − k +1 p
Thus Pn ( k ) ≥ Pn ( k − 1 ), if k (1 − p ) ≤ ( n − k + 1 ) p or k ≤ ( n + 1) p .
Thus Pn ( k ) as a function of k increases until
k = ( n + 1) p (2-29)
18
Solution: With X i , i = 0 ,1, 2 , , n , as defined in (2-24),
clearly they are mutually exclusive events. Thus
P(" Occurrence s of A is between k1 and k2 " )
k2 k2
⎛ n ⎞ k n −k
= P( X k1 ∪ X k1 +1 ∪ ∪ X k2 ) = ∑ P ( X k ) = ∑ ⎜⎜ ⎟⎟ p q . (2-30)
k = k1 k = k1 ⎝ k ⎠
19
Using (2-30), the desired probability is given by
400
P (Y0 ∪ Y1 ∪ ∪ Y400 ) = ∑ P (Y
k =0
k )
(2-31)
⎛ 5000 ⎞
400
= ∑ ⎜⎜ ⎟⎟ ( 0 .1) k ( 0 .9 ) 5000 − k .
k =0 ⎝ k ⎠
20