CHAPTER 1 HOMEWORK - 2.6, 2.8, 2.20, 2.30, 2.38, 2.44
Are living below the poverty line and speaking a foreign language at home disjoint? No because both may occur at the same time
Draw a Venn diagram summarizing the variables and their associated probabilities.
library(VennDiagram)
## Loading required package: grid
## Loading required package: futile.logger
vennn <- draw.pairwise.venn(14.6, 20.7,cross.area=4.2, c("Poverty", "Non-English"), fill=c("red", "yellow"), cat.dist=-0.08, ind=FALSE)
grid.draw(vennn)
What percent of Americans live below the poverty line and only speak English at home? 11.5%
What percent of Americans live below the poverty line or speak a foreign language at home? 31.1
What percent of Americans live above the poverty line and only speak English at home? 67.7%
Is the event that someone lives below the poverty line independent of the event that the person speaks a foreign language at home? No
Find the probability of drawing a hardcover book first then a paperback fiction book second when drawing without replacement. 18.5%
Determine the probability of drawing a fiction book first and then a hardcover book second, when drawing without replacement. 22.4%
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)(28/95) = 22.3%
The final answers to parts (b) and (c) are very similar. Explain why this is the case. The difference of .1% reflects the inclusion of a single book within the pool of 95 books
nobag <- 0
onebag <- 25
twobag <- 25+35
bagfee <- c(nobag, onebag, twobag)
percent <- c(0.54, 0.34, 0.12)
revenue <- bagfee * percent
x <- sum(revenue)
sd <- sqrt((nobag - x)^2 * (percent[1]) + (onebag - x)^2 *
(percent[2]) + (twobag - x)^2 * (percent[3]))
x
## [1] 15.7
sd
## [1] 19.95019
revenue2 <- 120 * x
Describe the distribution of total personal income. right-skewed since most people make less than the median of 50,000
What is the probability that a randomly chosen US resident makes less than $50,000 per year? 62.2%
What is the probability that a randomly chosen US resident makes less than $50,000 per year and is female? 25.50%
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. Assumption Invalid - With only 41% of the study representing women I not have adequate data to make accurate assumption