0/(6*6)## [1] 0
Explanation: A dice has a minimum face value of 1 so two dice rolled can have atleast 1 each resuting in minimum sum of 2
4/(6*6)## [1] 0.1111111
Explanation: (1,4) + (2,3) + (3,2) + (4,1) there are 4 combinations that can result in sum of 5 out of 36 possible combinations
1/(6*6)## [1] 0.02777778
Explanation: (6,6) there is only 1 that can result in sum of 12 out of 36 possible combinations
Data collected at elementary schools in DeKalb County, GA suggest that each year roughly 25% of students miss exactly one day of school, 15% miss exactly 2 days, and 28% miss exactly 3 or more days due to sickness.
1 - 0.25 - 0.15 - 0.28## [1] 0.32
0.32 + 0.25## [1] 0.57
0.25 + 0.15 + 0.28## [1] 0.68
0.32 * 0.32## [1] 0.1024
0.68 * 0.68## [1] 0.4624
The Behavioral Risk Factor Surveillance System (BRFSS) is an annual telephone survey designed to identify risk factors in the adult population and report emerging health trends. The following table displays the distribution of health status of respondents to this survey (excellent, very good, good, fair, poor) and whether or not they have health insurance.
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
Are being in excellent health and having health coverage mutually exclusive?
Answer: No
Explanation: P(Excellent + Coverage) = 0.2099 ~ 0.21 - Since the intersection does not equal to zero, hence the two events (having excellent health and having health coverage) are not mutually exclusive.
What is the probability that a randomly chosen individual has excellent health?
Answer: P(Excellent) = P(Excellent + No Coverage) + P(Excellent + Coverage) = 0.0230 + 0.2099 = 0.2329
0.0230 + 0.2099## [1] 0.2329
0.2099 / (0.2099 + 0.3123 + 0.2410 + 0.0817 + 0.0289)## [1] 0.2402152
0.0230 / (0.0230 + 0.0364 + 0.0427 + 0.0192 + 0.0050)## [1] 0.1821061
Edison Research gathered exit poll results from several sources for the Wisconsin recall election of Scott Walker. They found that 53% of the respondents voted in favor of Scott Walker. Additionally, they estimated that of those who did vote in favor for Scott Walker, 37% had a college degree, while 44% of those who voted against Scott Walker had a college degree. Suppose we randomly sampled a person who participated in the exit poll and found that he had a college degree. What is the probability that he voted in favor of Scott Walker?
Answer: P(for Scott Walker | College Degree) = P(for Scott Walker + College Degree) / P(College Degree) = P(for Scott Walker + College Degree) / P(for Scott Walker + College Degree) + P(against Scott Walker + College Degree) = (0.530.37)/(0.530.37 + 0.47*0.44) = 0.1961/(0.1961+0.2068)=0.1961/0.4029=0.4867
(0.53*0.37)/(0.53*0.37 + 0.47*0.44)## [1] 0.4867213
Explanation: P(for Scott Walker) = (Votes for Scott Walker)/(Total votes) = 0.53,
P(for Scott Walker + College Degree) = (Votes for Scott Walker * College Degree ) / (Total Votes) = 0.530.37,
P(against Scott Walker + College Degree) = (Votes against Scott Walker + College Degree ) / (Votes for Scott Walker) = (1-0.53)0.44=0.47*0.44
The table below shows the distribution of books on a bookcase based on whether they are nonfiction or fiction and hardcover or paperback.
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
((13+15)/(13+15+59+8)) * (59/((13+15)-1+59+8))## [1] 0.1849944
Explanation: Mutually independent/exclusive process
(59/72)*((72/95)*(28/94)) + (13/72)*((72/95)*(27/94))## [1] 0.2243001
Explanation: Mutually dependent/inclusive process
((13+59)/(13+59+15+8)) * ((13+15)/(13+59+15+8))## [1] 0.2233795
Explanation: Mutually independent/exclusive process
Andy is always looking for ways to make money fast. Lately, he has been trying to make money by gambling. Here is the game he is considering playing: The game costs 2 dollars to play. He draws a card from a deck. If he gets a number card (2-10), he wins nothing. For any face card (jack, queen or king), he wins 3 dollars. For any ace, he wins 5 dollars and he wins an extra $20 if he draws the ace of clubs.
(a) Create a probability model and find Andy’s expected profit per game.
Answer: 52 deck of cards have 13 of each suit = Clubs (???), Diamonds (???), Hearts (???) and Spades (???)
13 of each suit comprises of = Ace, 2-10 Number Cards, Jack, Queen, King
P($0) = 49 / 413 (Due to 9 number cards) => Profit = $0 - $2 = -$2 (Loss)
P($3) = 43 / 413 (Due to 3 different Face cards = Jack, Queen, King) => Profit = $3 - $2 = $1 (Profit)
P($5) = 3 / 52 (Due to 1 Ace card in 3 suits excluding Clubs) => Profit = $5 - $2 = $3 (Profit)
P($20) = 1 / 52 (Due to 1 Ace card with suit Club) => Profit = $5 + $20 - $2 = $23 (Profit)
((9/13)*-2)+((3/13)*1)+((3/52)*3)+((1/52)*23)## [1] -0.5384615
Expected Profit = (P($0)-2)+(P($3)2)+P($5)+(P($20)18) = ((9/13)-$2)+((3/13)$1)+((3/52)$3)+((1/52)*\(23)=\)-0.54
Ice cream usually comes in 1.5 quart boxes (48 fluid ounces), and ice cream scoops hold about 2 ounces. However, there is some variability in the amount of ice cream in a box as well as the amount of ice cream scooped out. We represent the amount of ice cream in the box as X and the amount scooped out as Y . Suppose these random variables have the following means, standard deviations, and variances:
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
48+3*2## [1] 54
sqrt(1 + (0.0625*3))## [1] 1.089725
48-2## [1] 46
sqrt(1 + 0.0625)## [1] 1.030776