Exercise 3.25

Chips in a bag. Imagine you have a bag containing 5 red, 3 blue, and 2 orange chips

  1. Suppose you draw a chip and it is blue. If drawing without replacement, what is the probability the next is also blue?
prob<-choose(2, 1)/choose(9, 1)
prob
## [1] 0.2222222
  1. Suppose you draw a chip and it is orange, and then you draw a second chip without replacement. What is the probability this second chip is blue?
prob<-choose(3, 1)/choose(9, 1)
prob
## [1] 0.3333333
  1. If drawing without replacement, what is the probability of drawing two blue chips in a row?
prob<- (choose(3, 1)/choose(10, 1))*(choose(2, 1)/choose(9, 1))
prob
## [1] 0.06666667
  1. When drawing without replacement, are the draws independent? Explain.