Question

R problem 1: The reason that the t distribution is important is that the sampling distribution of the standardized sample mean is different depending on whether we use the true population standard deviation or one estimated from sample data. This problem addresses this issue. 1. Generate 10,000 samples of size n- 4 from a normal distribution with mean 100 and standard deviation σ = 12, Find the 10,000 sample means and find the 10,000 sample standard deviations. What are the mean and the standard deviation of the distribution of random sample means? What are the mean and the standard deviation of the distribution of random sample standard deviations? 2. Graph the sampling distribution of the sample means and of the sample standard deviations. 3. For each sample mean, calculate the z-score using the exact standard error ơ/vn. So, What are the mean and standard deviation of these z-scores? 4. For each sample mean, calculate the t-statistic using the estimated standard error s/Vn. So, x-μ What are the mean and standard deviation of the distribution of t-statistics? 5. What fraction of the sample means are within 1.96 exact standard errors of μ? This will be the number of z-scores between1.96 and 1.96. 6, what fraction of the sample means are within 1.96 estimated standard errors of μ? This will be the fraction of the t-statistics between -1.96 and 1.96. How does this compare to the answer for z-scores? 7. Would a confidence interval made by tl.96s/vn have about a 95% chance of containing ? If not, how confident should we expect to be? 8. Repeat the simulation when n-25. What fraction of the t-statistics are between -1.96 and 1.96 now?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) The R code to generate 10000 samples of size n=4 from normal distribution with μ = 100, σ 12 and calculating the mean and sd of sample means, mean and sd of sample sd is given belo.

set.seed(1031)
n <- 4
mu <- 100
sigma <- 12
N <- 10000
X_mean <- array(dim = c(N))
X_sd <- array(dim = c(N))

for ( i in 1:N)
{
X <- rnorm(n, mean = mu, sd = sigma)
X_mean[i] <- mean(X)
X_sd[i] <- sd(X)
}

mean(X_mean)
sd(X_mean)
mean(X_sd)
sd(X_sd)

The output are:

mean of sample means = 99.86272 close to population mean \mu =100
sd of sample means = 5.9676 close to sd sample mean \sigma/\sqrt{n} =6
mean of sample sd = 11.02363
sd of sample sd = 4.633651

2) The graph of sampling distribution of sample mean is given below:

hist(X_mean, xlab = "Sample mean", ylim=c(0,0.065),border = "blue",main = "Empirical & Theoretical distribution of sample mean", prob= T)
curve(dnorm(x,mean = mu , sd = sigma/sqrt(n)), col = "darkblue", lwd = 2, add = TRUE)

The graph of sampling distribution of sample standard deviations is given below:

hist(X_sd, xlab = "Sample standard deviation",border = "blue",main = "Empirical distribution of sample standard deviation", prob= FALSE)

3) The Z- scores of each sample is calculated below.

set.seed(1031)
n <- 4
mu <- 100
sigma <- 12
N <- 10000
X_mean <- array(dim = c(N))
X_sd <- array(dim = c(N))

for ( i in 1:N)
{
X <- rnorm(n, mean = mu, sd = sigma)
X_mean[i] <- mean(X)
X_sd[i] <- sd(X)
}
Z <- (X_mean-mu)/sigma*sqrt(n)
mean(Z)
sd(Z)

The mean of Z-scores is -0.02288082 close 0

The sd of Z-scores is 0.9946 close 1

I have answered 5 parts.

We are required to solve only one question. Please post the remaining questions as another post. We do not get any additional amount for solving more.

Add a comment
Know the answer?
Add Answer to:
R problem 1: The reason that the t distribution is important is that the sampling distribution...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What you have Distribution of X. Find the mean and standard deviation of Sampling Distribution. To...

    What you have Distribution of X. Find the mean and standard deviation of Sampling Distribution. To do this, click on: c STAT → BASIC STATISTICS → DISPLAY DESCRIPT STATISTICS On the input screen that appears, select C3 for the Variable. The results will be in the Session Window. Wait until after to print the Session Window.) a. How does the mean of C3 (x) compare to the mean of the original population, μ? Recall that the mean of the original...

  • Scores on the SAT mathematics section have a normal distribution with mean 4-500 and standard deviation...

    Scores on the SAT mathematics section have a normal distribution with mean 4-500 and standard deviation o=100. a. What proportion of students score above a 550 on the SAT mathematics section? Round your answer to 4 decimal places. b. Suppose that you choose a simple random sample of 16 students who took the SAT mathematics section and find the sample mean x of their scores. Which of the following best describes what you would expect? The sample mean will be...

  • 1. If X is non-normal and n<30, then the sampling distribution of standardized X-bar is: t...

    1. If X is non-normal and n<30, then the sampling distribution of standardized X-bar is: t (n-1) approximately Z unknown binomial 2. A statistician wants to estimate the mean loss suffered by Delta pilots in the labor negotiations to lower Delta salaries to within $2500 with 95% confidence. From a first small survey, the standard deviation of the loss is estimated at $10,000. What size sample should the statistician select? 1206 44 7 None of the above 3. The difference...

  • In the notes there is a Central Limit Theorem example in which a sampling distribution of means i...

    R Programming codes for the above questions? In the notes there is a Central Limit Theorem example in which a sampling distribution of means is created using a for loop, and then this distribution is plotted. This distribution should look approximately like a normal distribution. However, not all statistics have normal sampling distributions. For this problem, you'll create a sampling distribution of standard deviations rather than means. 3. Using a for loop, draw 10,000 samples of size n-30 from a...

  • 1) the distribution and histogram of individual penny dates for the entire class (this will be our population), Math/BSAD 2170 Sampling Distributions and Central Limit Theorem 2) the dis...

    1) the distribution and histogram of individual penny dates for the entire class (this will be our population), Math/BSAD 2170 Sampling Distributions and Central Limit Theorem 2) the distribution and histogram of the means from samples of 5 pennies (this is called a sampling distribution with n 5), 3) the distribution and histogram of the means from samples of 10 pennies (a sampling distribution with n 10), and 4) the distribution and histogram of the means of each sample of...

  • The sampling distribution of means is: A list of all members of the population you are...

    The sampling distribution of means is: A list of all members of the population you are studying. Also called the standard error of the mean. A set of numbers representing all of the possible sample means on a variable you could draw from a given population and a given sample size. A list of all members of the sample that you draw. 1 points Question 2 The standard deviation of the sampling distribution of means is called the: Margin of...

  • The histograms of some sampling distributions are symmetrical. T-F What would make a histogram symmetrical, and...

    The histograms of some sampling distributions are symmetrical. T-F What would make a histogram symmetrical, and give an example of a symmetrical distribution? & A random sample of size 36 is to be selected from a population that has a mean μ = 50 and a standard deviation σ of 10. Find the standard (z) score for a sample value of 40.

  • Chapter 7: Problem 13 Previous Problem Problem List Next Problem (1 point) The scores of students...

    Chapter 7: Problem 13 Previous Problem Problem List Next Problem (1 point) The scores of students on the SAT college entrance examinations at a certain high school had a normal distribution with mean μ 545.3 and standard deviation σ .: 29.9 (a) What is the probability that a single student randomly chosen from all those taking the test scores 551 or higher? ANSWER: For parts (b) through (d), consider a simple random sample (SRS) of 30 students who took the...

  • confirming my answer Question 11 (5 points) Saved The sampling distribution of the mean becomes approximately...

    confirming my answer Question 11 (5 points) Saved The sampling distribution of the mean becomes approximately normally distributed whern which of the following conditions is met? The standard deviation of the population is large. The sample size is large The population Distribution is not symmetric A single random sample is drawn from the population. Question 12 (10 points) Saved You select a sample of 100 and find a mean of 60 and a standard deviation of 12. What is the...

  • urgent one hours plz help quick t-distribution PARAMETER equal to n-1, where n the the sample...

    urgent one hours plz help quick t-distribution PARAMETER equal to n-1, where n the the sample size used to estimate the sample mean and standard deviation. 123456789101112131415 Gives the number of STANDARD DEVIATIONS a value is from the mean. 123456789101112131415 Standard deviation of a sample statistic. 123456789101112131415 Using data to determine properties of population parameters. 123456789101112131415 A NORMAL distribution with mean 0 and standard deviation 1. 123456789101112131415 Gives the NORMALITY of sample means for large sample. 123456789101112131415 A known percentage...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT