Question

Suppose the height of individuals in a population follow a normal distribution with a mean (μ)...

Suppose the height of individuals in a population follow a normal distribution with a mean (μ) of 66 inches and a standard deviation (σ) of 4 inches.

a) Using the statistical software R, sample n individuals from the distribution described above. For N=10,000 iterations, compute the average height for n=5, n=15, n=50, n=100 individuals and plot a histogram of the sampling distribution of the Z score (?̅−??/√? )

b) Using the statistical software R, sample n individuals from the distribution described above. For N=10,000 iterations, compute the average height for n=5, n=15, n=50, n=100 individuals and plot a histogram of the sampling distribution of the statistic (?̅−??/√? )

c) Compare the mean and variance of the sampling distributions above for n=5, n=15, n=50, n=100. What do you notice about these distributions?

Homework Answers

Answer #1

The R code is as follows:

#########################

set.seed(123)
N=10000
mu=66;sigma=4
n=5
X=0;Z=0;T=0
for(i in 1:N)
{
X[i]=rnorm(5,mu,sigma)
}
X_bar=mean(X);X_bar
S=sqrt(var(X));S

for(i in 1:N)
{
Z[i]=sqrt(n)*(X[i]-mu)/sigma
T[i]=sqrt(n)*(X[i]-mu)/S
}

hist(Z)
hist(T)
mean(Z);mean(T)
var(Z);var(T)

##########################

You can yourself see the histograms of Z and T which will be of standard normal distribution and student's t distribution (with n-1 d.f.) respectively.

You can see the following output until you keep the seed at 123 as in set.seed(123)

> mean(Z);mean(T)
[1] 0.002969464
[1] 0.002947943
> var(Z);var(T)
[1] 5.073267
[1] 5

For n=15, the outputs will be:

> mean(Z);mean(T)
[1] 0.005143262
[1] 0.005105988
> var(Z);var(T)
[1] 15.2198
[1] 15

For n=50, the output will be:

> mean(Z);mean(T)
[1] 0.009390268
[1] 0.009322215
> var(Z);var(T)
[1] 50.73267
[1] 50

For n=100, the output will be:

> mean(Z);mean(T)
[1] 0.01327984
[1] 0.0131836
> var(Z);var(T)
[1] 101.4653
[1] 100

From the above results it can be seen that the mean of the sampling distributions of Z as well as T are nearly zero though that slightly increases as n increases. Also the variance of the sampling distribution of Z is almost same as the value of n and that of T is exactly same as the value of n.

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
Suppose your friend Joanna is running for class president. The proportion of individuals in a population...
Suppose your friend Joanna is running for class president. The proportion of individuals in a population of students who will vote for Joanna on election day is 60%. You plan to conduct a poll of size n and report X, the number of individuals in your poll who plan to vote for Joanna. You also plan to compute ?̂=??, the proportion of individuals in your poll who plan to vote for Joanna. a) Explain why X is a binomial random...
Suppose the waiting time at a certain checkout counter is bimodal. With probability 0.95, the waiting...
Suppose the waiting time at a certain checkout counter is bimodal. With probability 0.95, the waiting time follows an exponential distribution with a mean waiting time of five minutes. With probability 0.05, the waiting time equals 30 minutes. a) Compute the mean waiting time at the checkout counter. b) Compute the variance of the waiting time at the checkout counter. c) Compute the probability that an individual customer waits longer than 5 1/2 minutes at the checkout counter. d) Using...
Suppose the waiting time at a certain checkout counter is bimodal. With probability 0.95, the waiting...
Suppose the waiting time at a certain checkout counter is bimodal. With probability 0.95, the waiting time follows an exponential distribution with a mean waiting time of five minutes. With probability 0.05, the waiting time equals 30 minutes.    a) Compute the mean waiting time at the checkout counter. b) Compute the variance of the waiting time at the checkout counter. c) Compute the probability that an individual customer waits longer than 5 1/2 minutes at the checkout counter. d) Using...
Suppose the waiting time at a certain checkout counter is bimodal. With probability 0.95, the waiting...
Suppose the waiting time at a certain checkout counter is bimodal. With probability 0.95, the waiting time follows an exponential distribution with a mean waiting time of five minutes. With probability 0.05, the waiting time equals 30 minutes. a) Compute the mean waiting time at the checkout counter. b) Compute the variance of the waiting time at the checkout counter. c) Compute the probability that an individual customer waits longer than 5 1/2 minutes at the checkout counter. d) Using...
Use r statistical software to Pick a population with a particular distribution. From the population use...
Use r statistical software to Pick a population with a particular distribution. From the population use software to obtain k random samples (for example k = 10) each containing n elements (for example n = 30.) Give the distributions of X̄ For each sample, calculate the value of the statistic and construct a histogram of the k values. This histogram gives the approximate sampling distribution of the statistic. The statics of interest are X̄ and V (X̄ ) Calculate E(X̄)...
Use any statistical software Pick a population with a particular distribution. From the population use software...
Use any statistical software Pick a population with a particular distribution. From the population use software to obtain k random samples (for example k = 10) each containing n elements (for example n = 30.) Give the distributions of X̄ For each sample, calculate the value of the statistic and construct a histogram of the k values. This histogram gives the approximate sampling distribution of the statistic. The statics of interest are X̄ and V (X̄ ) Calculate E(X̄) and...
You are interested in estimating the average height in a class of 100 students. In this...
You are interested in estimating the average height in a class of 100 students. In this class the mean height is 65 inches and the standard deviation is 4 inches. You take a sample of size 16 and compute the average (mean) height of the sample which is 64 inches. If we are sampling with replacement, how many different samples (keeping track of order) of size 16 are possible? (Do not compute this, just explain how to compute it.) What...
Suppose we repeatedly take samples of size 100 from the population distribution, calculate a sample mean...
Suppose we repeatedly take samples of size 100 from the population distribution, calculate a sample mean each time, and plot those sample means in a histogram. The histogram we created would be an example of a (variable, population, distribution, sampling distribution???) . According to the central limit theorem, the histogram would have a shape that is approximately (left skewed, right skewed or normal???) , with mean  (give a number???) and standard deviation  (give a number??). The standard deviation of the statistic under...
Suppose you want to test the notion that individuals perceive a greater height difference between men...
Suppose you want to test the notion that individuals perceive a greater height difference between men and women than actually exists, due to stereotyping. The true population difference between the height of men and women is an average of 5 inches. You obtain a random sample of 400 individuals and record their perceptions of the mean difference in height between men and women. You find that the sample perceives the difference between men and women to average 6 inches. The...
To estimate the mean height μ of male students on your campus, you will measure an...
To estimate the mean height μ of male students on your campus, you will measure an SRS of students. Heights of people of the same sex and similar ages are close to Normal. You know from government data that the standard deviation of the heights of young men is about 2.8 inches. Suppose that (unknown to you) the mean height of all male students is 70 inches. (a) If you choose one student at random, what is the probability that...