Question
Please Code in R for answers in rstudio. **1) Creat a function called boot_CI which return the bootstrap confidence interval of any of the three
Please Code in R for answers in rstudio.
**1) Creat a function called "boot_CI" which return the bootstrap confidence interval of any of the three population parameters (mean, median, standard deviation) for any given level of confidence C. Make sure your function works for user defined number of trials and sample size.**
**2) Use the function "boot_CI to find 85% and 92% confidence intervals for the mean carat of Ideal cut diamonds. Use only 300 diamonds of the the Ideal cut diamonds as your original sample. Set the seed for the original sample at 305.**
**3) Use the function "boot_CI" to find 95% confidence interval for the mean and median diamond depth of Fair cut. Use only 200 diamonds of the Fair cut as your original sample.set the seed for the original sample at 3005.**
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