Dice rolls. (3.6, p. 92) If you roll a pair of fair dice, what is the probability of
(a)Answer:0.Minimum number with the pair of dice is 2
(b)Answer: Four combinations to get the sum of 5, so (1/6)(1/6)4=1/9
(c)Answer: Both dices have to be 6 to get 12, so the probability is (1/6)*(1/6)=1/36
Poverty and language. (3.8, p. 93) The American Community Survey is an ongoing survey that provides data every year to give communities the current information they need to plan investments and services. The 2010 American Community Survey estimates that 14.6% of Americans live below the poverty line, 20.7% speak a language other than English (foreign language) at home, and 4.2% fall into both categories.
Yes. They are disjoint because they don’t have any connection.
library(VennDiagram)
## Loading required package: grid
## Loading required package: futile.logger
library(grid)
grid.newpage()
draw.pairwise.venn(area1 = 14.6, area2 = 20.7, cross.area = 4.2, category = c("Below poverty",
"Language"),fill = c("light blue", "pink"))
## (polygon[GRID.polygon.1], polygon[GRID.polygon.2], polygon[GRID.polygon.3], polygon[GRID.polygon.4], text[GRID.text.5], text[GRID.text.6], text[GRID.text.7], text[GRID.text.8], text[GRID.text.9])
Answer: According to the diagram, about 10.4% of Americans live below the poverty and only speak English.
Answer: 14.6%+20.7%-4.2%=31.1%
Answer: We need to find those people who are not below the poverty line or speak a foreign language, so we use 1 to minus the answer of d. 1-0.311=0.689.
Answer: No, those two event are not independent. Using the multiplication rule, those people lives below the poverty line and speak a foreign lanuage is 14.6% * 20.7= 3.0222%, which doesn’t equal to 4.2%, so they are not independent.
Assortative mating. (3.18, p. 111) Assortative mating is a nonrandom mating pattern where individuals with similar genotypes and/or phenotypes mate with one another more frequently than what would be expected under a random mating pattern. Researchers studying this topic collected data on eye colors of 204 Scandinavian men and their female partners. The table below summarizes the results. For simplicity, we only include heterosexual relationships in this exercise.
Answer: (108+114-78)/204= 0.70588
Answer:78/114=0.6842105
Answer:19/54=0.3518519
Answer:No. They are not independent. Use the multiplication Rule for Independent process, blue eye males and blue eye partners should be (114/204)*(108/204)=0.2958478, but the dataset shows the probability of blue eye males and blue eye females is 78/204=0.3823529. Apparently, these two number is not equal.
Books on a bookshelf. (3.26, p. 114) The table below shows the distribution of books on a bookcase based on whether they are nonfiction or fiction and hardcover or paperback.
Answer:(28/95)*(59/94)=0.1849944
Answer: (72/95)*(28/94)=0.2257559
Answer: (72/95)*(28/95)=0.2233795
Answer: Remove or put back the book will affect the denominator. 94 and 95 doesn’t have many differences, so the answer is very similar.
Baggage fees. (3.34, p. 124) An airline charges the following baggage fees: $25 for the first bag and $35 for the second. Suppose 54% of passengers have no checked luggage, one piece of checked luggage and 12% have two pieces. We suppose a negligible portion of people check more than two bags.
# Average revenue per passenger:
average<-0*0.54+25*0.34+0.12*60
average
## [1] 15.7
#standard deviation
sd<-sqrt((0-average)^2*0.54+(25-average)^2*0.34+(60-average)^2*0.12)
sd
## [1] 19.95019
Answer:revenue=15.7*120=1884
standard deviation is the same, 19.95.
Income and gender. (3.38, p. 128) The relative frequency table below displays the distribution of annual total personal income (in 2009 inflation-adjusted dollars) for a representative sample of 96,420,486 Americans. These data come from the American Community Survey for 2005-2009. This sample is comprised of 59% males and 41% females.
income <- c(0.022,0.047,0.158,0.183,0.212,0.139,0.058,0.084,0.097)
barplot(income)
Answer: The distribution of the plot is vaguely normally distributed but shows two peaks.
Answer: P=0.022+0.047+0.158+0.183+0.212=0.622
Answer: 0.622*0.41=0.25502
The assumptions I am making is 59% males and 41% females, and they are all independent.
Answer: My assumption is base on the 59% males and 41% females who make less than $50,000. The same data source indicate 71.8% of females make less than $50,000, which means my probability calculation of 0.25502 is incorrect. It should be 0.718*0.41=0.29438