Question: Two functions that come in handy when computing binomial and counting probabilities in R are choose()and dbinom(). choose(n,k) calculates the binomial coefficient (n choose k

  1. Two functions that come in handy when computing binomial and counting probabilities in R are choose()and dbinom(). choose(n,k) calculates the binomial coefficient (n choose k ) and dbinom() is described below.
  • (a) Use choose() to compute the probability of drawing 10 times without replacement from a box with 500 tickets marked 0, and 500 tickets marked 1, and getting exactly 2 tickets marked 1.
  • (b) For dbinom(), we need three arguments: the parameters of the binomial distribution (n and p), and then the number of successes that we are interested in: dbinom(x,size,prob). Here the first input is the number of successes we are interested in (k), size is the number of trials (n) and prob is the probability of a success (p). Compute the probability of rolling only one 2 in four rolls of a fair six sided die, first using choose() and then using dbinom().

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!