A box contains 54 red marbles, 9 white marbles, and 75 blue marbles. If a marble is randomly selected from the box, what is the probability that it is red or blue? Express your answer as a fraction or a decimal number rounded to four decimal places.
Solution:
\((54+75)/(54+75+9)=0.9347\)
(54+75)/(54+75+9)
## [1] 0.9347826
You are going to play mini golf. A ball machine that contains 19 green golf balls, 20 red golf balls, 24 blue golf balls, and 17 yellow golf balls, randomly gives you your ball. What is the probability that you end up with a red golf ball? Express your answer as a simplified fraction or a decimal rounded to four decimal places.
Solution:
\(20/(19+20+24+17)=0.2500\)
20/(19+20+24+17)
## [1] 0.25
A pizza delivery company classifies its customers by gender and location of residence. The research department has gathered data from a random sample of 1399 customers. The data is summarized in the table below. Gender and Residence of Customers Males Females Apartment 81 228 Dorm 116 79 With Parent(s) 215 252 Sorority/Fraternity House 130 97 Other 129 72
What is the probability that a customer is not male or does not live with parents? Write your answer as a fraction or a decimal number rounded to four decimal places.
Solution:
\((228+79+97+72)/1399=0.3402\)
(228+79+97+72)/1399
## [1] 0.340243
Determine if the following events are independent. Going to the gym. Losing weight.
Solution:
Actually, some people might urgue that they are independent events, but I will go with common sense and my answer is A, dependent.
A veggie wrap at City Subs is composed of 3 different vegetables and 3 different condiments wrapped up in a tortilla. If there are 8 vegetables, 7 condiments, and 3 types of tortilla available, how many different veggie wraps can be made?
Solution:
\((8!/(3!*5!))*(7!/(3!*4!))*(3!/(2!*1!))=5880\)
(factorial(8)/(factorial(3)*factorial(5)))*(factorial(7)/(factorial(3)*factorial(4)))*(factorial(3)/(factorial(2)*factorial(1)))
## [1] 5880
Determine if the following events are independent. Jeff runs out of gas on the way to work. Liz watches the evening news.
Solution:
The newly elected president needs to decide the remaining 8 spots available in the cabinet he/she is appointing. If there are 14 eligible candidates for these positions (where rank matters), how many different ways can the members of the cabinet be appointed?
Solution:
\(14!/(14-8)!=121080960\)
factorial(14)/factorial(6)
## [1] 121080960
A bag contains 9 red, 4 orange, and 9 green jellybeans. What is the probability of reaching into the bag and randomly withdrawing 4 jellybeans such that the number of red ones is 0, the number of orange ones is 1, and the number of green ones is 3? Write your answer as a fraction or a decimal number rounded to four decimal places.
Solution:
\((4/(4+9+9))*(9/21)*(8/20)*(7/19)+(9/22)*(4/21)*(8/20)*(7/19)+(9/22)*(8/21)*(4/20)*(7/19)+(9/22)*(8/21)*(4/20)*(7/19)=4*4*9*8*7/(22*21*20*19)=0.0459\)
4*4*9*8*7/(22*21*20*19)
## [1] 0.04593301
Evaluate the following expression.
\(11!/7!\)
Solution:
\(11!/7!=1*2*3...*11/(1*2...*7)=8*9*10*11=7920\)
8*9*10*11
## [1] 7920
Describe the complement of the given event. 67% of subscribers to a fitness magazine are over the age of 34.
Solution:
33% of subsribers are under the age of 34 or are exactly 34 year old.
If you throw exactly three heads in four tosses of a coin you win $97. If not, you pay me $30.
Step 1. Find the expected value of the proposition. Round your answer to two decimal places.
Solution:
I will assume a fair coin.
\(4*0.5^4*97-(1-4*0.5^4)*30=1.75\)
4*0.5^4*97-(1-4*0.5^4)*30
## [1] 1.75
Step 2. If you played this game 559 times how much would you expect to win or lose? (Losses must be entered as negative.)
Solution:
\(559*1.75=978.25\)
559*1.75
## [1] 978.25
Flip a coin 9 times. If you get 4 tails or less, I will pay you $23. Otherwise you pay me $26.
Step 1. Find the expected value of the proposition. Round your answer to two decimal places.
Solution:
\(9!(8!1!)*0.5^9+9!/(7!*2!)*0.5^9+9!/(6!*3!)*0.5^9+9!/(5!4!)*0.5^9=0.498\)
\(0.498*23-(1-0.498)*26=-1.60\)
prob<-0.5^9*factorial(9)*(1/factorial(8)+1/(factorial(7)*factorial(2))+1/(factorial(6)*factorial(3))+1/(factorial(5)*factorial(4)))
outcome<-prob*23-(1-prob)*26
outcome
## [1] -1.595703
Step 2. If you played this game 994 times how much would you expect to win or lose? (Losses must be entered as negative.)
Solution:
\(-1.60*994=-1586.13\)
outcome*994
## [1] -1586.129
The sensitivity and specificity of the polygraph has been a subject of study and debate for years. A 2001 study of the use of polygraph for screening purposes suggested that the probability of detecting a liar was .59 (sensitivity) and that the probability of detecting a “truth teller” was .90 (specificity). We estimate that about 20% of individuals selected for the screening polygraph will lie. a. What is the probability that an individual is actually a liar given that the polygraph detected him/her as such? (Show me the table or the formulaic solution or both.)
Solution:
\(0.59*0.2/(0.59*0.2+0.1*0.8)=0.596\)
0.59*0.2/(0.59*0.2+0.1*0.8)
## [1] 0.5959596
Solution:
\(0.9*0.8/(0.41*0.2+0.9*0.8)=0.8978\)
0.9*0.8/(0.41*0.2+0.9*0.8)
## [1] 0.8977556
Solution:
\(Pr(Liar)+Pr(Liar by polygraph/"Truth-teller")=0.2+0.1*0.8=0.28\)