Homework 8 Solutions

advertisement

CSE 21 - Winter 2014

Homework

Homework 8 Solutions

1 Of 330 male and 270 female employees at the Flagstaff Mall, 210 of the men and 180 of the women are on flex-time (flexible working hours).

Given that an employee selected at random from this group is on flextime, what is the probability that the employee is a woman?

For a randomly selected employee, let W denote the event that the employee is a woman and let F denote the event that the employee is flextime. We need to find P ( W | F ) .

P [ W ∩ F ]

P ( W | F ) =

P [ F ]

210 + 180

P ( F ) =

330 +

180

270

P ( F ∩ W ) =

330 +

180

270

P ( W | F ) =

210

6

+ 180

=

13

2 A new medical test has been designed to detect the presence of the mysterious Brainlesserian disease. Among those who have the disease, the probability that the disease will be detected by the new test is 0.86.

However, the probability that the test will erroneously indicate the presence of the disease in those who do not actually have it is 0.08. It is estimated that 16 % of the population who take this test have the disease. If the test administered to an individual is positive, what is the probability that the person actually has the disease?

1

This, and many other problems involve using Bayes’ Theorem. However, we shall see how to solve this problem without using Bayes’ Theorem.

Let D denote the event that a particular person has the disease.

P ( D ) =

0.16. Let ¯ indicate the event that the person doesn’t have the disease. Let

M denote the event that the medical test returns positive. We need to compute P ( D | M ) .

We know that P

0.08.

( D ) = 0.16, P ( ) = 0.84. And, P ( M | D ) = 0.86, P ( M | ¯

) =

We want:

P ( D | M ) =

P ( D ∩ M )

P ( M )

From

P ( M | D ) =

P ( D ∩ M )

P ( D ) we get:

P ( D ∩ M ) = P ( M | D ) × P ( D ) = 0.86

× 0.16

Similarly,

P (

¯ ∩ M ) = P ( M | ¯

) × P (

¯

) = 0.08

× 0.84

With this, we get,

P ( M ) = P ( ∩ M ) + P ( D ∩ M ) = 0.86

× 0.16

+ 0.08

× 0.84

Hence, combining everything, we get:

P ( D | M ) =

P ( D ∩ M )

P ( M )

0.86

× 0.16

=

0.86

= 0.67

× 0.16

+ 0.08

× 0.84

2

3 Two marbles are drawn randomly one after the other without replacement from a jar that contains 5 red marbles, 3 white marbles, and 9 yellow marbles. Find the probability of the following events.

1. A red marble is drawn first followed by a white marble.

2. A white marble is drawn first followed by a white marble.

3. A yellow marble is not drawn at all

The answers are:

1.

5

17

× 3

16

2.

(

(

3

2

17

2

)

)

3.

(

(

5 + 3

2

17

2

)

)

4 Scientific research on popular beverages consisted of 65 studies that were fully sponsored by the food industry, and 35 studies that were conducted with no corporate ties. Of those that were fully sponsored by the food industry, 15 % of the participants found the products unfavorable,

22 % were neutral, and 63 % found the products favorable. Of those that had no industry funding, 35 % found the products unfavorable, 16 % were neutral, and 49 % found the products favorable.

1. What is the probability that a participant selected at random found the products favorable?

2. If a randomly selected participant found the product favorable, what is the probability that the study was sponsored by the food industry?

3. If a randomly selected participant found the product unfavorable, what is the probability that the study had no industry funding?

Let S denote the event that the study was sponsored by industry. For the outcome of the study, let us have the following three events:

3

• Let F denote the event that the study was Favourable

• Let U denote unfavourable result

• Let N denote a neutral result

Clearly, P

P ( S

¯

) =

35

65

.

( F ) + P ( U ) + P ( N ) = 1. We are given the following values:

From second statement, we get P

0.22. From third statement, we get P (

( F | S ) = 0.63, P ( U | S ) = 0.15, P ( N | S ) =

F | ¯

) = 0.49, P ( U | S

¯

) = 0.35, P ( N | S

¯

) =

0.16. We need to find P ( F ) .

Here are the solutions:

1.

P ( F | S ) = larly, P

P ( F ∩ S )

P ( S )

( F ∩ S

¯

) =

. So, P

P ( F | S

¯

)

( F ∩ S ) = P ( F | S ) × P ( S ) = 0.63

×

× P ( S

¯

) = 0.49

× 35

65

.

Combining, we get, P ( F ) = P ( F ∩ S ) + P ( F ∩

35

65

.

S

¯

) = 0.63

× 30

65

30

65

. Simi-

+ 0.49

×

2.

P ( S | F ) = P ( F ∩ S ) / P ( F ) = ( 0.63

× 30

65

) / ( 0.63

× 30

65

+ 0.49

× 35

65

) .

3.

P ( U ∩ S ) = P ( U | S ) × P ( S ) = 0.15

×

35

65

30

65

. Similarly, P ( U ∩ S

¯

) =

P

P

(

(

U

U

| S

¯

) × P ( S

¯

S

¯

) =

) =

0.15

×

0.35

30

65

× 35

65

. Combining, we get P

+ 0.35

× .

( U ) = P ( U ∩ S ) +

We want to find P ( S

¯ | U ) =

P (

¯ ∩ U )

P ( U )

=

0.15

×

0.35

30

65

× 35

65

+ 0.35

× 35

65

5 If P ( E ∩ F ) = 0.08, P ( E | F ) = 0.2, P ( F | E ) = 0.5, find:

1.

P ( E )

2.

P ( F )

3.

P ( E ∪ F )

4. Are the events E and F independent?

4

Time spent in resource room Pass %

None 25

Between 1 and 90 minutes

More than 90 minutes

52

63

Table 1: Table for Problem 6

The answers are:

1.

P ( E ) = P ( F ∩ E ) / P ( F | E ) = 0.08/0.5

= 0.16

2.

P ( F ) = P ( F ∩ E ) / P ( E | F ) = 0.08/0.2

= 0.4

3.

P ( F ∪ E ) = P ( F ) + P ( E ) − P ( F ∩ E ) = 0.4

+ 0.16

− 0.08

= 0.48

4.

P ( F ) × P ( E ) = 0.4

× 0.16

= 0.064

= P ( E ∩ F ) . Hence, E and F are not independent.

6 On average 62 % of Finite Mathematics students spend some time in the Mathematics Department’s resource room. Half of these students spend more than 90 minutes per week in the resource room. At the end of the semester the students in the class were asked how many minutes per week they spent in the resource room and whether they passed or failed. The passing rates are summarized in table 1.

If a randomly chosen student did not pass the course, what is the probability that he or she did not study in the resource room?

Let S denote the event that a student passed. Let H , M , L denote the events that the student spent “more than 90 mins”, “between 1 and 90 mins” and

“None” respectively.

We are given P ( H ) + P ( M ) = 0.62.

P ( H ) = 0.5

× 0.62

= 0.31. So,

P ( M ) = 0.31, P ( L ) = 1 − 0.62

= 0.38. We are also given the following values: P find P ( L | S

¯

( S | L ) = 0.25, P ( S | M ) = 0.52, P ( S | H ) = 0.63. We are asked to

) .

P ( S ) = P ( S ∩ L ) + P ( S ∩ M ) + P ( S ∩ H ) = P ( S | L ) × P ( L ) + P ( S | M ) ×

P ( M ) + P ( S | H ) × P ( H ) = 0.25

× 0.38

+ 0.52

× 0.31

+ 0.63

× 0.31

= 0.4515.

5

P

0.25

0.285

(

×

S

¯

) =

0.38

1 −

=

P ( S ) = 0.5485. And, P ( L ∩ S

¯

0.285. Combining, we have,

) = P ( L ) − P ( L ∩ S ) = 0.38

P ( L | S

¯

) = P ( L ∩ S

¯

) / P ( S

¯

) =

0.5485

7 You ask a neighbor to water a sickly plant while you are on vacation.

Without water the plant will die with probability 0.9. With water it will die with probability 0.4. You are 82 % certain the neighbor will remember to water the plant.

1. When you are on vacation, find the probability that the plant will die.

2. You come back from the vacation and the plant is dead. What is the probability the neighbor forgot to water it?

Let W be the event that the plant is watered. Let D be the event that the plant would die.

We are given the following values: P ( W ) = 0.82, P ( D | W ) = 0.4, P ( D | ¯

) =

0.9. With these, the answers are:

1.

P ( D ) = P ( D ∩ W ) + P ( D ∩ ¯

P (

¯

) P ( D ) = 0.4

× 0.82

+ 0.9

×

) =

0.18

P

=

( D | W

0.49

) × P ( W ) + P ( D | ¯

) ×

2.

P (

¯ | D ) = P ( D ∩ ¯

) / P ( D ) =

0.9

× 0.18

0.49

.

8 In a survey of 299 people, the data presented in Table 2 were obtained relating gender to political orientation.

A person is randomly selected. What is the probability that the person is:

1. Male?

2. Male and Democrat?

3. Male given that the person is a Democrat?

4. Republican given that the person is Male?

5. Female given that the person is a Independent?

6. Are the events Female and Republican independent?

6

Male (M)

Female (F)

Total

Republican (R) Democrat (D) Independent (I) Total

74 39 21 134

85

159

64

103

16

37

165

299

Table 2: Table for Problem 8

The answers are:

1.

134

299

2.

39

299

3.

39

103

4.

74

134

5.

16

37

6. P(Female) =

85

299

P(Female)

165

299

×

. P(Republican) =

P(Republican) =

165

299

159

299

×

. P(Female and Republican) =

159

299

= P(Female and Republican). Hence, they are not independent events.

9 In a survey of 347 people, the data presented in Table 3 were obtained relating gender to political orientation.

A person is randomly selected. What is the probability that the person is:

1. Male?

2. Male and Democrat?

3. Male given that the person is a Democrat?

4. Republican given that the person is Male?

5. Female given that the person is a Libertarian?

6. Are the events Male and Republican independent?

7

Male (M)

Femal (F)

Total

Republican (R) Democrat (D) Libertarian (L) Total

99 80 10 189

84

183

58

138

16

26

158

347

Table 3: Table for Problem 9

The answers are:

1.

189

347

2.

80

347

3.

80

138

4.

99

189

5.

16

26

6. P(Male) =

189

347

. P(Republican) =

183

347

. P(Male and Republican) =

99

347

.

P(Male) × P(Republican) =

189

347

× they are not independent events.

183

347

= P(Male and Republican). Hence,

10 Factories A, B and C produce computers. Factory A produces 2 times as many computers as factory C. And factory B produces 6 times as many computers as factory C. The probability that a computer produced by factory A is defective is 0.016, the probability that a computer produced by factory B is defective is 0.038, and the probability that a computer produced by factory C is defective is 0.043. A computer is selected at random and it is found to be defective. What is the probability it came from factory C?

Let A , B , C denote the events that any computer is manufactured by factories A, B, and C respectively. Let D denote the event that the computer is defective.

P ( A ) = 2 × P ( C ) , P ( B ) = 6 × P ( C ) . We get, P ( A ) = 2/9, P ( B ) =

6/9, P ( C ) = 1/9.

8

Male ( M )

Femal ( F )

Total

Color-Blind ( C ) Not Color - Blind ( ¯ ) Total

89 35 124

56

145

18

53

74

198

Table 4: Table for Problem 11

We are also given P ( D | A ) = 0.016, P ( D | B ) = 0.038, P ( D | C ) = 0.043.

We need to compute P ( C | D ) .

We can compute

P ( D ) = P ( A ∩ D ) + P ( B ∩ D ) + P ( C ∩ D )

= P ( D | A ) × P ( A ) + P ( D | B ) × P ( B ) + P ( D | C ) × P ( C )

= 0.016

× 2/9 + 0.038

× 6/9 + 0.043

× 1/9

= 0.303/9

P ( C | D ) = P ( C ∩ D ) / P ( D )

0.043/9

=

0.303/9

= 0.043/0.303

11 In a survey of 198 people, the data presented in Table 4 were obtained relating gender to color-blindness.

A person is randomly selected. What is the probability that the person is:

1. Male?

2. Male and Color-blind?

3. Male given that the person is Color-blind?

4. Color-blind given that the person is Male?

5. Female given that the person is not Color-blind?

The answers are:

9

1.

124

198

2.

89

198

3.

89

145

4.

89

124

5.

18

53

12 If P ( F ) = 0.3 and P ( E | F ) = 0.9, then find P ( E ∩ F ) .

P ( E ∩ F ) = P ( E | F ) × P ( F ) = 0.9

× 0.3

= 0.27

13 A fair coin is tossed 12 times. What is the probability that:

1. Exactly 10 heads appear?

2. At least two heads appear?

3. At most 9 heads appear?

Let X be the random variable denoting the number of heads. The answers are:

1.

P ( X = 10 ) =

(

12

2

10

12

)

2.

P ( X ≥ 2 ) = 1 − P ( X ≤ 1 ) = 1 − ( P ( X = 1 ) + P ( X = 0 )) =

1 −

(

12

1

)+(

2 12

12

0

)

3.

P ( X ≤ 9 ) = 1 − [ P ( X = 10 ) + P ( X = 11 ) + P ( X = 12 )] = 1 −

(

12

10

)+(

12

11

2 12

)+(

12

12

)

14 If the letters in the word POKER are rearranged, what is the probability that the word will begin with the letter P and end with the letter

E?

10

Total number of ways of arranging the 5 letters, without restriction is 5!.

If we fix the first letter to be P and the last letter to be E , total number of words with such combination is 3!. So, overall probability is

3!

5!

.

15 Two cards are drawn from a regular deck of 52 cards, without replacement. What is the probability that the first card is an ace of clubs and the second is black?

P ( First card is ace of clubs ace of clubs ) =

) = 1

52

P ( Second card is black given first card is

25

51

Combining the two, the overall probability is

51

25

× 52

.

16 Factories A and B produce computers. Factory A produces 3 times as many computers as factory B. The probability that an item produced by factory A is defective is 0.018 and the probability that an item produced by factory B is defective is 0.043. A computer is selected at random and it is found to be defective. What is the probability it came from factory A?

Let A , B denote the events that a computer is produced by factories A, B respectively. Let D denote the event that the computer is defective.

We know that P ( A ) = 3 P ( B ) and P ( A ) + P ( B ) = 1. So, using these, we get, P ( A ) = 0.75, P ( B ) = 0.25. We are also given P ( D | A ) = 0.018, P ( D | B ) =

0.043.

Using these, we get P ( D ) = P ( D ∩ A ) + P ( D ∩ B ) = P ( D | A ) × P ( A ) +

P ( D | B ) × P ( B ) = 0.75

× 0.018

+ 0.25

× 0.043.

Now, P ( A | D ) = P ( A ∩ D ) / P ( D ) =

0.75

× 0.018

0.75

× 0.018

+ 0.25

× 0.043

17 A box contains 20 yellow, 22 green and 29 red jelly beans. If 8 jelly beans are selected at random, what is the probability that:

1. 2 are yellow?

2. 2 are yellow and 5 are green?

3. At least one is yellow?

11

Answers are:

1.

(

20

2

) × (

(

71

8

)

51

6

)

2.

(

20

2

) × (

(

22

5

71

8

)

) × (

29

1

)

3. 1 −

(

(

51

8

71

8

)

)

18 Events A

1

, A

2 and A

3 form a partiton of the sample space S with probabilities P ( A

1

) = 0.3, P ( A

2

) = 0.2, P ( A

3

) = 0.5. If E is an event in S with P ( E | A

1

) = 0.3, P ( E | A

2

) = 0.5, P ( E | A

3

) = 0.8, compute

1.

P ( E )

2.

P ( A

1

| E )

3.

P ( A

2

| E )

4.

P ( A

3

| E )

P ( E ∩ A

1

) = P ( E | A

1

) × P ( A

1

) = 0.3

× 0.3

= 0.09

P ( E ∩ A

2

) = P ( E | A

2

) × P ( A

2

) = 0.5

× 0.2

= 0.1

P ( E ∩ A

3

) = P ( E | A

3

) × P ( A

3

) = 0.8

× 0.5

= 0.4

P ( E ) = P ( E ∩ A

1

) + P ( E ∩ A

2

) + P ( E ∩ A

3

) = 0.59

P ( A

1

| E ) =

P ( A

2

| E ) =

P ( A

1

∩ E )

P ( E )

P ( A

2

∩ E )

= 0.09/0.59

= 0.1/0.59

P ( E )

P ( A

3

| E ) =

P ( A

3

∩ E )

P ( E )

= 0.4/0.59

12

19 A card is drawn from a regular deck of 52 cards and is then put back in the deck. A second card is drawn. What is the probability that:

1. The first card is red.

2. The second card is hearts given that the first is red.

3. The first card is red and the second is hearts.

Answers are:

1.

26

52

= 0.5

2. The outcome of second card doesn’t depend on first card because outcomes of second and first draws are independent events. So, probability of ”the second card is hearts given that the first is red” is same as probability of ”the second card is hearts”. This is

13

52

= 0.25

3.

P

13

52

[ First card is red ] =

26

52

= 0.5. And, P [ Second card is hearts

= 0.25. Overall probability is 0.5

× 0.25

= 0.125.

] =

20 If P ( E ∩ F ) = 0.225, P ( E | F ) = 0.45, P ( F | E ) = 0.5, find:

1.

P ( E )

2.

P ( F )

3.

P ( E ∪ F )

The answers are:

1.

P ( E ) = P ( F ∩ E ) / P ( F | E ) = 0.225/0.5

= 0.45

2.

P ( F ) = P ( F ∩ E ) / P ( F | E ) = 0.225/0.45

= 0.5

3.

P ( F ∪ E ) = P ( F ) + P ( E ) − P ( F ∩ E ) = 0.5

+ 0.45

− 0.225

= 0.725

13

Download