Graded

2.6 Dice rolls

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

  1. getting a sum of 1?

ANSWER: 0

  1. getting a sum of 5?

ANSWER: 0.1111111

  1. getting a sum of 12? ANSWER: 0.0277778

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, these are not mutually exclusive events. There are people who are both living below the poverty line and speak a language other than English at home.

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

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

Each person living below the poverty line either speaks only English at home or doesn’t.Since .146 of Americans live below the poverty line and .042 speak a language other than English at home, the other .104 only speak English at home.

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

P(below PL) +P(speak FL)- P(both)= 0.146 + 0.207 - 0.042 = 0.311 = 31.1% (e) What percent of Americans live above the poverty line and only speak English at home?

1 - P(below PL or speak FL) = 1 - 0.311 = 0.689 = 68.9% (f) Is the event that someone lives below the poverty line independent of the event that the person speaks a foreign language at home?

Using the multiplication rule: P(below PL) * P(speak FL)= .146 * .207 != .042, so the events are dependant.

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.

2.20

2.20

  1. What is the probability that a randomly chosen male respondent or his partner has blue eyes?

114/204 + 108/204 - 78/204 = 0.71

  1. What is the probability that a randomly chosen male respondent with blue eyes has a partner with blue eyes?

This is the conditional probability: P (female=blue|male=blue)= 78/114 = 0.68

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

  2. Does it appear that the eye colors of male respondents and their partners are independent? Explain your reasoning.

P(BlueM and BlueF)= 78/204; P(BlueM) * P(BlueF) != P(BlueM and BlueF), so we can conclude that the events are not independant.

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.

2.30

2.30

  1. Find the probability of drawing a hardcover book first then a paperback fiction book second when drawing without replacement. 0.185

  2. Determine the probability of drawing a fiction book first and then a hardcover book second, when drawing without replacement. 0.224

  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.

Since replacement, we no longer need to worry about whether the fiction book drawn first is hardcover or paperback.0.223

  1. The final answers to parts (b) and (c) are very similar. Explain why this is the case.

The law of large numbers helps us here. When we’re sampling without replacement we’re really only dealing with the different between 94 and 95 total samples. Thus, the difference between is negligible.

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.
# a) 
value <- c(0, 25, 25+35)
probs <- c(.54, .34, .12)
EX <- sum(value * probs)
# the expected value or avg revenue per passenger: 
EX
[1] 15.7
cst <- round(sqrt(sum((value-EX)^2 * probs)), 3)
# corresponding standard deviation: 
cst
[1] 19.95
  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.
# b)
# expected revenue for 120 passengers: 
EX * 120
[1] 1884
# expected SD for 120 passengers:
round(sqrt(120*cst^2), 3)
[1] 218.541
#    

We assume this is a discrete random variable, since there are a finite number of seats available on any given flight.

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 <- c("$1 to $9,999", "$10,000 to $14,999", "$15,000 to $24,999",
            "$25,000 to $34,999", "$35,000 to $49,999", 
            "$50,000 to $64,999", "$65,000 to $74,999",
            "$75,000 to $99,999", "$100,000 or more")
Total <- c(.022, .047, .158, .183, .212, .139, .058, .084, .097)
df <- data.frame(Income, Total)
df
##               Income Total
## 1       $1 to $9,999 0.022
## 2 $10,000 to $14,999 0.047
## 3 $15,000 to $24,999 0.158
## 4 $25,000 to $34,999 0.183
## 5 $35,000 to $49,999 0.212
## 6 $50,000 to $64,999 0.139
## 7 $65,000 to $74,999 0.058
## 8 $75,000 to $99,999 0.084
## 9   $100,000 or more 0.097
  1. Describe the distribution of total personal income.
barplot(df$Total, main="Distribution of Personal Income, American Community Survey for 2005-2009")

  1. What is the probability that a randomly chosen US resident makes less than $50,000 per year? 2.2 + 4.7 + 15.8 + 18.3 + 21.2 = 62.2 %
  2. 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. P(less than 50,000 and gender = female) = P(less than $50,000) * P(gender= female) = 0.622 x 0.410 = 0.255 = 25.5%
  3. 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. Gender and income are dependent variables,I am not able to calculate the probability of 71.8% of females making less than $50,000 because the total population making less than 50,000 (C) is 62.2%.