Counting

Question 1


Question 2

(a)

(b)


Question 3

(a)

(b)


Question 4

(a)

(b)


Question 5

(a) For players there are rounds.

(b)

(c) Every team except the champion needs to lose a game, so there should be games, for this to happen.


Question 6


Question 7

(a)

(b) The possible combinations for are:

(c) The valid outcomes until 6th round are and so the game ends on the 7th round, therefore the possible combinations are: For : For : Therefore:


Question 8

(a)

(b)


Question 9

(a)

(b)


Question 10

(a)

(b) Overcounting


Question 11

(a)

(b) if and if


Question 12

(a)

(b)

(c) Because each player’s hand is dependent on the on the other players’.


Question 13


Question 14

Story proofs

Question 15

Suppose a pizza can have kinds of toppings (getting no toppings is allowed, as is getting all ) therefore for each topping there are two possibilities (on or off), by multiplication rule we have possibilities. Alternatively each pizza can have toppings, therefore for each there is topping possibilities. Summing over all possible values of gives:

As desired.


Question 16

(a)

(b) Suppose a committee of people is chosen from a group of people plus Dave. The total number of committees is . Alternatively the committees can be chosen by either including or excluding Dave:

  • First, if Dave is included, the remaining people must be chosen from the remaining people, which can be done in ways.
  • Second, if Dave is excluded, then all the people must be chosen from the remaining people, which can be done in ways.

Since these cases are disjoint and exhaustive, the total is the sum of the two:

As desired.


Question 17

Suppose there are two groups of people. a committee of people is chosen from these groups, the total number of committees is . Alternatively the committees can be chosen by focusing on:

  • The number of people included from the first group, .
  • And the number of people included from the second group , resulting in possibilities; By the symmetry of the binomial coefficient, choosing people is equivalent to choosing people.

These result to committees for each . Summing over all possible values of gives:

As desired.


Question 18

Suppose there are two groups of people. A committee of people is chosen from these groups, additionally a president is chosen from the first group. There are ways to choose a president from the first group, and ways to choose the remaining members from the remaining people: . Alternatively these committees can be chosen by focusing on:

  • The people included from the first group, , which must be greater than because there must be a president, resulting in possibilities, additionally by choosing the president the possibilities are multiplied by , resulting in possibilities.
  • And the people included from the second group, , resulting in possibilities, which is equivalent to the number of people excluded from the second group, , resulting in possibilities.

These result to committees for each fixed . Summing over all possible values of gives:

As desired.


Question 19

Suppose there is a set of elements, . Choosing a subset of elements would have possibilities. Alternatively each subset can be chosen by focusing on the middle element in the subset. Let the elements be ordered , and th element to be the middle (3rd) element of the subset, there are elements to its left and elements to its right. then:

  • elements from the left side of the middle element must be chosen:
  • And 2 elements from the right side of the middle element as well:

Resulting in subsets. Summing over all possible values of , () gives:

As desired.


Question 20

(a) Suppose we have a list of people ordered by age, the number being the youngest and the number being the oldest; Choosing a committee of people would have possibilities. Alternatively each committee can be chosen by focusing on the oldest member, let , be the number of the oldest person in the committee, then we have to choose the remaining people from the younger people: Summing over all the valid values would give:

As desired.

(b) There are possibilities for the amount of the gummy bears inside a bag, (), and 5 possibilities for each flavor. Each case of amount can be modeled as Stars and Bars, bins and gummies, possibilities for each ; giving the total possibilities of:

by using (a):

by using (a) again:


Question 21

(a) Partitioning people plus Dave into groups can be noted as . Alternatively it can be broken into two disjoint case:

  • Dave is a group by itself, so there will be remaining people to be partitioned into groups, therefore there are possibilities.
  • Dave is a part of a group, there will be groups for Dave to join, therefore there are possibilities.

Therefore we have:

As desired.

(b) Partitioning people plus Dave into groups and Dave’s group can be noted as . Alternatively each partitioning can be done by focusing on how many people are going to be in Dave’s group. Let be the number of the people not in Dave’s group, there would be possibilities for the Dave’s group, additionally the remaining people can partitioned in ways. Resulting in ways for each , . Summing over all possible values of results in:

As desired.


Question 22

(a) Suppose people are playing in round-robin tournament, where each player plays with any other player exactly once. To find the number of matches, we simply find all the combinations to form a match, which is Alternatively the number of games can be counted by focusing on players, the first player will has to face players, the second player has to face remaining players and so on. This results to:

As desired.

(b) Consider a set of integers where we want to choose a number such that and three numbers such that . For a fixed , there are choices for and , summing over all possible values gives:

Alternatively, these numbers can be picked by focusing on how many distinct values , , and have:

  • 4 Distinct values; Choose 4 numbers from . The largest is . There are ways to assign the remaining 3 values to and :
  • 3 Distinct Values; Choose 3 numbers from . The largest is . One value among is repeated, or one matches in a specific pattern. There are 6 ways to arrange these:
  • 2 Distinct Values; Choose 2 numbers from . The larger is . All three of must be the smaller number. There is only 1 way to do this:

Therefore:

As desired.

Naive definition of probability

Question 23

Desired sets of buttons: , ( sets)

Desired combinations:

All combinations:

Probability:


Question 24

Desired combinations: resulting in combinations.

All combinations:

Probability:


Question 25

Undesired combinations: Where each district gets exactly one robbery, therefore there are combinations.

All combinations:

Probability:


Question 26

(a) Picking one person more than once is equivalent to at least two people sharing the same birthday.

(b)

Undesired combinations: the combinations where different people are chosen each time.

All combinations:

Probability:


Question 27

Undesired combinations: choosing locations from locations to store phone numbers without replacing:

All combinations:

Probability:


Question 28

Undesired combinations: choosing slots from slots for statistics course without replacing:

All combinations:

Probability:


Question 29

(a) Since the maximum total of dices is 24, this problem can be modeled as Stars and Bins, where stars are negative ones and bins are the dices with 6 on them:

  • 21: Three negative ones and four dices:
  • 22: Two negative ones and four dices:

Total number of 21 is more likely.

(b)

  • 2-letter:
  • 3-letter:

Both are equally likely.


Question 30

:

  • Permutations:

  • Desired combinations:

  • All combinations:

  • Probability:

:

  • Permutations:
  • Desired combinations:
  • All combinations:
  • Probability:

Question 31

Desired combinations:

All combinations:

Probability:


Question 32

Since guessing red cards would implicitly guess the black cards as well, it’s impossible to have 1 or 3 correct guesses (imagine guessing one red card correct and one incorrect, then the other two remaining black and red cards would be guessed as black and one of them would be a correct guess, the same goes for three).

  • For both guesses must be wrong, resulting in one combination.
  • For only one red card guess must be correct, leaving two red cards to choose for the correct answer and two black cards for the wrong answer, resulting in combinations.
  • For both guesses must be correct, resulting in one combination.

The total combinations would be , therefore:


Question 33

(a) Since no new information is added to the experiment by removing one ball, therefore the probability remains the same.

(b)


Question 34

(a)

(b)


Question 35

Desirable combinations:

Probability:


Question 36

Desirable combinations:

All combinations:

Probability:


Question 37

(a)

Desirable combinations: Divide the deck into three parts, before-ace, the-ace, after-ace.

  • The first part can’t have Jack, Queen, King or Ace, leaving with 36 cards to choose from, let be the number of cards chosen.
  • The-ace has 4 possibilities.
  • The after-ace has 15 (Jack, Queen, King and 3 Aces) plus cards.

These result to for each , summing over all possible values gives:

Probability:

Note

This can be solved by just looking at the subset of Jacks, Queens, Kings and Aces, since only the relative order of these cards matter, therefore the probability would be the same as the probability of Ace being the first card in this subset:

(b)

Desirable combinations: Same as the note, the subset should be order as , therefore:

Probability:


Question 38

(a) Let’s assume Tyrion seats first, which gives combinations, then Cersei would have two desirable seats and others would be arranged in different combinations:

(b) Let’s assume Tytion is seated, then the sample space for Cersei’s seat would be of size , there are only desirable seats, giving:


Question 39

selecting couples gives combinations, now the remaining must be selected. For that couples are selected from the remaining couples, and for each couple there would be possibilities, resulting in:


Question 40

(a) For this sequence to be strictly increasing, all values must be distinct, there would be only one way to arrange them:

(b) This can be modeled as Stars and Bars, where bins are the numbers and stars are how many times they are chosen:


Question 41

To have exactly one empty box, the balls must be distributed such that one box has balls, one box has , and the remaining boxes have ball each; There are ways to select the pair of balls that will share a box. We now have distinct “items” to place (the pair and the single balls). There are ways to choose a box for the pair, and ways to choose an empty box from the remaining. The remaining balls can be arranged in the remaining boxes in ways.

Therefore for the sample sample space of size :


Question 42

The probability is defined as the number of permutations of letters divided by the total sum of all possible permutations of length , where ranges from to :

Axioms of probability

Question 43

(a) : From the properties of probability we have:

Additionally we know , therefore , thus:

As desired.

Equality: suppose , then , therefore, from the property:

(b) : From the properties of probability we have:

Since , therefore:

As desired.

Equality: if then , therefor:

(c) : From the properties of probability we have:

Additionally we know , therefore , thus:

As desired.

Equality: If from the axioms we have:


Question 44

Since and are disjoint sets, from the axiom of additivity we have:

Since , therefore , thus:

As desired.


Question 45

Since , therefore . Since and are disjoint sets, from the axiom of additivity we have:

Thus from the first equation:

From the properties we have , therefore:

As desired.


Question 46

By definition we have:

  • : The event that or events occur.
  • : The event that or events occur.
  • : The event that exactly events occur.

And since and are disjoint events we have:

Which can be rewritten as:


Question 47

(a) Probability of number 6 appearing after rolling a dice () and probability of number 5 appearing after rolling a second dice (); is the probability of the first one being 6 and second one being 5 () which is , thus:

(b) Whenever the common area between and is equal to then and would be independent, an example:

An example of and not being independent:

(c)

Since and are independent, therefore , thus:


Question 48

Since for Arby , for any disjoint events and , therefore we have two cases:

In this case we can do these series of actions repetitively until Arby goes bankrupt:

  • Sell and certificates for
  • Buy certificate for

Since , Arby loses money.

In this case we can do these series of actions repetitively until Arby goes bankrupt:

  • Buy certificate for
  • Sell and certificates for

Since , Arby loses money.

Inclusion-exclusion

Question 49

Let be the event where the number never appears, therefore for events we have:

Thus:


Question 50

Let be the events where a hand is void in the respective suit ( being Hearts, Clubs, Spades or Diamonds), therefore:

Thus:


Question 51

Let be the event that season occurs at least once each among birthdays, so the probability of all seasons occurring at least once each among birthdays would be:

By using De-Morgan’s law we have:

Where is the event of season not occurring at all among birthdays, which:

By using Inclusion-Exclusion we have:


Question 52

Let be the event that student doesn’t sit in the same place, therefore the probability of no student sitting in the same place would be:

By De-Morgan’s law we have:

Where is the event that student sits in the same place, which gives:

By inclusion-exclusion we have:


Question 53

Let:

  • S be the set of all passwords.
  • be the set of passwords that have at least one lower case character.
  • be the set of passwords that have at least one upper case character.
  • be the set of passwords that have at least one number.

Therefore:

  • is the set of passwords that have no lower case characters.
  • be the set of passwords that have no upper case characters.
  • be the set of passwords that have no numbers.

(a)

since , therefore:

(b)

since , therefore:

By inclusion-exclusion:

(c)

since , therefore:

By inclusion-exclusion:


Question 54

Let be the event that day has at least one class, therefore the probability of having classes everyday would be:

By De-Morgan’s law we have:

Where is the event that day has no class at all, which gives:

By inclusion-exclusion we have:


Question 55

(a)

(b) Let:

  • be the event that at least one senior is in the group.
  • be the event that at least one junior is in the group.
  • be the event that at least one sophomore is in the group.

Therefore, the probability that the committee has at least one representative from each of the senior, junior, and sophomore classes would be:

By De-Morgan’s law:

Where , and are the events that no senior, junior and sophomore is in the group respectively. By inclusion-exclusion we have:

Mixed practice

Question 56

(a)

(b)

(c)

(d) Martin can only win only if the games starts with , probability of . If anywhere in the a game appears, he loses.


Question 57

Let be the event where no Caesar molecule is inhaled, therefore the probability that at least one molecule in the breath was shared with Caesar’s last breath would be:

Since our breath is sampled with replacement the probability would be:


Question 58

(a) Let be the event that the third defective widget is in the position; this is the same as the event that the inspector has to test at least 9 widgets to find the defective widgets. The complement, , is the event that all defective widgets are in position, which gives:

(b) Same as (a):


Question 59

(a) It can be modeled as Stars and Bins, with bins being kids and stars being the chocolates:

(b) Again, same as the previous, but with 5 chocolates this time:

(c) Each chocolate has 15 choices:

(d) Let be the sample space and be the event where person receives at least one chocolate, therefore the event where every child gets one chocolate would be:

since , by De-Morgan’s law we have:

where is the event that person gets no chocolate, which gives:

Since , therefore:

By inclusion-exclusion we have:


Question 60

(a)

(b) This can be modeled as Stars and Bins, where bins are the ‘s and stars are the times a number was chosen.

(c) Let be the number of times is chosen, . imagine an unordered bootstrap example:

where:

Let be the number of all possibilities, this particular unordered bootstrap would have the probability of:

Where , now this can be further generalized to:

This results to:

example: Let be the unordered bootstrap and be the unordered bootstrap , and let and be the probability of getting and , therefore:


Question 61

Note

The probability is 1/2. This is because, for the last passenger, only two seats truly matter: their own assigned seat (Seat 100) and the first passenger’s assigned seat (Seat 1). Any passenger who finds their seat taken will eventually choose one of these two seats with equal probability. If Seat 1 is chosen first, the “chain” of displaced passengers ends and the last passenger gets their seat; if Seat 100 is chosen first, they do not. Since the process is perfectly symmetric regarding these two seats, the chance of the last passenger finding their seat available is exactly 50%.


Question 62

(a)

(b) Suppose there are only two people and there only two days to choose from, the probability of these two people sharing birthday would be:

would have the minimum amount where , Thus:

Showing that the probability is minimized when the probability of days are uniform.

(c) This question is essentially asking if averaging two probabilities would decrease the probability of birthdays matching, a more general form for (b). Verifying the equation:

  • Terms containing both ​ and :​
  • Terms containing exactly one of or :
  • Terms containing neither nor :

from (a) we have:

Thus, to show we must show . Let , by using the equation we just verified we have:

since , therefore:

Which is always correct for any by arithmetic mean-geometric mean inequality, thus proving .