3 Greens: 6C3 X 9C2 2 Greens: 6C2 X 9C3 1 Green : 6C1 X 9C4 No Greens: 6C0 X 9C5
choose(6,3)*choose(9,2)+
choose(6,2)*choose(9,3)+
choose(6,1)*choose(9,4)+
choose(6,0)*choose(9,5)
## [1] 2862
4 Senators: 14C4 X 13C3 5 Senators: 14C5 x 13C2 6 Senators: 14C6 x 13C1 7 Senators: 14C7 X13C0
choose(14,4)*choose(13,3)+
choose(14,5)*choose(13,2)+
choose(14,6)*choose(13,1)+
choose(14,7)*choose(13,0)
## [1] 484913
2^2 x 6^4 x 52 x 51 x 50
(2^2)*(6^4)*(52*51*50)
## [1] 687398400
1- P(no hearts)
Total hands = 52C3
No hearts = 39C3
1-(39C3)/(52C3)
1-(choose(39,3)/choose(52,3))
## [1] 0.5864706
Step 1. How many different combinations of 3 movies can she rent? Answer: _______________
25C3
choose(25,3)
## [1] 2300
Step 2. How many different combinations of 3 movies can she rent if she wants at least one comedy? Answer:
1 comedy: 7C1 x 18C2 2 comedies: 7C2 x 18C1 3 comedies: 7C3 x 18C0
choose(7,1)*choose(18,2)+
choose(7,2)*choose(18,1)+
choose(7,3)*choose(18,0)
## [1] 1484
6 songs - order matters Equal HH/Blues 3HH/3B = 7 x 6 x 5 x 22 x 21 x 20 2HH/2B ??=7 x 6 x 22 x 21 x 39 x38 1HH/ 1 B ???? = 7 x 22 x 41 x 40 x 39 x 38
7*6*5*22*21*20 +
7*6*22*21*39*38+
7*22*41*40*39*38
## [1] 404991048
Step 1. If he has his choices narrowed down to 7 pop, 3 hip-hop, 6 country, and 7 blues songs, and he wants to play no more than 3 country songs, how many different playlists are possible? Express your answer in scientific notation rounding to the hundredths place.
0 Country: 17161514131211109 1 country: 61716151413121110 2 country: 6516151413121110 3 country: 654151413121110
format(17*16*15*14*13*12*11*10*9+
6*17*16*15*14*13*12*11*10+
6*5*16*15*14*13*12*11*10+
6*5*4*15*14*13*12*11*10, scientific=TRUE)
## [1] "1.686485e+10"
Step 2. If he has his choices narrowed down to 7 pop, 3 hip-hop, 6 country, and 7 blues songs, and he wants to play all 7 blues songs, how many different playlists are possible? Express your answer in scientific notation rounding to the hundredths place.
7 blues of 9: 7x6X5X4X3X2X1X16x15
format(7*6*5*4*3*2*1*16*15,scientific=TRUE)
## [1] "1.2096e+06"
EEEBBB or BBBEEE 2 ways total: 6!/3!3!
2/(factorial(6)/(factorial(3)*factorial(3)))
## [1] 0.1
Step 1. Find the expected value of the proposition. Round your answer to two decimal places. Losses must be expressed as negative values.
P(Q or less) X 4 + P(K or A) X(-14)
44/52 x 4 + 8/52 x (-14)
((44/52)*4)+((8/52)*(-14))
## [1] 1.230769
Step 2. If you played this game 759 times how much would you expect to win or lose? Round your answer to two decimal places. Losses must be expressed as negative values.
#52 values of 44 $4, 8 $-15
vect<-c(rep(4,44), rep(-14,8))
#there are 44 cards worth$4
#there are 8 cards worth -$14
# if you play 759 times you will accumulate.....
tot<-0
for (i in 1:759)
{
card<-sample(vect,1)
tot<-tot+card
}
print(tot)
## [1] 966