0/36 #(b) getting a sum of 5? 11/36 #(c) getting a sum of 12? 1/36
32/100 #(b) What is the probability that a student chosen at random misses no more than one day? 57/100 #(c) What is the probability that a student chosen at random misses at least one day? 68/100 #(d) If a parent has two kids at a DeKalb County elementary school, what is the probability that neither kid will miss any school? Note any assumption you must make to answer this question.
(32/100)*(32/100)
## [1] 0.1024
I assume the probability of each child missing school is independent of the other missing school #(e) If a parent has two kids at a DeKalb County elementary school, what is the probability that both kids will miss some school, i.e. at least one day? Note any assumption you make.
(68/100)*(68/100)
## [1] 0.4624
I assume the probability of each child missing school is independent of the other missing school #(f) If you made an assumption in part (d) or (e), do you think it was reasonable? If you didn’t make any assumptions, double check your earlier answers. Yes my assumption is reasonable, the kids have a common diet rich in immune boosting food
mat=matrix(c(.023, 0.0364, 0.0427, 0.0192, 0.0050,0.2099, 0.3123 ,0.2410 ,0.0817,0.0289), byrow=TRUE, nrow=2)
colnames(mat)=c("Excellent", "Very Good","Good", "Fair","Poor")
rownames(mat)=c("No Coverage","Coverage")
mat
## Excellent Very Good Good Fair Poor
## No Coverage 0.0230 0.0364 0.0427 0.0192 0.0050
## Coverage 0.2099 0.3123 0.2410 0.0817 0.0289
no #(b) What is the probability that a randomly chosen individual has excellent health? 23% #(c) What is the probability that a randomly chosen individual has excellent health given that he has health coverage? 21% #(d) What is the probability that a randomly chosen individual has excellent health given that he doesn’t have health coverage? 2% #(e) Do having excellent health and having health coverage appear to be independent? No, as Poor health is dependent with poor health coverage
(53/100)*(40/100)
## [1] 0.212
mymat2=matrix(c(13,59,15,8),nrow=2,byrow=TRUE)
colnames(mymat2)=c("hard","paper")
rownames(mymat2)=c("fiction","nonfiction")
mymat2
## hard paper
## fiction 13 59
## nonfiction 15 8
(28/95)*(59/94)
## [1] 0.1849944
(72/95)*(28/94)
## [1] 0.2257559
(72/95)*(28/95)
## [1] 0.2233795
whether the first chosen book is placed back on the shelf or not affects the probability of the next book to be chosen
(9/13 lose) (3/13 win $1) (3/52 win $3) 1/52 $18)
The game is a better way to lose money - Andy is far more likely to lose than win
mymat3=matrix(c(48,1,1, 2,.25,.0625), nrow=2, byrow=TRUE)
colnames(mymat3)=c("mean", "SD", "Var")
rownames(mymat3)=c("X, In Box","Y, Scooped")
mymat3
## mean SD Var
## X, In Box 48 1.00 1.0000
## Y, Scooped 2 0.25 0.0625
54 ounces #What is the standard deviation of the amount of ice cream served? 1.089725 #(b) How much ice cream would you expect to be left in the box after scooping out one scoop of ice cream? That is, find the expected value of X ??? Y . What is the standard deviation of the amount left in the box? 46 ounces #(c) Using the context of this exercise, explain why we add variances when we subtract one random variable from another. Variance does not change, wheneter we add or subtract