Question

In: Statistics and Probability

In R, get a sample of size n=5 from the Cauchy distribution and calculate its mean....

  1. In R, get a sample of size n=5 from the Cauchy distribution and calculate its mean.

    (mean(rcauchy(5)). Repeat this 1000 times and plot the histogram of the resulting 1000 means. Please show your R codes.

    n <- 5

    listofmeans <- c()
    for(i in 1:1000){
    }listofmeans <- c(listofmeans, mean(rcauchy(n)))

    hist(listofmeans)

  2. Create other histograms, changing the value of n to 10, 30, 100, and 500. Comment on what these graphs show in light of the Central Limit Theorem.

Solutions

Expert Solution

Histogram with n = 5,10,30,100,500 are respectively as follows

​​​​​​From the above graph 1st graph is left skewed, 2nd is right skewed, 3rd is almost symmetric, 4th is right skewed and 5th is left skewed.

The 3rd and onward graph with sample size 30,100,500 are approaches to normal distribution.


Related Solutions

A sample of size n = 16 is made from a normal distribution with mean μ....
A sample of size n = 16 is made from a normal distribution with mean μ. It turns out that the sample mean is x = 23 and the sample standard deviation is s = 6. Construct a 90% confidence interval for μ.
Let X be the mean of a random sample of size n from a N(μ,9) distribution....
Let X be the mean of a random sample of size n from a N(μ,9) distribution. a. Find n so that X −1< μ < X +1 is a confidence interval estimate of μ with a confidence level of at least 90%. b.Find n so that X−e < μ < X+e is a confidence interval estimate of μ withaconfidence levelofatleast (1−α)⋅100%.
A random sample of size 30 from an exponential distribution with mean 5 is simulated. Show...
A random sample of size 30 from an exponential distribution with mean 5 is simulated. Show the R-code to plot the empirical cdf for this sample along with the true cdf in the sample graph.
A random sample of size 30 from an exponential distribution with mean 5 is simulated. Describe...
A random sample of size 30 from an exponential distribution with mean 5 is simulated. Describe the process of plotting the empirical cdf for this sample along with the true cdf in the sample graph.
List all 10 possible SRSs of size n = 2, calculate the mean quiz score for each sample, and display the sampling distribution of the sample mean on a dotplot.
List all 10 possible SRSs of size n = 2, calculate the mean quiz score for each sample, and display the sampling distribution of the sample mean on a dotplot. The small population of 5 students in the table.
R Simulation: For n = 1000, simulate a random sample of size n from N(0,1). Use...
R Simulation: For n = 1000, simulate a random sample of size n from N(0,1). Use the generated data to give an approximation to the critical values when α = 0.01,0.05,0.1, and compare them with the theoretical values zα/2. Repeat with n = 10,000 to get a better approximation. Please use Commands quantile( ) or qnorm( ) or both.
Given a random sample of size of n = 4,900 from a binomial probability distribution with...
Given a random sample of size of n = 4,900 from a binomial probability distribution with P = 0.50​, complete parts​ (a) through​ (e) below. a. Find the probability that the number of successes is greater than 2,535. P(X>2535) = b. Find the probability that the number of successes is fewer than 2,410. P(X<2410) = c. Find the probability that the number of successes is between 2,440 and 2,520. P(2440 < X < 2520) = d. With probability .20​, the...
A simple random sample of size n=40 is drawn from a population. The sample mean is...
A simple random sample of size n=40 is drawn from a population. The sample mean is found to be x=121.7 and the sample standard deviation is found to be s=13.3. Construct a​ 99% confidence interval for the population mean. The lower bound is ​ (Round to two decimal places as​ needed.)
A simple random sample of size n= 40 is drawn from a population. The sample mean...
A simple random sample of size n= 40 is drawn from a population. The sample mean is found to be x= 120.6 and the sample standard deviation is found to be s 13.3 Construct a​ 99% confidence interval for the population mean.
Let X1…X5 be iid random sample of size n=5 from a Uniform distribution with parameters 0,theta....
Let X1…X5 be iid random sample of size n=5 from a Uniform distribution with parameters 0,theta. We test H0: theta=1 versus H1: theta=2. Reject H0 when max(X1…X5)>b. Find the value of b so that the size of the test is 0.10, then find the power of this test. Among the tests based on max(X1…Xn), find the most powerful test with size exactly equal to 0.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT