Question
Use R code Part2) Central Limit Theorem - Negative Binomial distribution Suppose the input data follows the negative binomial distribution with the parameters size =
Use R code
Part2) Central Limit Theorem - Negative Binomial distribution
Suppose the input data follows the negative binomial distribution with the parameters size = 3 and prob = 0.5. Set the start seed for random numbers as 1234.
a) Generate 5000 random values from this distribution. Show the barplot with the proportions of the distinct values of this distribution. b) With samples sizes of 10, 20, 30, and 40, draw 1000 samples from the data generated in a). Use sample() function with replace as FALSE. Show the histograms of the densities of the sample means. Use a 2 x 2 layout.
c) Compare of means and standard deviations of the data from a) with the four sequences generated in b).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started