Question

In: Statistics and Probability

To better understand how the Law of Large Number (LLN) and the Central Limit Theory (CLT)...

To better understand how the Law of Large Number (LLN) and the Central Limit Theory (CLT) works, we can use the following simulation to demonstrate them. (Note: attach the computer codes which implement the analysis in your answer) To demonstrate the Lindberg-Levy CLT, please generate 1000 sets of independent random samples, each has 1000 observations, from i.i.d X^2(5) distribution. First choose one set of the random samples and plot a histogram. Do you see a X^2(5) distribution? Denote the sample mean of each set of random samples as Z, and plot the histogram of Z. Do you see a normal distribution? What are the empirical mean and empirical variance of Z? Are they close to what CLT predicts?

Solutions

Expert Solution

1000 samples of 1000 observations of chisquare RVs are generated and mean of the observations is plotted as below.

Below the R code for one set of the random sample.

m <- 1000
n <- 1000
df <- 25
TC <- array (dim = c(m,n))
MTC <- array (dim = m)
for (i in 1:m)
{
TC[i,] <- rchisq(n,df)
MTC[i] <- mean(TC[i,])
}

hist(TC[4,],prob = T, breaks = 50, xlab = "X", main = "Chisquare Distribution")
curve(dchisq(x,df), col="darkred", lwd=2, add=TRUE)

We see a Chisquare distribution.

Histogram of the mean is plotted below. Code below.

m <- 1000
n <- 1000
df <- 25
TC <- array (dim = c(m,n))
Z <- array (dim = m)
for (i in 1:m)
{
TC[i,] <- rchisq(n,df)
Z[i] <- mean(TC[i,])
}

hist(Z,prob = T, breaks = 50, xlab = "Z", main = "Theoretical and Empirical Distribution")
curve(dnorm(x,df, sqrt(2*df/n)), col="darkred", lwd=2, add=TRUE)

We see a normal distribution.

The empirical mean is 24.99798 and variance  0.0527


Related Solutions

Central Limit Theorem (CLT) . Investigate the parameters CLT could be applicable to? Explain in detail...
Central Limit Theorem (CLT) . Investigate the parameters CLT could be applicable to? Explain in detail by writing an essay without plagiarism. Min 1.5 page Max 2 pages
Let's try putting the CLT (Central Limit Theorem) to practice. In a study of bumblebee bats,...
Let's try putting the CLT (Central Limit Theorem) to practice. In a study of bumblebee bats, one of the world’s smallest mammals, the weights have a mean of 2.0 grams and a standard deviation of 0.25 gram. a) Find the probability that a randomly selected bat from the study weights more than 2.3 grams. b) A random sample of 7 bumblebee bats is selected from the study. Find the probability that the mean weight of the sample is more than...
A) state the complete Central Limit Theorem (CLT) B) explain why we need the theoretical idea...
A) state the complete Central Limit Theorem (CLT) B) explain why we need the theoretical idea of sampling distributions in a hypothesis test even though we only take one sample to decide between the hypothesis. C) relate each part of the formula r= X-Mean0 / S/ square root of n D) Explain what type 1 and type 2 errors are E) explain how it is possible to conduct the correct test flawlessly using a simple random sample of sufficient size...
Law of large number
Is the law of large numbers a phenomenon? If something is random, then how can we define an average outcome?
Central limit theorem is important because? For a large , it says the population is approximately...
Central limit theorem is important because? For a large , it says the population is approximately normal. For a large , it says the sampling distribution of the sample mean is approximately normal, regardless of the shape of the population. For any population, it says the sampling distribution of the sample mean is approximately normal, regardless of the sample size. For any sized sample, it says the sampling distribution of the sample mean is approximately normal.
State the Strong Law of Large Number and prove the Weak Law of Large Numbers.
State the Strong Law of Large Number and prove the Weak Law of Large Numbers.
What is the "law of large numbers" in insurance theory?
What is the "law of large numbers" in insurance theory?
How well does the social learning theory explain a large number of observations
How well does the social learning theory explain a large number of observations
-The Law of Large Numbers is a statistical theory that you read about in this chapter....
-The Law of Large Numbers is a statistical theory that you read about in this chapter. In your own words, what does this law say about the probability of an event? Perhaps you have also heard of something called the Law of Averages (also called the Gambler's Fallacy). Do an Internet search to find out additional information about both of these laws. -Are these the same laws? If not, how are they related and how are they different? -What general...
The Law of Large Numbers is a statistical theory that you read about in this chapter....
The Law of Large Numbers is a statistical theory that you read about in this chapter. In your own words, what does this law say about the probability of an event? Perhaps you have also heard of something called the Law of Averages (also called the Gambler's Fallacy). Do an Internet search to find out additional information about both of these laws. Are these the same laws? If not, how are they related and how are they different? What general...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT