Question

Generate a data set from a normal distribution. Then you can apply bootstrap method to the...

Generate a data set from a normal distribution. Then you can apply bootstrap method to the generated data to obtain the empirical distribution of the coefficient of variation: sample standard deviation over sample mean, that is cv = s/¯ x. Describe this distribution. Also please describe the algorithm and attach the R code

Homework Answers

Answer #1

We have done this problem in R

we have generated 500 samples from normal(0,1)

then we picked 2000 bootstrap from this and make the plot of CV as

The R code is

data=rnorm(500)
library(boot)
cv <- function( data, indices) {
d <- data[indices] # allows boot to select sample
fit <- sd(d)/mean(d)
return(fit)
}
# bootstrapping with 1000 replications
results <- boot(data=data, statistic=cv,
R=2000)
plot(results)

# the plot is

so the distribution CV concentrated at zero and it is symmetric, we can say that the distribution of CV is t-distribution but not normal since it has outliers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PLEASE USE R CODE!! Continue to generate standard normal random variables until you have generated n...
PLEASE USE R CODE!! Continue to generate standard normal random variables until you have generated n of them, where n≥100 is such that S/sqrt(n) <0.1, where S is the sample standard deviation of the n data value. (a)How many normals do you think will be generated? (b)What is the sample mean of all the normals generated? (c)What is the sample variance?
Generate data of 600 random variable from normal distribution with mean 8 and standard deviation 3...
Generate data of 600 random variable from normal distribution with mean 8 and standard deviation 3 give it a name “MyData” Calculate the following from MyData, Mean, Variance, Standard deviation, minimum, Q1, Median, Q3, Maximum. Construct a histogram from MyData with title: Histogram of MyData generated from Normal dist with mean= 8 and sd=3. Construct a box plot from the generated data.
the quantitative data set under consideration has roughly a bell-shaped distribution. Apply the empirical rule to...
the quantitative data set under consideration has roughly a bell-shaped distribution. Apply the empirical rule to answer the following: A qunatitative data set of size 70 has mean 40 and standard deviation 2. Approximately how many observations lie between 34 and 46?
use R software Suppose that X1, …, Xn are a random sample from a lognormal distribution....
use R software Suppose that X1, …, Xn are a random sample from a lognormal distribution. Construct a 95% confidence interval for the parameter μ. Use a Monte Carlo method to obtain an empirical estimate of the confidence level when data is generated from standard lognormal.
The quantitative data set under consideration has roughly a​ bell-shaped distribution. Apply the empirical rule to...
The quantitative data set under consideration has roughly a​ bell-shaped distribution. Apply the empirical rule to answer the following question. A quantitative data set of size 80 has mean 50 and standard deviation 5. Approximately how many observations lie between 45 and 55​? Approximately nothing observations lie between 45 and 55. ​(Round to the nearest whole number as​ needed.)
Use the programming language R to code the following project.. * Make sure you turn in...
Use the programming language R to code the following project.. * Make sure you turn in your code and answers from each question. (not the raw data). 1. Generate 1000 random samples of size 40 from the normal distribution with mean µ = 3 and standard deviation σ = 2. Compute 95% the confidence interval of 1000 samples and find the rate of confidence interval contains the true mean. What did you learn from this simulation study? 2. For each...
Continuous distributions: Generate and store in column c1 10,000 values from the uniform distribution on the...
Continuous distributions: Generate and store in column c1 10,000 values from the uniform distribution on the interval [4,8] as follows: random 10000 c1; uniform 4 8. (Do not forget the ”dot”) [3] a. Use mean command to find the sample mean ¯x of these data, ¯x=————- Note: The mean µ of a uniform distribution over an interval [a, b] is simply the middle of this interval, i.e. µ = (a + b)/2. [3] b. What is the mean µ of...
We will be using Google Sheets to simulate a normal distribution with a mean of 650...
We will be using Google Sheets to simulate a normal distribution with a mean of 650 and a standard deviation of 8. Please note there are five parts to this question. First, generate a random sample of 12 data points from a normally distribution population (using the =norminv command in Google Sheets). Create a histogram where the first bin starts at 628 and the width of each bin is 4. Save that histogram as an image file and attach it...
the following set of data was generated by a random sample from a normal population: 121.331...
the following set of data was generated by a random sample from a normal population: 121.331 123.370 118.902 118.454 117.256 118.579 117.690 118.648 127.977 123.846 Given the sample average x̄= 120.605 and that the population standard deviation is known to be σ=3.5 , construct an 85% confidence interval for the population mean μ
Part 1 1. generate 500 data random in Excel with an of the distributions views in...
Part 1 1. generate 500 data random in Excel with an of the distributions views in class that not is it normal. 2 make a histogram of the 500 data generated. 3 take 100 samples of 10 500 generated data data and obtain the means of each sample in Excel. 4. make a histogram of averages show them data. Do the histogram elaborated in point 4 corroborates what is expressed in the Central limit theorem? Why? part 2 1. theory:...