Discrete Mathematics · free preview
Chapter 4 Problem Set. Counting
Problem set for this chapter. Counting.
1. How this assessment works
This lesson is a curated assessment adapted from MIT OpenCourseWare 6.042J Mathematics for Computer Science (Spring 2015) (https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/), used under CC BY-NC-SA 4.0. Work through the 11 problems in order, for each problem, type your reasoning in the answer box or write it on the handwriting pad, then submit it for AI grading.
How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted, a different route to the same result can still earn full marks.
If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.
2. Problem 1, Finalphobia given shaky hands (Bayes)
Finalphobia is a rare disease in which the victim has the delusion that he or she is being subjected to an intense mathematical examination. A person selected uniformly at random has finalphobia with probability . A person with finalphobia has shaky hands with probability . A person without finalphobia has shaky hands with probability . What is the probability that a person selected uniformly at random has finalphobia, given that he or she has shaky hands?
3. Problem 2, Probabilities of five dice patterns
Suppose that you roll five 6-sided dice that are fair and mutually independent. Answers alone are sufficient, but show your work for partial credit; you need not simplify. (a) What is the probability that all five dice show different values? Example is a roll of this type, but is not. (b) What is the probability that two dice show the same value and the remaining three dice all show different values? Example is a roll of this type, but and are not. (c) What is the probability that two dice show one value, two different dice show a second value, and the remaining die shows a third value? Example is a roll of this type, but and are not.
4. Problem 3, Pigeonhole principle on 4x4 colored grid
An electronic toy displays a grid of colored squares. At all times, four are red, four are green, four are blue, and four are yellow. (a) How many such configurations are possible? (b) Below the display, there are five buttons numbered 1, 2, 3, 4, and 5. The player may press a sequence of buttons; however, the same button can not be pressed twice in a row. How many different sequences of button-presses are possible? (c) Each button press scrambles the colored squares in a complicated, but nonrandom way. Prove that there exist two different sequences of 32 button presses that both produce the same configuration, if the puzzle is initially in the state shown above. (Hint .)
5. Problem 4, Expected laundry delay times
MIT students sometimes delay laundry for a few days. Assume all random values described below are mutually independent. (a) A busy student must complete 3 problem sets before doing laundry. Each problem set requires 1 day with probability and 2 days with probability . Let be the number of days a busy student delays laundry. What is ? Example. If the first problem set requires 1 day and the second and third problem sets each require 2 days, then the student delays for days. (b) A relaxed student rolls a fair, 6-sided die in the morning. If he rolls a 1, then he does his laundry immediately (with zero days of delay). Otherwise, he delays for one day and repeats the experiment the following morning. Let be the number of days a relaxed student delays laundry. What is ? Example. If the student rolls a 2 the first morning, a 5 the second morning, and a 1 the third morning, then he delays for days. (c) Before doing laundry, an unlucky student must recover from illness for a number of days equal to the product of the numbers rolled on two fair, 6-sided dice. Let be the expected number of days an unlucky student delays laundry. What is ? Example. If the rolls are 5 and 3, then the student delays for days. (d) A student is busy with probability , relaxed with probability , and unlucky with probability . Let be the number of days the student delays laundry. What is ? Leave your answer in terms of , , and .
6. Problem 5, Expected adjacent matching card pairs
I have twelve cards . I shuffle them and deal them in a row. For example, I might get . What is the expected number of adjacent pairs with the same value? In the example, there are two adjacent pairs with the same value, the 3's and the 5's. We can award partial credit only if you show your work.
7. Problem 6, Expected hits and probability bounds
Each time a baseball player bats, he hits the ball with some probability. The table below gives the hit probability and number of chances to bat next season for five players.
(a) Let be the total number times these five players hit the ball next season. What is ? (b) Give a nontrivial upper bound on and justify your answer. Do not assume that hits happen mutually independently. (c) Using a Chernoff inequality, give a nontrivial upper bound on . For this part, you may assume that all hits happen mutually independently.
8. Problem 7, Beaver Fever positive test probability
Exactly th of the people in a town have Beaver Fever©. There are two tests for Beaver Fever, TEST1 and TEST2. When a person goes to a doctor to test for Beaver Fever, with probability the doctor conducts TEST1 on him and with probability the doctor conducts TEST2 on him.
When TEST1 is done on a person, the outcome is as follows.
- If the person has the disease, the result is positive with probability .
- If the person does not have the disease, the result is positive with probability .
When TEST2 is done on a person, the outcome is as follows.
- If the person has the disease, the result is positive with probability .
- If the person does not have the disease, the result is positive with probability .
A person is picked uniformly at random from the town and is sent to a doctor to test for Beaver Fever. The result comes out positive. What is the probability that the person has the disease?
9. Problem 8, Two decks card hand probabilities
Two identical complete decks of cards, each with 52 cards, have been mixed together. A hand of 5 cards is picked uniformly at random from amongst all subsets of exactly 5 cards.
(a) [5 points] What is the probability that the hand has no identical cards (i.e., cards with the same suit and value. For example, the hand has identical cards.)?
(b) [5 points] What is the probability that the hand has exactly one pair of identical cards?
10. Problem 9, Exam score mean variance Chebyshev bounds
Scores for a final exam are given by picking an integer uniformly at random from the set . The scores of all 128 students in the class are assigned in this manner. For parts (a), (b), (c) and (d) you may NOT assume that these scores are assigned independently. For parts (e), (f), (g) and (h) you MAY assume that these scores are assigned independently.
Let be their scores. Let be the average score of the class.
(a) [3 points] For , what is ?
(b) [2 points] Show that . Make no independence assumptions.
(c) [4 points] Prove that . Make no independence assumptions.
(d) [5 points] Improve your previous bound by using the fact that the minimum possible score is 50. Prove that . Make no independence assumptions.
(e) [4 points] For the remaining problems, assume that all the scores are assigned mutually independently. Use Problem 1 of this final to find .
(f) [3 points] What is ?
(g) [2 points] What is the standard deviation of ?
(h) [5 points] Prove, using the Chebyshev Inequality, that .
11. Problem 10, Files uniform disk placement Chernoff bounds
1000 files have just reached a disk manager for writing onto disk. Each file's size is between and . The sum of all files' sizes is . The disk manager has 4 disks under its control. For each file , the disk manager chooses a disk uniformly at random from amongst the 4 disks, and is written to that disk. The choices of disk for the different files are mutually independent.
(a) [2 points] What is the expected number of files that will be written to the first disk?
(b) [2 points] What is the expected number of bytes written on the first disk?
(c) [8 points] Find the best upper bound you can on the probability that or more are written on the first disk?
(d) [4 points] Find the best upper bound you can on the probability that there is some disk with or more written on it?
12. Problem 11, Pigeonhole points within distance sqrt 2
Prove that among any points within an square there must exist two points whose distance is at most .
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free