red_marbles = 54
white_marbles = 9
blue_marbles = 75
red_or_blue = red_marbles + blue_marbles
round(red_or_blue / (red_or_blue + white_marbles),4)
## [1] 0.9348
green_gb = 19
red_gb = 20
blue_gb = 24
yellow_gb = 17
round(red_gb/(green_gb+red_gb+blue_gb+yellow_gb),4)
## [1] 0.25
red = 228+79+252+97+72+215
blue = 81+116+130+129
round((red/(red+blue)),4)
## [1] 0.6741
veggies = choose(8,3)
condiments = choose(7,3)
tortillas = 3
veggies*condiments*tortillas
## [1] 5880
factorial(14)/(factorial(14-8))
## [1] 121080960
red_jb = 9
orange_jb = 4
green_jb = 9
branches = choose(red_jb,0)*choose(orange_jb,1)*choose(green_jb,3)
tree = choose(red_jb+orange_jb+green_jb,4)
round(branches/tree,4)
## [1] 0.0459
factorial(11)/factorial(7)
## [1] 7920
33% of subscribers to a fitness magazine are not over the age of 34
eV = round((97/4 - 30*.75),2)
print(c('eV', eV, 'Estimated winnings after 559 reptitions ', eV*559))
## [1] "eV"
## [2] "1.75"
## [3] "Estimated winnings after 559 reptitions "
## [4] "978.25"
# 9 flip , 4 tails, less...23, failure = 26
success = pbinom(4,size = 9, prob = .5)
failure = 1-success
eV = round(23*success - 26*failure,2)
print(c('eV', eV, 'Estimated winnings after 994 reptitions ', eV*994))
## [1] "eV"
## [2] "-1.5"
## [3] "Estimated winnings after 994 reptitions "
## [4] "-1491"
- and (B) are answered in this chart, so is (C) to an extent.
For (C) you can just add the probabilities on the right which is 0.262…Also known as 26%