1
Problem 1. Dice Rolls
If you roll a pair of fair dice, what is the probability of..
- (a) getting a sum of 1?
- (b) getting a sum of 5?
- (c) getting a sum of 12?
- (a) p(1) = 0
- (b) p(5) = [1+4, 2+3, 3+2, 4+1] => 4/36 = 0.1111
- (c) p(12) = [6+6] => 1/36 = 0.0278
Try it Yourself
2
Problem 2. School absences
Data collected at elementary schools in DeKalb County, GA suggest that each year roughly 25% of students miss
exactly one day of school, 15% miss 2 days, and 28% miss 3 or more days due to sickness.
- (a) What is the probability that a student chosen at random doesn’t miss any days of school due to sickness this year?
- (b) What is the probability that a student chosen at random misses no more than one day?
- (c) What is the probability that a student chosen at random misses at least one day?
- (d) If a parent has two kids at a DeKalb County elementary school, what is the probability that neither kid will miss
any school? Note any assumption you must make to answer this question.
- (e) If a parent has two kids at a DeKalb County elementary school, what is the probability that both kids will miss
some school, i.e. at least one day? Note any assumption you make.
- (f) If you made an assumption in part (d) or (e), do you think it was reasonable? If you didn’t make any assumptions,
double check your earlier answers.
-
a = 1 - (0.25 + 0.15 + 0.28); a
## [1] 0.32
-
b = 0.32 + 0.25; b
## [1] 0.57
-
c = 0.25 + 0.15 + 0.28; c
## [1] 0.68
-
d = 0.32 * 0.32; d ##Estimate
## [1] 0.1024
-
e = 0.68 * 0.68 ; e ##Estimate
## [1] 0.4624
-
f = "Considering both kids leaving together, missing school will likely be in pair due to sickness, appointments, parents’ obligations etc."; f
## [1] "Considering both kids leaving together, missing school will likely be in pair due to sickness, appointments, parents’ obligations etc."
Try it Yourself
3
Problem 3. Health coverage, relative frequencies
The Behavioral Risk Factor Surveillance System (BRFSS) is an annual telephone survey designed to identify risk factors
in the adult population and report emerging health trends. The following table displays the distribution of health status of
respondents to this survey (excellent, very good, good, fair, poor) and whether or not they have health insurance.
mat = matrix(c(0.023, 0.0364, 0.0427, 0.0192, 0.0050, 0.2099, 0.3123, 0.2410, 0.0817, 0.0289), byrow = TRUE, nrow = 2)
colnames(mat) = c("Excellent", "Very Good", "Good", "Fair", "Poor")
rownames(mat) = c("No Coverage", "Coverage")
mat
## Excellent Very Good Good Fair Poor
## No Coverage 0.0230 0.0364 0.0427 0.0192 0.0050
## Coverage 0.2099 0.3123 0.2410 0.0817 0.0289
- (a) Are being in excellent health and having health coverage mutually exclusive?
- (b) What is the probability that a randomly chosen individual has excellent health?
- (c) What is the probability that a randomly chosen individual has excellent health given that he has health coverage?
- (d) What is the probability that a randomly chosen individual has excellent health given that he doesn’t have health coverage?
- (e) Do having excellent health and having health coverage appear to be independent?
- (a) Could be either one.
- (b):
-
b = 0.2099 + 0.0230; b
## [1] 0.2329
- (c):
-
c = 0.2099 / (0.2099 + 0.3123 + 0.2410 + 0.0817 + 0.0289); c
## [1] 0.2402152
- (c):
-
d = 0.0230 / (0.0230 + 0.0364 + 0.0427 + 0.0192 + 0.0050); d
## [1] 0.1821061
- (c):
-
e = "No, having both as mentioned above are dependant"; e
## [1] "No, having both as mentioned above are dependant"
Try it Yourself
4
Problem 4. Exit Poll.
Edison Research gathered exit poll results from several sources for the Wisconsin recall election of Scott Walker.
They found that 53% of the respondents voted in favor of Scott Walker. Additionally, they estimated that of those
who did vote in favor for Scott Walker, 37% had a college degree, while 44% of those who voted against Scott Walker
had a college degree. Suppose we randomly sampled a person who participated in the exit poll and found that he had a college degree.
What is the probability that he voted in favor of Scott Walker?
-
a = 0.53 * 0.37 / ((1 - 0.53) * 0.44 + 0.53 * 0.37); a
## [1] 0.4867213
Try it Yourself
5
Problem 5. Books on a bookshelf
The table below shows the distribution of books on a bookcase based on whether they are nonfiction or fiction and hardcover or paperback.
mat2 = matrix(c(13, 59, 15, 8), nrow = 2, byrow = TRUE)
colnames(mat2) = c("hard", "paper")
rownames(mat2) = c("fiction", "nonfiction")
mat2
## hard paper
## fiction 13 59
## nonfiction 15 8
- (a) Find the probability of drawing a hardcover book first then a paperback fiction book second when drawing without replacement.
- (b) Determine the probability of drawing a fiction book first and then a hardcover book second, when drawing without replacement.
- (c) Calculate the probability of the scenario in part (b), except this time complete the calculations under the scenario where
the first book is placed back on the bookcase before randomly drawing the second book.
- (d) The final answers to parts (b) and (c) are very similar. Explain why this is the case.
-
a = (13 + 15) / (13 + 15 + 59 + 8) * 59 / (27 + 59 + 8); a
## [1] 0.1849944
-
b = (13 + 59) / (13 + 15 + 59 + 8) * (12 + 15) / (12 + 15 + 59 + 8); b
## [1] 0.2176932
-
c = (13 + 59) / (13 + 15 + 59 + 8) * (13 + 15) / (13 + 15 + 59 + 8); c
## [1] 0.2233795
-
d = "Because both drawing have similar sample set size."; d
## [1] "Because both drawing have similar sample set size."
Try it Yourself
6
Problem 6. Is it worth it?
Andy is always looking for ways to make money fast. Lately, he has been trying to make money by gambling.
Here is the game he is considering playing: The game costs 2 dollars to play. He draws a card from a deck.
If he gets a number card (2-10), he wins nothing. For any face card (jack, queen or king), he wins 3 dollars.
For any ace, he wins 5 dollars and he wins an extra $20 if he draws the ace of clubs.
- (a) Create a probability model and find Andy’s expected profit per game.
- (b) Would you recommend this game to Andy as a good way to make money? Explain.
- (a):
-
a = (36 / 52 * -2) + (12 / 52 * 1) + (3 / 52 * 3) + (1 / 52 * 23); a
## [1] -0.5384615
- (b):
-
b = "No, because there is no profit."; b
## [1] "No, because there is no profit."
Try it Yourself
7
Problem 7. Scooping ice cream.
Ice cream usually comes in 1.5 quart boxes (48 fluid ounces), and ice cream scoops hold about 2 ounces.
However, there is some variability in the amount of ice cream in a box as well as the amount of ice cream scooped out.
We represent the amount of ice cream in the box as X and the amount scooped out as Y.
Suppose these random variables have the following means, standard deviations, and variances:
mat3 = matrix(c(48, 1, 1, 2, 0.25, .0625), nrow = 2, byrow = TRUE)
colnames(mat3) = c("mean", "SD", "Var")
rownames(mat3) = c("X, In Box", "Y, Scooped")
mat3
## mean SD Var
## X, In Box 48 1.00 1.0000
## Y, Scooped 2 0.25 0.0625
- (a) An entire box of ice cream, plus 3 scoops from a second box is served at a party.
How much ice cream do you expect to have been served at this party?
What is the standard deviation of the amount of ice cream served?
- (b) How much ice cream would you expect to be left in the box after scooping out one scoop of ice cream?
That is, find the expected value of X ??? Y. What is the standard deviation of the amount left in the box?
- (c) Using the context of this exercise, explain why we add variances when we subtract one random variable from another.
- (a):
-
a1 = 48 + 2 * 3; a1
## [1] 54
-
a2 = sqrt(1 + 0.0625 * 3); a2
## [1] 1.089725
- (b):
-
b1 = 48 - 2; b1
## [1] 46
-
b2 = sqrt(1 + 0.0625); b2
## [1] 1.030776
-
c = "Whether we add or substruct its variance will not change."; c
## [1] "Whether we add or substruct its variance will not change."
Try it Yourself