1

There are 540 identical plastic chips numbered 1 through 540 in a box. What is the probability of reaching into the box and randomly drawing the chip numbered 505? Express your answer as a fraction or a decimal number rounded to four decimal places.

1/540

2

Write out the sample space for the given experiment. Separate your answers using commas. When deciding what you want to put into a salad for dinner at a restaurant, you will choose one of the following extra toppings: asparagus, cheese. Also, you will add one of following meats: eggs, turkey. Lastly, you will decide on one of the following dressings: French, vinaigrette. (Note: Use the following letters to indicate each choice: A for asparagus, C for cheese, E for eggs, T for turkey, F for French, and V for vinaigrette.)

S = {A, C, E, T, F, V}

3

A card is drawn from a standard deck of 52 playing cards. What is the probability that the card will be a heart and not a face card? Write your answer as a fraction or a decimal number rounded to four decimal places.

P(heart and not face card) = 10/52

4

A standard pair of six-sided dice is rolled. What is the probability of rolling a sum less than 6? Write your answer as a fraction or a decimal number rounded to four decimal places.

5/6

5

A pizza delivery company classifies its customers by gender and location of residence. The research department has gathered data from a random sample of 2001 customers. The data is summarized in the table below.

##                       index Males Females
## 1                 Apartment   233     208
## 2                      Dorm   159     138
## 3            With Parent(s)   102     280
## 4 Sorority/Fraternity House   220     265
## 5                     Other   250     146
## 6                     Total   964    1037

What is the probability that a customer is male? Write your answer as a fraction or a decimal number rounded to four decimal places.

964 / 2001

6

Three cards are drawn with replacement from a standard deck. What is the probability that the first card will be a club, the second card will be a black card, and the third card will be a face card? Write your answer as a fraction or a decimal number rounded to four decimal places.

p = 13/52 * 26/52 * 12/52
print(p)
## [1] 0.02884615

7

Two cards are drawn without replacement from a standard deck of 52 playing cards. What is the probability of choosing a spade for the second card drawn, if the first card, drawn without replacement, was a heart? Write your answer as a fraction or a decimal number rounded to four decimal places.

p = 13/52 * 13/51
print(p)
## [1] 0.06372549

8

Two cards are drawn without replacement from a standard deck of 52 playing cards. What is the probability of choosing a heart and then, without replacement, a red card? Write your answer as a fraction or a decimal number rounded to four decimal places.

p = 13/52  * 25/51
print(p)
## [1] 0.122549

9

There are 85 students in a basic math class. The instructor must choose two students at random.

##        index Males Females
## 1   Freshmen    12      12
## 2 Sophomores    19      15
## 3    Juniors    12       4
## 4    Seniors     7       4

What is the probability that a junior female and then a freshmen male are chosen at random? Write your answer as a fraction or a decimal number rounded to four decimal places.

# since order doesn't matter, we have to account for both scenarios: junior female being picked first and freshmen male being picked first. and also account for the probability of both, which is 0 here.  
p = (4/85 * 12/84) + (12/85 + 4/84) - 0
print (p)
## [1] 0.1955182

10

Out of 300 applicants for a job, 141 are male and 52 are male and have a graduate degree.

Step 1. What is the probability that a randomly chosen applicant has a graduate degree, given that they are male? Enter your answer as a fraction or a decimal rounded to four decimal places.

p = 52/141
print (p)
## [1] 0.3687943

Step 2. If 102 of the applicants have graduate degrees, what is the probability that a randomly chosen applicant is male, given that the applicant has a graduate degree? Enter your answer as a fraction or a decimal rounded to four decimal places.

p = 52/102
print(p)
## [1] 0.5098039

11

A value meal package at Ron’s Subs consists of a drink, a sandwich, and a bag of chips. There are 6 types of drinks to choose from, 5 types of sandwiches, and 3 types of chips. How many different value meal packages are possible?

possible = 6 * 5 * 3 
print (possible)
## [1] 90

12

A doctor visits her patients during morning rounds. In how many ways can the doctor visit 5 patients during the morning rounds?

visits = 5 * 4 * 3 * 2
print(visits)
## [1] 120

13

A coordinator will select 5 songs from a list of 8 songs to compose an event’s musical entertainment lineup. How many different lineups are possible?

#5P8 = 8! / (8-5)! = 
P = 8*7*6*5*4
print(P)
## [1] 6720

14

A person rolls a standard six-sided die 9 times. In how many ways can he get 3 fours, 5 sixes and 1 two?

multinomial distribution p = [ n! / (n1!)(n2!)(n3!) ] * p1n1 * p2n2 * p3n3 = [ 9! / (3)(5)(1)] * (1/6) * (1/6) * (1/6)

p = ((9*8*7*6*5*4*3*2) / (3*5*1)) * (1/6) * (1/6) * (1/6) 
print(p)
## [1] 112

15

How many ways can Rudy choose 6 pizza toppings from a menu of 14 toppings if each topping can only be chosen once?

14C6 = 14! / (14-6)!6! = 14!/8!6! = (14131211109) / (6543*2)

p = (14*13*12*11*10*9) / (6*5*4*3*2) 
print(p)
## [1] 3003

16

3 cards are drawn from a standard deck of 52 playing cards. How many different 3-card hands are possible if the drawing is done without replacement?

poss = 52*51*50
print(poss)
## [1] 132600

17

You are ordering a new home theater system that consists of a TV, surround sound system, and DVD player. You can choose from 12 different TVs, 9 types of surround sound systems, and 5 types of DVD players. How many different home theater systems can you build?

sys = 12*9*5
print(sys)
## [1] 540

18

You need to have a password with 5 letters followed by 3 odd digits between 0 - 9 inclusively. If the characters and digits cannot be used more than once, how many choices do you have for your password?

choices = 26*25*24*23*22*10*9*8
print(choices)
## [1] 5683392000

19

Evaluate the following expression. 9𝑃4

9!/(9-4)! = 9!/5! = 987*6

result = 9*8*7*6
print(result)
## [1] 3024

20

Evaluate the following expression. 11C8

11!/(11-8)!8! = 11!/(3!8!) = (11109)/ (3*2)

result = (11*10*9)/ (3*2)
print(result)
## [1] 165

� �𝐶8 ## 21 Evaluate the following expression. 12P8 / 12C4

12P8 = 12!/(12-8)! = 12!/4! = (12111098765) 12C4 = 12!/(12-4)!4! = 12!/8!4! = (1211109)/(432)

results = (12*11*10*9*8*7*6*5) / ((12*11*10*9)/(4*3*2))
print(results)
## [1] 40320

22

The newly elected president needs to decide the remaining 7 spots available in the cabinet he/she is appointing. If there are 13 eligible candidates for these positions (where rank matters), how many different ways can the members of the cabinet be appointed?

13P7 = 13!/(13-7)! = 13!/6! = 13121110987

result = 13*12*11*10*9*8*7
print(result)
## [1] 8648640

23

In how many ways can the letters in the word ‘Population’ be arranged? 10!

ways = 10*9*8*7*6*5*4*3*2
print(ways)
## [1] 3628800

24

Consider the following data:

x = c(5,6,7,8,9)
y = c(0.1,0.2,0.3,0.2,0.2) 
df = data.frame(x,y)
print (df)
##   x   y
## 1 5 0.1
## 2 6 0.2
## 3 7 0.3
## 4 8 0.2
## 5 9 0.2
# Step 1. Find the expected value E(x). Round your answer to one decimal place.
df$product = df$x * df$y
print (round(sum(df$product),digits=1))
## [1] 7.2
# Step 2. Find the variance. Round your answer to one decimal place.
df$diff = df$x - sum(df$product) 
df$diffsq = df$diff^2
df$diffsqprod = df$diffsq * df$y
print (round(sum(df$diffsqprod),digits=1))
## [1] 1.6
# Step 3. Find the standard deviation. Round your answer to one decimal place.
print (round(sqrt(sum(df$diffsqprod)),digits=1))
## [1] 1.2
# Step 4. Find the value of P(X>=9). Round your answer to one decimal place.
# P(X>=9) = P(x=9) + P(x>9) = 0.2 + 0 = 0.2

# Step 5. Find the value of P(X<=7). Round your answer to one decimal place. 
# P(X<=7) = P(7) + P(6) + P(5) + P(<5) = 0.3 + 0.2 + 0.1 + 0 = 0.6

25

Suppose a basketball player has made 188 out of 376 free throws. If the player makes the next 3 free throws, I will pay you $23. Otherwise you pay me $4. Step 1. Find the expected value of the proposition. Round your answer to two decimal places.

pind = 188/376
n = 3
p_make3 = pind * pind * pind 
p_notall3 = 1 - p_make3 
x = (p_notall3 * 4) - (p_make3 * 23) 
print (round(x,digits=2))
## [1] 0.62

Step 2. If you played this game 994 times how much would you expect to win or lose? (Losses must be entered as negative.)

nCk * p^k * (1-p)^(n-k)

x*994
## [1] 621.25

26

Flip a coin 11 times. If you get 8 tails or less, I will pay you $1. Otherwise you pay me $7. Step 1. Find the expected value of the proposition. Round your answer to two decimal places. This is the probability that you will win, times the amount that you will win, minus the probability that you will lose times the cost to you if you lose. P(k>8) * $7 - (P(k<=8) * $1)

nCk * p^k * (1-p)^(n-k)

k = 8
n = 11
p = 0.5
p8 = choose(11,8) * (p)^k * (1-p)^(n-k) 
print(p8)
## [1] 0.08056641
k=7
p7 = choose(11,8) * (p)^k * (1-p)^(n-k) 
k=6
p6 = choose(11,8) * (p)^k * (1-p)^(n-k) 
k=5
p5 = choose(11,8) * (p)^k * (1-p)^(n-k) 
k=4
p4 = choose(11,8) * (p)^k * (1-p)^(n-k) 
k=3
print(p4)
## [1] 0.08056641
p3 = choose(11,8) * (p)^k * (1-p)^(n-k) 
k=2
p2 = choose(11,8) * (p)^k * (1-p)^(n-k) 
k=1
p1 = choose(11,8) * (p)^k * (1-p)^(n-k) 
print (p1)
## [1] 0.08056641
p8orless = p8 + p7 + p6 + p5 + p4 + p3 + p2 + p1
pmore8 = 1 - p8orless

ev = (pmore8 * 7) - (p8orless * 1) 
print(ev)
## [1] 1.84375

Step 2. If you played this game 615 times how much would you expect to win or lose? (Losses must be entered as negative.)

print (615 * 1.84375)
## [1] 1133.906

27 2 consecutive spades

If you draw two clubs on two consecutive draws from a standard deck of cards you win $583. Otherwise you pay me $35. (Cards drawn without replacement.) Step 1. Find the expected value of the proposition. Round your answer to two decimal places.

p2c = (13/52) * (12/51)
pnot2c = 1 - p2c
ev = (p2c * 583) - ( pnot2c * 35)
print (round(ev, digits=2)) 
## [1] 1.35

Step 2. If you played this game 632 times how much would you expect to win or lose? (Losses must be entered as negative.)

ev* 632
## [1] 855.0588

28 incidence rates w/in pop

A quality control inspector has drawn a sample of 10 light bulbs from a recent production lot. If the number of defective bulbs is 2 or less, the lot passes inspection. Suppose 30% of the bulbs in the lot are defective. What is the probability that the lot will pass inspection? (Round your answer to 3 decimal places)

29

A quality control inspector has drawn a sample of 5 light bulbs from a recent production lot. Suppose that 30% of the bulbs in the lot are defective. What is the expected value of the number of defective bulbs in the sample? Do not round your answer.

30

The auto parts department of an automotive dealership sends out a mean of 5.5 special orders daily. What is the probability that, for any day, the number of special orders sent out will be more than 5? (Round your answer to 4 decimal places)

31 poisson

At the Fidelity Credit Union, a mean of 5.7 customers arrive hourly at the drive-through window. What is the probability that, in any hour, more than 4 customers will arrive? (Round your answer to 4 decimal places)

#lambda is how many customers you expect to arrive in a hour 
lambda = 5.7
k=4
# 1- p(0) + p(1) + p(2) + p(3) + p(4) 
# 1- p(x=0; lambda =5.7) + p(x=1, lambda =5.7)+ p(x=2, lambda =5.7)+ p(x=3, lambda =5.7)+ p(x=4, lambda =5.7)

ppois(4, lambda=5.7, lower=FALSE)
## [1] 0.6727852

32

The computer that controls a bank’s automatic teller machine crashes a mean of 0.4 times per day. What is the probability that, in any 7-day week, the computer will crash no more than 1 time? (Round your answer to 4 decimal places)

where k=1, r=0.4, t=7

mean_week = 2.8
ppois(1,2.8)
## [1] 0.2310782
# prob of crashing no times + 1 time 
p = ppois(0,2.8) + ppois(1,2.8)
print(p)
## [1] 0.2918883

33

A town recently dismissed 8 employees in order to meet their new budget reductions. The town had 6 employees over 50 years of age and 19 under 50. If the dismissed employees were selected at random, what is the probability that more than 1 employee was over 50? Write your answer as a fraction or a decimal number rounded to three decimal places.

34

Unknown to a medical researcher, 10 out of 25 patients have a heart problem that will result in death if they receive the test drug. Eight patients are randomly selected to receive the drug and the rest receive a placebo. What is the probability that less than 7 patients will die? Write your answer as a fraction or a decimal number rounded to three decimal places.