Question

In: Statistics and Probability

1. Let W1, . . . , Wn be i.i.d. N(µ, σ2). A 100(1 − α)%...

1. Let W1, . . . , Wn be i.i.d. N(µ, σ2). A 100(1 − α)% confidence interval for σ2 is

( ([n − 1]*S2 ) / (χ21−α/2,n−1 ) , ([n − 1]S2) / ( χ2α/2,n−1) ,

where χ2u,k denotes the 100×uth percentile of the χ2 distribution with k degrees of freedom, S2 = (n − 1)−1 * the sum of (Wi − Wbar )2 (from 1 to n) is the sample variance and Wbar = n−1 * the sum of Wi (from i = 1 to n) the sample mean.

(a) Suppose µ = 68, σ = 4, n = 12, and α = 0.05. Estimate the coverage probability of this random confidence interval for σ2 using a Monte Carlo simulation with 1e4 replications. That is, estimate the probability that the confidence interval captures σ2 . Denote this estimated probability by pbar. Comment on how 1 − α compares to ±1/ √ 1e4. You may use the qchisq function (hint: the χ2 distribution is not symmetric) but you may not use the built in rnorm function.

(b) Estimate the coverage probability for the confidence interval when W1, . . . , Wn are i.i.d. Exp(1). Notice that in this case σ2 = var(W1) = 1. Estimate the coverage probability pbar for each (n, α) ∈ {10, 50, 100} × {0.05, 0.1}. In each case, compare 1 − α to pbar ± 1/ √ 1e4. Again, you may not use the built in rexp function. Comment on the results.

Solutions

Expert Solution

Here W are IID normal with . Interval estimate of a population variance:

is sample size, is sample variance.

Here

a) The coverage probability is estimated below using Simulation R code below.

m <- 10000
n <- 12
sigma <- 4
mu <- 68
alpha <- 0.05
#X <- array (dim = m)
n1 <- 0
for (i in 1:m)
{
W <- rnorm(n, mean = mu, sd = sigma)
s <- sd(W)
if(s^2*(n-1)/qchisq(alpha/2,n-1) > sigma^2 & s^2*(n-1)/qchisq(1-alpha/2,n-1) < sigma^2)
{
n1 = n1 + 1
}
  
}
pbar <- n1/m
pbar

The estimated coverage probability is which is close to theoretical .

b) The cocverage probability when is calulated below.

m <- 10000
n <- 12
sigma <- 1
alpha <- 0.05
#X <- array (dim = m)
n1 <- 0
for (i in 1:m)
{
W <- rexp(n, 1)
s <- sd(W)
if(s^2*(n-1)/qchisq(alpha/2,n-1) > sigma^2 & s^2*(n-1)/qchisq(1-alpha/2,n-1) < sigma^2)
{
n1 = n1 + 1
}
  
}
pbar <- n1/m
pbar


Related Solutions

(a) Suppose X1, ..., Xn1 i.i.d. ∼ N(µ1, σ2 1 ) and Y1, ...Yn2 i.i.d. ∼...
(a) Suppose X1, ..., Xn1 i.i.d. ∼ N(µ1, σ2 1 ) and Y1, ...Yn2 i.i.d. ∼ N(µ2, σ2 2 ) are independent Normal samples. Suggest an unbiased estimator for µ1 − µ2 and find its’ standard error. Now Suppose n1 = 100, n2 = 200, it is known that σ 2 1 = σ 2 2 = 1, and we calculate X¯ = 5.7, Y¯ = 5.2. Find a 2-standard-error bound on the error of estimation. (b) Suppose X ∼...
Let X1, X2, . . . , Xn iid∼ N (µ, σ2 ). Consider the hypotheses...
Let X1, X2, . . . , Xn iid∼ N (µ, σ2 ). Consider the hypotheses H0 : µ = µ0 and H1 : µ (not equal)= µ0 and the test statistic (X bar − µ0)/ (S/√ n). Note that S has been used as σ is unknown. a. What is the distribution of the test statistic when H0 is true? b. What is the type I error of an α−level test of this type? Prove it. c. What is...
Given a population with a mean of µ = 100 and a variance σ2 = 13,...
Given a population with a mean of µ = 100 and a variance σ2 = 13, assume the central limit theorem applies when the sample size is n ≥ 25. A random sample of size n = 28 is obtained. What is the probability that 98.02 < x⎯⎯ < 99.08?
Given a population with a mean of µ = 100 and a variance σ2 = 14,...
Given a population with a mean of µ = 100 and a variance σ2 = 14, assume the central limit theorem applies when the sample size is n ≥ 25. A random sample of size n = 46 is obtained. What is the probability that 98.80 < x¯ < 100.92?
Assume that wt ∼ wn(0, σ2 ), t = 1, 2, . . . ,. Define...
Assume that wt ∼ wn(0, σ2 ), t = 1, 2, . . . ,. Define Yt = µ + wt − θwt−1, where µ and θ are constants. Find E(Yt), var(Yt), and cov(Yt , Yt+k), where k is an integer and k ≥ 0
5. Let Y1, Y2, ...Yn i.i.d. ∼ f(y; α) = 1/6( α^8 y^3) · e ^(−α...
5. Let Y1, Y2, ...Yn i.i.d. ∼ f(y; α) = 1/6( α^8 y^3) · e ^(−α 2y) , 0 ≤ y < ∞, 0 < α < ∞. (a) (8 points) Find an expression for the Method of Moments estimator of α, ˜α. Show all work. (b) (8 points) Find an expression for the Maximum Likelihood estimator for α, ˆα. Show all work.
Assume that the yield per acre for a particular variety of soybeans is N(µ, σ2 )....
Assume that the yield per acre for a particular variety of soybeans is N(µ, σ2 ). For a random sample of n = 10 plots, the yields in bushels per acre were 21.68 33.09 28.20 42.28 44.77 61.97 37.20 55.96 52.18 29.38 i. Give a point estimate for µ and σ. ii. Test you assumption of normality with Q-Q plot. Can you get a another point estimate of σ? iii. Find a 90% confidence interval for µ and an 90%...
1. Let α < β be real numbers and N ∈ N. (a). Show that if...
1. Let α < β be real numbers and N ∈ N. (a). Show that if β − α > N then there are at least N distinct integers strictly between β and α. (b). Show that if β > α are real numbers then there is a rational number q ∈ Q such β > q > α. *********************************************************************************************** 2. Let x, y, z be real numbers.The absolute value of x is defined by |x|= x, if x ≥...
1. Homework 4 Due: 2/28 Let X1,...,Xn i.i.d. Gamma(α,β) with α > 0, β > 0...
1. Homework 4 Due: 2/28 Let X1,...,Xn i.i.d. Gamma(α,β) with α > 0, β > 0 (a) Assume both α and β are unknown, find their momthod of moment estimators: αˆMOM and βˆMOM. (b) Assume α is known and β is unknown, find the maximum likelihood estimation for β. 2.
9)Test the claim that σ2 < 44.8 if n = 28, s2 = 28, and α...
9)Test the claim that σ2 < 44.8 if n = 28, s2 = 28, and α = 0.10. Assume that the population is normally distributed. Identify the claim, state the null and alternative hypotheses, find the critical value, find the standardized test statistic, make a decision on the null hypothesis (you may use a P-Value instead of the standardized test statistic), write an interpretation statement on the decision. 10)The heights (in inches) of 20 randomly selected adult males are listed...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT