Description

The following is the graded problems for the Probability chapter of Open Intro to Statistics. My answers to the questions are bolded. The headers correspond to a question.

2.6 Dice Rolls

If you roll a pair of fair dice, what is the probability of

  1. getting a sum of 1? 0. It is impossible.

  2. getting a sum of 5? 4/36 or 0.1111111

  3. getting a sum of 12? 1/36 or 0.02777778

2.8 Poverty and Language

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.

  1. Are living below the poverty line and speaking a foreign language at home disjoint? No because if they were there wouldn’t be the 4.2% that fall into both categories. It would be 0%.

  2. Draw a Venn diagram summarizing the variables and their associated probabilities.

library(VennDiagram)
grid.newpage()
draw.pairwise.venn(area1 = 20.7, area2 = 14.6, cross.area = 4.2, category = c("Foreign Lang", "Poverty"), fill = c("cornflower blue", "yellow"))

  1. What percent of Americans live below the poverty line and only speak English at home? 10.4%

  2. What percent of Americans live below the poverty line or speak a foreign language at home? 26.9%

  3. What percent of Americans live above the poverty line and only speak English at home? 73.1%

  4. Is the event that someone lives below the poverty line independent of the event that the person speaks a foreign language at home? No. If they were independent than the probability of living in poverty would be the same for those that speak english and those that don’t.

2.20 Assortative Mating

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.

Partner (female)
Blue Brown Green Total
Self (male) Blue 78 23 13 114
Brown 19 23 12 54
Green 11 9 16 36
Total 108 55 41 204
  1. What is the probability that a randomly chosen male respondent or his partner has blue eyes? (108 + 114 - 78)/204 = 144/204 = 0.7058824

  2. What is the probability that a randomly chosen male respondent with blue eyes has a partner with blue eyes? 78/114 = 0.6842105

  3. What is the probability that a randomly chosen male respondent with brown eyes has a partner with blue eyes? 19/54 = 0.3518519 What about the probability of a randomly chosen male respondent with green eyes having a partner with blue eyes? 11/36 = 0.3055556

  4. Does it appear that the eye colors of male respondents and their partners are independent? Explain your reasoning. No. If they were independent, than the female eye colors would be evenly distributed across the categories.

2.30 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.

Format
Hardcover Paperback Total
Type Fiction 13 59 72
Nonfiction 15 8 23
Total 28 67 95
  1. Find the probability of drawing a hardcover book first then a paperback fiction book second when drawing without replacement. 28/95 x 59/94 = 0.2947368 x 0.6276596 = 0.1849944

  2. Determine the probability of drawing a fiction book first and then a hardcover book second, when drawing without replacement. 72/95 x 28/94 = 0.7578947 x 0.2978723 = 0.2257559

  3. 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.72/95 x 28/95 = 0.7578947 x 0.2978723 = 0.2233795

  4. The final answers to parts (b) and (c) are very similar. Explain why this is the case. Because they are basically the same scenario. The only difference is the second one was drawing with replacement.

2.38 Baggage Fees

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, 34% have one piece of checked luggage and 12% have two pieces. We suppose a negligible portion of people check more than two bags.

  1. Build a probability model, compute the average revenue per passenger, and compute the corresponding standard deviation.
get_fees <- function(n){
  zero_fee <- n * 0.54
  twenty_five_fee <- n * 0.34
  sixty_fee <- n * 0.12
  c(rep(0, zero_fee), rep(25, twenty_five_fee), rep(60, sixty_fee))
}
fees <- get_fees(100)
mean(fees)
## [1] 15.7

Average revenue = $15.70

sd(fees)
## [1] 20.05069

Standard deviation = $20.05

  1. About how much revenue should the airline expect for a flight of 120 passengers? With what standard deviation? Note any assumptions you make and if you think they are justified.
fees_120 <-get_fees(120)
mean(fees_120)
## [1] 15.59322
sd(fees_120)
## [1] 19.98043

The average is $15.59 with a standard deviation of $19.98. This assumes that the proportions hold, that the airplane has space for the 70 bags and that the airline prices are unchanged. I think that these are all reasonable assumptions.

2.44 Income and Gender

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 Total
$1 to $9,999 or loss 2.2%
$10,000 to $14,999 4.7%
$15,000 to $24,999 15.8%
$25,000 to $34,999 18.3%
$35,000 to $49,999 21.2%
$50,000 to $64,999 13.9%
$65,000 to $74,999 5.8%
$75,000 to $99,999 8.4%
$100,000 or more 9.7%
  1. Describe the distribution of total personal income. Long tailed/right skewed

  2. What is the probability that a randomly chosen US resident makes less than $50,000 per year? 0.02 + 0.047 + 0.158 + 0.183 + 0.213 = 0.621

  3. What is the probability that a randomly chosen US resident makes less than $50,000 per year and is female? Note any assumptions you make. 0.41 the same as the probability that they are female. This assumes income is not dependant on gender (a horrible assumption which I don’t believe is true).

  4. The same data source indicates that 71.8% of females make less than $50,000 per year. Use this value to determine whether or not the assumption you made in part (c) is valid. This indicates that the assumption of income level is independant of gender is not true.