(a) getting a sum of 1?
The probability if of getting a 1 is 0 - Not possible. Two (2) is the lowest possible outcome.
(b) getting a sum of 5?
There are four ways to get 5: (4,1) = 1/36 + (3,2) = 1/36 + (2,3) = 1/36 + (4,1) = 1/36 = 4/36 or [1/9]
(c) getting a sum of 12?
There is one way to get 12 (6,6) = 1/36
(a) Are living below the poverty line and speaking a foreign language at home disjoint?
No, both outomes happen concurrently 4.2%.
(b) Draw a Venn diagram summarizing the variables and their associated probabilities.
library(VennDiagram)
## Loading required package: grid
## Loading required package: futile.logger
draw.pairwise.venn(area1=14.6, area2= 20.7, cross.area = 4.2, category = c("Below Poverty","Speaks Other Than English"))
## (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])
(c) What percent of Americans live below the poverty line and only speak English at home?
10.4% of Americans live belwo the poverty line and only speak english at home.
(d) What percent of Americans live below the poverty line or speak a foreign language at home?
31.1% of Americans live below the below the poverty line or speak a foreign language at home.
(e) What percent of Americans live above the poverty line and only speak English at home?
AbovePov = 1-.146 = .854, SpeaksEng = 1-.207 = 0.793, AbovPoc and SpeakEng = (0.854 * 0.793) = 0.677
(f) Is the event that someone lives below the poverty line independent of the event that the person speaks a foreign language at home?
The events are independent if P(live in pov | Speaks other than Eng) = P(live in pov) 4.2 <> 14.6. Therefore they are not independent.
** (a) Find the probability of drawing a hardcover book first then a paperback fiction book second when drawing without replacement.**
Hardcover <- 28/95
PaperFiction <- 59 / 94
P <- Hardcover * PaperFiction
P
## [1] 0.1849944
(b) Determine the probability of drawing a fiction book first and then a hardcover book second when drawing without replacement.
Fiction <- 72 /95
Hardcover <- 28 / 94
P <- Fiction * Hardcover
P
## [1] 0.2257559
(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.
Fiction <- 72 /95
Hardcover <- 28 / 95
P <- Fiction * Hardcover
P
## [1] 0.2233795
(d) The final answers to parts (b) and (c) are very similar. Explain why this is the case. In this scenario replacement did not make a big difference because we were only replacing a single book or relatively small portion of all the book 1/95.
(a) Build a probability model, compute the average revenue per passenger, and compute the corresponding standard deviation.
p1 <- 0 * 0.54
p2 <- 25 * 0.34
p3 <- 60 * 0.12
AvgPerCust <- p1 + p2 + p3
AvgPerCust
## [1] 15.7
varAvgCust1 <- (((p1-AvgPerCust)^2) *.54)
varAvgCust1
## [1] 133.1046
varAvgCust2 <- (((p2-AvgPerCust)^2)*.34)
varAvgCust2
## [1] 17.6256
varAvgCust3 <- (((p3-AvgPerCust)^2) *.12)
varAvgCust3
## [1] 8.67
varAvgCust <- varAvgCust1 + varAvgCust2 + varAvgCust3
varAvgCust
## [1] 159.4002
sdPerCust <- sqrt(varAvgCust)
sdPerCust
## [1] 12.62538
(b) 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.
Revenue = 120 * AvgPerCust
Revenue
## [1] 1884
sdRevenue = sqrt(120 * varAvgCust)
sdRevenue
## [1] 138.3041
This assumes the fees and percentage from part a still apply.
(a) Describe the distribution of total personal income.
inc <- data.frame(c("< 10","10-14","15-24","25-34","35-49", "50-64","65-74","75-99","> 100"), c(2.2,4.7,15.8,18.3,21.2,13.9,5.8,8.4,9.7))
colnames(inc) <- c("bin","percent")
barplot(inc$percent, names.arg=inc$bin, xlab="Income Bin", ylab="Percent of Pop")
The distribution is unimodal and is right skewed with a fat right tail(leptokuritic).
(b) What is the probability that a randomly chosen US resident makes less than $50,000 per year?
Plessthan50k <- 0.022+ 0.047 + 0.158 +0.183 + 0.212
Plessthan50k
## [1] 0.622
(c) What is the probability that a randomly chosen US resident makes less than $50,000 per year and female? Note any assumptions you make.
Plt50Kfemale <- Plessthan50k * .41
Plt50Kfemale
## [1] 0.25502
This assumes income and gender are independent.
(d) 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.
femaleLT50 <- 0.718
Plessthan50k
## [1] 0.622
femaleLT50
## [1] 0.718
femakeLT50 != Plessthan50k so my assumption in c may be invalid.