Chapter 5: Distributions and Densities, Section 1- Important Distributions, Question 18 (pg.199)

Question

A baker blends 600 raisins and 400 chocolate chips into a dough mix and, from this, makes 500 cookies.

a. Find the probability that a randomly picked cookie will have no raisins.
b. Find the probability that a randomly picked cookie will have exactly two chocolate chips.
c. Find the probability that a randomly chosen cookie will have at least two bits (raisins or chips) in it.

Solution

Let’s first create variables for our raisins, chips, and cookies:

numR <- 600
numCC <- 400
numC <- 500

avgRperC <- numR / numC
avgCCperC <- numCC / numC
avgBitsperC <- (numR + numCC) / numC