Docsity

Discrete Mathematics Practice Problems: Probability and Counting, Exams of Mathematics

Partial preview of the text

Download Discrete Mathematics Practice Problems: Probability and Counting and more Exams Mathematics in PDF only on Docsity!

C960 COUNT PROBABILITY

SOLUTIONS DISCRETE

MATHEMATICS 2 PRACTICE

PROBLEMS WITH

CORRECTLY SOLVED

SOLUTIONS ||UPDATED 2025

C960: Discrete Probability Practice Problems

Advanced Counting

A college has 1105 students. This semester 320 students are taking a math course, 405 of

the students are taking a history class, and 250 of the students taking a math class are not

enrolled in a history class. (a) Construct a Venn diagram, and write the appropriate

numbers in the four regions

Solution:

U

−70 = 335, and n(( M ∪ H)

′

n(M∩ H) = 320−250=70, n(H− M) =

(b) How many of the students are taking math and history?

Solution: n( H ∩ H) = 70

(c) How many students are taking history but not math?

Solution: n( H − M) = 335

(d) How many students are taking math or history?

Solution: n( M ∪ H) = 250 + 70 + 335 = 655

(e) How many students are taking neither math nor history?

Solution: n(( M ∪ H)

′

) = n( U) − n(M ∪ H) = 1105 − 655 = 450

Survivor, CSI, and ER all belong to the Thursday night prime time lineup. A group of 600

college students were surveyed. 350 students watch Survivor, 280 watch CSI, and 320

watch ER. 50 students watch all three shows. 190 students watch both Survivor and ER.

180 students watch both Survivor and CSI. 50 students watch only ER.

(a) Construct a Venn diagram, and write the appropriate numbers in the eight regions.

Solution:

M

H

C960: Discrete Probability Practice Problems

Using a standard deck of 52 cards,

(a) how many ways can five cards be drawn (i.e. the order matters)?

Solution: Here order matters, e.g., {7♥ ,K♠ ,2♠ ,3♣ ,3♦} is a different way to draw

the cards then {2♠ ,3♣ ,3♦ ,7♥ ,K♠ ,} since the order is different. So we use

permutations,

(b) how many five card hands exist, where the order doesn’t matter?

Solution: Here order does not matter, e.g., {7♥ ,K♠ ,2♠ ,3♣ ,3♦} is the same hand

as

{2♠ ,3♣ ,3♦ ,7♥ ,K♠}

So we use combinations,

A three-person committee must be chosen from a group of ten men and twelve women.

How many committees are possible if it must consist of the following?

(a) Three men.

(b) Three women.

(c) One woman and two men.

Solution: Here we have two

3 P 3

0

pres., and treasurer). So we use

permutations,

There are no repeats and order does matter (since order will determine who is

pres., vice

Solutio

n:

2

C

2

7

same as Betty shaking hands with Joe). So we use

combinations,

There are no repeats and order does NOT matter (Joe shaking hands with

Betty is the

Solutio

n:

thecompanypicnic,atleasthowmanyhandshakesoccurr

ed?

Thelocalbranchofanationalbusinesschainhas27employees.Iftheyallshakeeachothershand

at

6

720

f

3!

8 ·

9 ·

10

3)!3! −

(

10!

3

C

10

No repeats and order doesn’t matter⇒combination. Solution:

6

1320

3!

10 ·

11 ·

12

3)!3! −

(

12!

3

C

12

No repeats and order doesn’t matter⇒combination. Solution:

C960: Discrete Probability Practice Problems

categories: ×. For the first categories we have 12

choices

(equivalently, = 12), and for the second we have

So we have 12 × 45 = 540 possibilities.

(d) One man and two women, and one of these is selected as a spokesperson of the

committee.

Solution: Similarly to above, we have two categories. For

the first categories we have 10 choices, and for the second

we have = 66. Then we select one of the three to be a spokesperson.

So we have 10 × 66 × 3 = 1980 possibilities.

Equivalently, use a permutation where the order of 2 members

does not matter,

(like counting the ways to arrange the letters in “SCHOOL”; the order of the “O”’s

does not mater).

Each student at State University has a student ID number consisting of five digits (the first

digit is nonzero, and the digits can be repeated) followed by two of the letters A, B, C, and

D (letters cannot be repeated). How many different student numbers are possible?

Solution: We have five numbers 0 − 9 which can be repeated, but the the first is

nonzero: 9 × 10 × 10 × 10 × 10 = 9 · 10

4

= 90 ,000 possibilities, and then two of four

letters which cannot be repeated. It is implied that the order of the

letters does matter since 10000 AB and 10000 BA would be two

different IDs. So for the letters we have, = 12 possibilities. For a total of 9 × 10

4

× 12 =

1 , 080 ,000 possible ID numbers.

How many ways are there to place 6 identical objects into 3 different bins?

Solution: This problem is similar to #33 and #35 on the pre-assessment. In general, the

number of ways to place n indistinguishable object into k groups is

This is often called a ”star and bar” approach. We can line up our identical objects (stars)

and place dividers between them (bars) to indicate which bin they will go into. For

example,

places 2 objects in each bin, and

places 3 into the first two bins and none in the last. Note that we need to count the ways

to place 3 − 1 = 2 bars in 6 + 2 spots. Order does not matter:

Similarly, we can count the number of ways to place 6 stars in the eight places:

C960: Discrete Probability Practice Problems

15 Suppose that B = {0 , 1 , 2 ,...8}. If f : A → B is 3-to-1 mapping of A onto B, what is | A|?

Solution: Recall that | A| notates the number or elements in the set A. B has 9

elements, | B| = 9. f maps 3 elements from A to every element in B. So the | A| = 27.

4

6

6 −

10

(− 2 y )

6

x

. So k = 6. Now we just plug this in:

4

y

6

Looking at the provided variables x

k −

10

(− 2 y )

k

x

k

k =

X

10

10

( x− 2 y )

a= xand b=− 2 y(be careful with the sign !)

k −

n

b

k

a

k

c

k =

X

n

n

( a+ b )

Solution: Recall the Binomial Theorem:

10

in( x− 2 y )

4

y

6

13 Whatisthecoefficientof x

C960: Discrete Probability Practice Problems

Discrete Probability

A card is dealt from a well-shuffled, standard deck of 52 cards. Find the probability of

being dealt each of the following.

(a) A red card

Solution: n(red cards n(cards) ) = 52

2

(b) A queen

Solution: nn(queens(cards)) = 524 = 131

(c) A club

Solution: nn((cardsclubs)) = 1352 = 41

(d) The queen of clubs

Solution: n(queen of clubs n(cards) ) = 521

(e) A queen or a club

(f) Not a queen

Three fair coins are tossed. Find each of the following

(a) The sample space

13

4

52

16

52

1 −

4+

n(cards)

) queens or clubs

n(

Solution:

13

12

52

48

52

4

Solution:

C960: Discrete Probability Practice Problems

(a) all 4 socks are black.

(b) exactly 2 are white.

(c) at least 3 are white.

Solution:

Exactly 3 socks are white so the number of ways to choose 4 white socks is 0 and

there is only one way to choose 3 socks that are white.

(d) at most 2 are black.

Solution: Note: Above, 3

C

4

= 0 as there are 0 ways to choose 4 white socks if there

are only 3. I will not have a situation like this on the exam.

In a certain game, a player pays $5 to play. There is a 25% chance that the player wins $7,

a 25% chance the player wins $12, and a 50% chance the player wins nothing. What is the

expected outcome of this game? Round to the nearest cent.

Solution: Recall the definition of expected value. The expected value of a discrete

random variable X is

E[ X] = X∈ X( s)p(s)

s S

where S is the set of possible outcomes of X, p( s) is the probability of outcome s, and

X(s) is the value of X for s.

Solution: E[X] = 2( .25) + 7( .25) + (−5)( .50) = −. 25

WGU is holding a raffle to raise money for a new internet service. The tickets cost $

each. The value and number of each prize to be given away is listed in the provided table.

Find the expected value of a ticket under the given circumstances.

Prize Valu

e

Vacati

on

Stereo $500 5

Books $100 10

T-shirt $20 10

35

1

7 C 4

4

C 4

Solution:

2 are white so 2 are white.

35

18

35

6 ·

3

7 C 4

4 C 2 ·

3 C 2

Solution:

0 or 1 or 2 are black.

35

22

35

3 ·

1+ ·

0+ ·

1

4

C 7

2

C 2 · 3

C 4

3

C 1 · 3

C 4

4

C 0 · 3

C 4

Solution:

C960: Discrete Probability Practice Problems

Solution: Recall the definition of expected value. The expected value of a discrete

random variable X is

E[X] = X∈ X(s)p( s)

s S

where S is the set of possible outcomes of X, p(s) is the probability of outcome s, and

X(s) is the value of X for s.

(a) 200 tickets

(b) 1000 tickets

A fair six-sided dice is rolled 5 times. Find the probability of the following:

(a) All 2’s are rolled.

(b) Four 2’s are rolled and the 5

th

roll is a 1.

(c) Not all 2’s are rolled.

200

84

200

100

200

10

200

5

200

1

]=2990(

X

[

E

There are 200−116 = 84 losing tickets. Solution:

1000

884

1000

100

1000

10

1000

5

1000

1

]=2990(

X

[

E

There are 1000−116 = 884 losing tickets. Solution:

5

6

1

6

1

6

1

6

1

6

1

6

1

s )=

′

Solution: p(five 2

5

6

1

6

1

6

1

6

1

6

1

6

1

s∩ one 1) = (

′

p(four 2

Solution:

5

6

1

Solution: 1 −

C960: Discrete Probability Practice Problems

positive but they are not infected). What is the probability that a person is infected if the

test shows positive? Approximate your answer to the 4

th

decimal place.

Solution: We are looking for the probability that someone is infected given that they

have tested positive, e.g., P(I| T). As this is a conditional probability questions, we should

immediately consider using Bayes’ theorem:

So we need the following:

  • The probability that a person is infected: P(I) =. 01
  • The probability that an infected person tests positive (true positive): P( T| I) =
  • The probability that a person is not infected: P( I) =. 99
  • The probability that a non-infected person tests positive (false positive): P(T| I)

= .05 Now we plug these values into the formula:

Note that using this version of Bayes’ theorem makes sense because we were given

the probabilities of a false positive and a true positive. To use the other version,

we would need to find P(T), but this is the probability that someone who is infected tests

positive OR someone who is not infected tests positive, i.e.,

P(T) = P(T ∩ I) + P(T ∩ I) = P( T| I)P( I) + P( T| I)P( I)

The denominator of the other version. Though more complicated to write, it also applies

to more general situations.