In: Statistics and Probability
I need to figure this out in rstudio how to calculate this for Binomial and Poisson Distributions
Type 2 diabetes is becoming increasingly prevalent among the American adult population. Currently, 9.4% of American adults have diabetes (Centers for Disease Control and Prevention News Release, July 18, 2017). Suppose that 1000 American adults are randomly chosen and tested for Type 2 diabetes.
Use R to find the following probabilities, assuming that the rate of type 2 diabetes is 9.4%. Your R script should contain the commands you used to compute the probability.
Place your answers in the appropriate places in the Word document. Provide at least 4 decimal places for all probabilities.
dbinom() function is used to calculate the exact probability and pbinom() function is used to calculate the cumulative probability. The R code is shown below,
R Code:
R output: