A bag contains 5 green and 7 red jellybeans. How many ways can 5
jellybeans be withdrawn from the bag so that the number of green ones
withdrawn will be less than 2?
Solution 1
prob1 = choose(5,1) * choose(7,4) + choose(5,0) * choose(7,5)
prob1
## [1] 196
A certain congressional committee consists of 14 senators and 13
representatives. How many ways can a subcommittee of 5 be formed if at
least 4 of the members must be representatives?
Solution 2
prob2 = choose(14,0) * choose(13,5) + choose(14,1) * choose(13,4)
prob2
## [1] 11297
If a coin is tossed 5 times, and then a standard six-sided die is
rolled 2 times, and finally a group of three cards are drawn from a
standard deck of 52 cards without replacement, how many different
outcomes are possible?
Solution 3
coins = 2^5
deck = 6^2
cards = 52 * 51 * 50
prob3 = coins * cards * deck
prob3
## [1] 152755200
3 cards are drawn from a standard deck without replacement. What is
the probability that at least one of the cards drawn is a 3? Express
your answer as a fraction or a decimal number rounded to four decimal
places.
Solution 4
cards = (48/52) * (47/51) * (46/50)
prob4 = round((1 - cards), 4)
prob4
## [1] 0.2174
Lorenzo is picking out some movies to rent, and he is primarily
interested in documentaries and mysteries. He has narrowed down his
selections to 17 documentaries and 14 mysteries.
Solution 5
Step 1. How many different combinations of 5 movies can he rent?
lorenzo_movies = 17 + 14
prob5_1 = choose(lorenzo_movies, 5)
prob5_1
## [1] 169911
Step 2. How many different combinations of 5 movies can he rent if he wants at least one mystery?
prob5_2 = choose(17,0) * choose(14,5) + choose(17,1)*choose(14,2) + choose(17,2)*choose(14,3) + choose(17,3)*choose(14,2) + choose(17,4)*choose(14,1)
prob5_2
## [1] 148253
In choosing what music to play at a charity fund raising event, Cory
needs to have an equal number of symphonies from Brahms, Haydn, and
Mendelssohn. If he is setting up a schedule of the 9 symphonies to be
played, and he has 4 Brahms, 104 Haydn, and 17 Mendelssohn symphonies
from which to choose, how many different schedules are possible? Express
your answer in scientific notation rounding to the hundredths
place.
Solution 6
schedule = choose(4,3) * choose(104,3) * choose(17,3) * factorial(9)
signif(schedule, 4)
## [1] 1.797e+14
An English teacher needs to pick 13 books to put on his reading list
for the next school year, and he needs to plan the order in which they
should be read. He has narrowed down his choices to 6 novels, 6 plays, 7
poetry books, and 5 nonfiction books.
Solution 7
Step 1: If he wants to include no more than 4 nonfiction books, how many
different reading schedules are possible? Express your answer in
scientific notation rounding to the hundredths place.
step1 = choose(24,13) + choose(5,1)*choose(25,12) + choose(5,2)*choose(24,11) + choose(5,3)*choose(24,10) + choose(5,4)*choose(25,9)
step1_x = step1 * factorial(13)
prob7_1 = signif(step1_x, 4)
prob7_1
## [1] 5.186e+17
Step 2: . If he wants to include all 6 plays, how many different reading schedules are possible? Express your answer in scientific notation rounding to the hundredths place.
step2 = (choose(6,6) * choose(18,7)) * factorial(13)
prob7_2 = signif(step2, 4)
prob7_2
## [1] 1.982e+14
Zane is planting trees along his driveway, and he has 5 sycamores and
5 cypress trees to plant in one row. What is the probability that he
randomly plants the trees so that all 5 sycamores are next to each other
and all 5 cypress trees are next to each other? Express your answer as a
fraction or a decimal number rounded to four decimal places.
Solution 8
denom = factorial(10)/(factorial(5) * factorial(5))
zane = 2 / denom
prob8 = round(zane, 4)
prob8
## [1] 0.0079
If you draw a queen or lower from a standard deck of cards, I will
pay you $4. If not, you
pay me $16. (Aces are considered the highest card in the deck.)
Solution 9
Step 1. Find the expected value of the proposition. Round your answer to
two decimal places. Losses must be expressed as negative values.
expected_value = (4*(44/52) + (-16 * (8/52)))
prob9_1 = round(expected_value, 2)
prob9_1
## [1] 0.92
Step 2. If you played this game 833 times how much would you expect to win or lose? Round your answer to two decimal places. Losses must be expressed as negative values.
prob9_2 = round(expected_value*833, 2)
prob9_2
## [1] 768.92