Docsity

Probability and Stochastic Processes 3rd sol, Exercises of Engineering

Partial preview of the text

Download Probability and Stochastic Processes 3rd sol and more Exercises Engineering in PDF only on Docsity!

Probability and Stochastic Processes

A Friendly Introduction for Electrical and Computer Engineers

Third Edition

STUDENT’S SOLUTION MANUAL

(Solutions to the odd-numbered problems)

Roy D. Yates, David J. Goodman, David Famolari

August 27, 2014

Comments on this Student Solutions Manual

  • Matlab functions written as solutions to homework problems in this Stu- dent’s Solution Manual (SSM) can be found in the archive matsoln3student.zip Other Matlab functions used in the text or in these homework solutions can be found in the archive matcode3e.zip. The archives matcode3e.zip and matsoln3student.zip are available for download from the John Wiley companion website. Two other documents of interest are also available for download: - A manual probmatlab.pdf describing the .m functions in matcode.zip. - The quiz solutions manual quizsol.pdf.
  • This manual uses a page size matched to the screen of an iPad tablet. If you do print on paper and you have good eyesight, you may wish to print two pages per sheet in landscape mode. On the other hand, a “Fit to Paper” printing option will create “Large Print” output.
  • Send error reports, suggestions, or comments to

[email protected].

Problem 1.2.1 Solution

(a) An outcome specifies whether the connection speed is high (h), medium (m), or low (l) speed, and whether the signal is a mouse click (c) or a tweet (t). The sample space is

S = {ht, hc, mt, mc, lt, lc}. (1)

(b) The event that the wi-fi connection is medium speed is A 1 = {mt, mc}.

(c) The event that a signal is a mouse click is A 2 = {hc, mc, lc}.

(d) The event that a connection is either high speed or low speed is A 3 = {ht, hc, lt, lc}.

(e) Since A 1 ∩A 2 = {mc} and is not empty, A 1 , A 2 , and A 3 are not mutually exclusive.

(f) Since

A 1 ∪ A 2 ∪ A 3 = {ht, hc, mt, mc, lt, lc} = S, (2)

the collection A 1 , A 2 , A 3 is collectively exhaustive.

Problem 1.2.3 Solution

The sample space is

S = {A♣,... , K♣, A♦,... , K♦, A♥,... , K♥, A♠,... , K♠}. (1)

The event H that the first card is a heart is the set

H = {A♥,... , K♥}. (2)

The event H has 13 outcomes, corresponding to the 13 hearts in a deck.

Problem 1.2.5 Solution

Of course, there are many answers to this problem. Here are four partitions.

  1. We can divide students into engineers or non-engineers. Let A 1 equal the set of engineering students and A 2 the non-engineers. The pair {A 1 , A 2 } is a partition.
  2. We can also separate students by GPA. Let Bi denote the subset of stu- dents with GPAs G satisfying i− 1 ≤ G < i. At Rutgers, {B 1 , B 2 ,... , B 5 } is a partition. Note that B 5 is the set of all students with perfect 4. GPAs. Of course, other schools use different scales for GPA.
  3. We can also divide the students by age. Let Ci denote the subset of students of age i in years. At most universities, {C 10 , C 11 ,... , C 100 } would be an event space. Since a university may have prodigies either under 10 or over 100, we note that {C 0 , C 1 ,.. .} is always a partition.
  4. Lastly, we can categorize students by attendance. Let D 0 denote the number of students who have missed zero lectures and let D 1 denote all other students. Although it is likely that D 0 is an empty set, {D 0 , D 1 } is a well defined partition.

Problem 1.3.1 Solution

(a) A and B mutually exclusive and collectively exhaustive imply P[A] + P[B] = 1. Since P[A] = 3 P[B], we have P[B] = 1/4.

(b) Since P[A ∪ B] = P[A], we see that B ⊆ A. This implies P[A ∩ B] = P[B]. Since P[A ∩ B] = 0, then P[B] = 0.

(c) Since it’s always true that P[A ∪ B] = P[A] + P[B] − P[AB], we have that P[A] + P[B] − P[AB] = P[A] − P[B]. (1) This implies 2 P[B] = P[AB]. However, since AB ⊂ B, we can conclude that 2 P[B] = P[AB] ≤ P[B]. This implies P[B] = 0.

Problem 1.3.7 Solution

A reasonable probability model that is consistent with the notion of a shuffled deck is that each card in the deck is equally likely to be the first card. Let Hi denote the event that the first card drawn is the ith heart where the first heart is the ace, the second heart is the deuce and so on. In that case, P[Hi] = 1/ 52 for 1 ≤ i ≤ 13. The event H that the first card is a heart can be written as the mutually exclusive union

H = H 1 ∪ H 2 ∪ · · · ∪ H 13. (1)

Using Theorem 1.1, we have

P [H] =

∑^13

i=

P [Hi] = 13/ 52. (2)

This is the answer you would expect since 13 out of 52 cards are hearts. The point to keep in mind is that this is not just the common sense answer but is the result of a probability model for a shuffled deck and the axioms of probability.

Problem 1.3.9 Solution

Let si equal the outcome of the student’s quiz. The sample space is then composed of all the possible grades that she can receive.

S = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }. (1)

Since each of the 11 possible outcomes is equally likely, the probability of receiving a grade of i, for each i = 0, 1 ,... , 10 is P[si] = 1/11. The probability that the student gets an A is the probability that she gets a score of 9 or higher. That is

P [Grade of A] = P [9] + P [10] = 1/11 + 1/11 = 2/ 11. (2)

The probability of failing requires the student to get a grade less than 4.

P [Failing] = P [3] + P [2] + P [1] + P [0] = 1/11 + 1/11 + 1/11 + 1/11 = 4/ 11. (3)

Problem 1.3.11 Solution

Specifically, we will use Theorem 1.4(c) which states that for any events A and B,

P [A ∪ B] = P [A] + P [B] − P [A ∩ B]. (1)

To prove the union bound by induction, we first prove the theorem for the case of n = 2 events. In this case, by Theorem 1.4(c),

P [A 1 ∪ A 2 ] = P [A 1 ] + P [A 2 ] − P [A 1 ∩ A 2 ]. (2)

By the first axiom of probability, P[A 1 ∩ A 2 ] ≥ 0. Thus,

P [A 1 ∪ A 2 ] ≤ P [A 1 ] + P [A 2 ]. (3)

which proves the union bound for the case n = 2.Now we make our induction hypothesis that the union-bound holds for any collection of n − 1 subsets. In this case, given subsets A 1 ,... , An, we define

A = A 1 ∪ A 2 ∪ · · · ∪ An− 1 , B = An. (4)

By our induction hypothesis,

P [A] = P [A 1 ∪ A 2 ∪ · · · ∪ An− 1 ] ≤ P [A 1 ] + · · · + P [An− 1 ]. (5)

This permits us to write

P [A 1 ∪ · · · ∪ An] = P [A ∪ B] ≤ P [A] + P [B] (by the union bound for n = 2) = P [A 1 ∪ · · · ∪ An− 1 ] + P [An] ≤ P [A 1 ] + · · · P [An− 1 ] + P [An] (6)

which completes the inductive proof.

(b) The probability of one handoff is P[H 1 ] = P[H 1 B] + P[H 1 L] = 0.2. The probability that a call with one handoff will be long is

P [L|H 1 ] =

P [H 1 L]

P [H 1 ]

(c) The probability a call is long is P[L] = 1 − P[B] = 0.4. The probability that a long call will have one or more handoffs is

P [H 1 ∪ H 2 |L] =

P [H 1 L ∪ H 2 L]

P [L]

P [H 1 L] + P [H 2 L]

P [L]

Problem 1.4.3 Solution

Since the 2 of clubs is an even numbered card, C 2 ⊂ E so that P[C 2 E] = P[C 2 ] = 1/3. Since P[E] = 2/3,

P [C 2 |E] =

P [C 2 E]

P [E]

The probability that an even numbered card is picked given that the 2 is picked is

P [E|C 2 ] =

P [C 2 E]

P [C 2 ]

Problem 1.4.5 Solution

The first generation consists of two plants each with genotype yg or gy. They are crossed to produce the following second generation genotypes, S = {yy, yg, gy, gg}. Each genotype is just as likely as any other so the probabil- ity of each genotype is consequently 1/4. A pea plant has yellow seeds if it

possesses at least one dominant y gene. The set of pea plants with yellow seeds is

Y = {yy, yg, gy}. (1)

So the probability of a pea plant with yellow seeds is

P [Y ] = P [yy] + P [yg] + P [gy] = 3/ 4. (2)

Problem 1.4.7 Solution

The sample outcomes can be written ijk where the first card drawn is i, the second is j and the third is k. The sample space is

S = { 234 , 243 , 324 , 342 , 423 , 432 }. (1)

and each of the six outcomes has probability 1/6. The events E 1 , E 2 , E 3 , O 1 , O 2 , O 3 are

E 1 = { 234 , 243 , 423 , 432 } , O 1 = { 324 , 342 } , (2) E 2 = { 243 , 324 , 342 , 423 } , O 2 = { 234 , 432 } , (3) E 3 = { 234 , 324 , 342 , 432 } , O 3 = { 243 , 423 }. (4)

(a) The conditional probability the second card is even given that the first card is even is

P [E 2 |E 1 ] =

P [E 2 E 1 ]

P [E 1 ]

P [243, 423]

P [234, 243 , 423 , 432]

(b) The conditional probability the first card is even given that the second card is even is

P [E 1 |E 2 ] =

P [E 1 E 2 ]

P [E 2 ]

P [243, 423]

P [243, 324 , 342 , 423]

Problem 1.5.3 Solution

(a) For convenience, let pi = P[F Hi] and qi = P[V Hi]. Using this short- hand, the six unknowns p 0 , p 1 , p 2 , q 0 , q 1 , q 2 fill the table as

H 0 H 1 H 2 F p 0 p 1 p 2 V q 0 q 1 q 2

However, we are given a number of facts:

p 0 + q 0 = 1/ 3 , p 1 + q 1 = 1/ 3 , (2) p 2 + q 2 = 1/ 3 , p 0 + p 1 + p 2 = 5/ 12. (3)

Other facts, such as q 0 + q 1 + q 2 = 7/12, can be derived from these facts. Thus, we have four equations and six unknowns, choosing p 0 and p 1 will specify the other unknowns. Unfortunately, arbitrary choices for either p 0 or p 1 will lead to negative values for the other probabilities. In terms of p 0 and p 1 , the other unknowns are

q 0 = 1/ 3 − p 0 , p 2 = 5/ 12 − (p 0 + p 1 ), (4) q 1 = 1/ 3 − p 1 , q 2 = p 0 + p 1 − 1 / 12. (5)

Because the probabilities must be nonnegative, we see that

0 ≤ p 0 ≤ 1 / 3 , (6) 0 ≤ p 1 ≤ 1 / 3 , (7) 1 / 12 ≤ p 0 + p 1 ≤ 5 / 12. (8)

Although there are an infinite number of solutions, three possible solu- tions are:

p 0 = 1/ 3 , p 1 = 1/ 12 , p 2 = 0, (9) q 0 = 0, q 1 = 1/ 4 , q 2 = 1/ 3. (10)

and

p 0 = 1/ 4 , p 1 = 1/ 12 , p 2 = 1/ 12 , (11) q 0 = 1/ 12 , q 1 = 3/ 12 , q 2 = 3/ 12. (12)

and

p 0 = 0, p 1 = 1/ 12 , p 2 = 1/ 3 , (13) q 0 = 1/ 3 , q 1 = 3/ 12 , q 2 = 0. (14)

(b) In terms of the pi, qi notation, the new facts are p 0 = 1/4 and q 1 = 1/6. These extra facts uniquely specify the probabilities. In this case,

p 0 = 1/ 4 , p 1 = 1/ 6 , p 2 = 0, (15) q 0 = 1/ 12 , q 1 = 1/ 6 , q 2 = 1/ 3. (16)

Problem 1.6.1 Solution

This problems asks whether A and B can be independent events yet satisfy A = B? By definition, events A and B are independent if and only if P[AB] = P[A] P[B]. We can see that if A = B, that is they are the same set, then

P [AB] = P [AA] = P [A] = P [B]. (1)

Thus, for A and B to be the same set and also independent,

P [A] = P [AB] = P [A] P [B] = (P [A])^2. (2)

There are two ways that this requirement can be satisfied:

  • P[A] = 1 implying A = B = S.
  • P[A] = 0 implying A = B = φ.

Problem 1.6.7 Solution

(a) Since A ∩ B = ∅, P[A ∩ B] = 0. To find P[B], we can write

P [A ∪ B] = P [A] + P [B] − P [A ∩ B] (1) or 5 /8 = 3/8 + P [B] − 0. (2)

Thus, P[B] = 1/4. Since A is a subset of Bc, P[A ∩ Bc] = P[A] = 3/8. Furthermore, since A is a subset of Bc, P[A ∪ Bc] = P[Bc] = 3/4.

(b) The events A and B are dependent because

P [AB] = 0 6 = 3/32 = P [A] P [B]. (3)

Problem 1.6.9 Solution

For a sample space S = { 1 , 2 , 3 , 4 } with equiprobable outcomes, consider the events

A 1 = { 1 , 2 } A 2 = { 2 , 3 } A 3 = { 3 , 1 }. (1)

Each event Ai has probability 1/2. Moreover, each pair of events is indepen- dent since

P [A 1 A 2 ] = P [A 2 A 3 ] = P [A 3 A 1 ] = 1/ 4. (2)

However, the three events A 1 , A 2 , A 3 are not independent since

P [A 1 A 2 A 3 ] = 0 6 = P [A 1 ] P [A 2 ] P [A 3 ]. (3)

Problem 1.6.11 Solution

(a) For any events A and B, we can write the law of total probability in the form of

P [A] = P [AB] + P [ABc]. (1)

Since A and B are independent, P[AB] = P[A] P[B]. This implies

P [ABc] = P [A] − P [A] P [B] = P [A] (1 − P [B]) = P [A] P [Bc]. (2)

Thus A and Bc^ are independent.

(b) Proving that Ac^ and B are independent is not really necessary. Since A and B are arbitrary labels, it is really the same claim as in part (a). That is, simply reversing the labels of A and B proves the claim. Alter- natively, one can construct exactly the same proof as in part (a) with the labels A and B reversed.

(c) To prove that Ac^ and Bc^ are independent, we apply the result of part (a) to the sets A and Bc. Since we know from part (a) that A and Bc^ are independent, part (b) says that Ac^ and Bc^ are independent.

Problem 1.6.13 Solution

A AB B

AC C BC

In the Venn diagram at right, assume the sample space has area 1 corresponding to probability 1. As drawn, A, B, and C each have area 1/3 and thus probability 1/3. The three way intersection ABC has zero probability, implying A, B, and C are not mutually independent since

P [ABC] = 0 6 = P [A] P [B] P [C]. (1)

Problem Solutions – Chapter 2

Problem 2.1.1 Solution

A sequential sample space for this experiment is



1 / (^4)  H 1 XXXX 3 / 4 XX^ T 1

 ^1 /^4 ^ H^2 3 / 4 T^2

XXX^1 /^4 H 2 XXX (^) T 3 / 4 2

  • H 1 H 2 1 / 16
  • H 1 T 2 3 / 16
  • T 1 H 2 3 / 16
  • T 1 T 2 9 / 16

(a) From the tree, we observe

P [H 2 ] = P [H 1 H 2 ] + P [T 1 H 2 ] = 1/ 4. (1) This implies

P [H 1 |H 2 ] =

P [H 1 H 2 ]

P [H 2 ]

(b) The probability that the first flip is heads and the second flip is tails is P[H 1 T 2 ] = 3/16.

Problem 2.1.3 Solution

Let Gi and Bi denote events indicating whether free throw i was good (Gi) or bad (Bi). The tree for the free throw experiment is





1 / (^2)  G^1

HH HH HH (^) B 1 / (^21)



3 / (^4)  G 2 XXXX 1 / 4 XX^ B 2



1 / (^4)  G 2 XXXX 3 / 4 XX^ B 2

  • G 1 G 2 3 / 8
  • G 1 B 2 1 / 8
  • B 1 G 2 1 / 8
  • B 1 B 2 3 / 8

The game goes into overtime if exactly one free throw is made. This event has probability

P [O] = P [G 1 B 2 ] + P [B 1 G 2 ] = 1/8 + 1/8 = 1/ 4. (1)

Problem 2.1.5 Solution

The P[− |H ] is the probability that a person who has HIV tests negative for the disease. This is referred to as a false-negative result. The case where a person who does not have HIV but tests positive for the disease, is called a false-positive result and has probability P[+|Hc]. Since the test is correct 99% of the time,

P [−|H] = P [+|Hc] = 0. 01. (1)

Now the probability that a person who has tested positive for HIV actually has the disease is

P [H|+] =

P [+, H]

P [+]

P [+, H]

P [+, H] + P [+, Hc]

We can use Bayes’ formula to evaluate these joint probabilities.

P [H|+] =

P [+|H] P [H]

P [+|H] P [H] + P [+|Hc] P [Hc]

=

Thus, even though the test is correct 99% of the time, the probability that a random person who tests positive actually has HIV is less than 0.02. The reason this probability is so low is that the a priori probability that a person has HIV is very small.

Problem 2.1.7 Solution

The tree for this experiment is