4.2.12. In Exercise 4.2.11, the sampling was from the N(0,1) distribution. Show, however, that setting μ = 0 andσ = 1 is without loss of generality. Hint: First,X1,...,Xn is a random sample from the N(μ,σ2) if and only if Z1,...,Zn is a random sample from the N(0,1), where Zi =( Xi − μ)/σ. Then show the confidence interval based on the Zi’s contains 0 if and only if the confidence interval based on the Xi’s contains μ.
For more info about 4.2.11 :
(4.2.11. Let X1,...,Xn be a random sample from a N(0,1)
distribution. Then the probability that the random interval
X±tα/2,n−1(s/√n) trapsμ = 0 is (1−α). To verify this empirically,
in this exercise, we simulate m such intervals and calculate the
proportion that trap 0, which should be “close”to (1−α). (a) Set n
= 10 andm = 50. Run the R code mat=matrix(rnorm(m*n),ncol=n) which
generates m samples of size n from the N(0,1) distribution. Each
row of the matrix mat contains a sample. For this matrix of
samples, the function below computes the (1 − α)100% confidence
intervals, returning them in a m×2 matrix. Run this function on
your generated matrix mat. What is the proportion of successful
confidence intervals?
246 Some Elementary Statistical Inferences
getcis <- function(mat,cc=.90){ numb <- length(mat[,1]); ci
<- c() for(j in 1:numb)
{ci<-rbind(ci,t.test(mat[j,],conf.level=cc)$conf.int)}
return(ci)} This function is also at the site discussed in Section
1.1.
(b) Run the following code which plots the intervals. Label the
successful intervals. Comment on the variability of the lengths of
the confidence intervals. cis<-getcis(mat); x<-1:m
plot(c(cis[,1],cis[,2])~c(x,x),pch="",xlab="Sample",ylab="CI")
points(cis[,1]~x,pch="L");points(cis[,2]~x,pch="U");
abline(h=0))
4.2.12. In Exercise 4.2.11, the sampling was from the N(0,1) distribution. Show, however, that setting μ...
Let X1,X2, , Xn be a random sample from a normal distribution with a known mean μ (xi-A)2 and variance σ unknown. Let ơ-- Show that a (1-α) 100% confidence interval for σ2 is (nơ2/X2/2,n, nơ2A-a/2,n). Let X1,X2, , Xn be a random sample from a normal distribution with a known mean μ (xi-A)2 and variance σ unknown. Let ơ-- Show that a (1-α) 100% confidence interval for σ2 is (nơ2/X2/2,n, nơ2A-a/2,n).
1. Suppose you are drawing a random sample of size n > 0 from N(μ, σ2) where σ > 0 is known. Decide if the following statements are true or false and explain your reasoning. Assume our 95% confidence procedure is (X- 1.96X+1.96 Vn a. If (3.2, 5.1) is a 95% CI from a particular random sample, then there is a 95% chance that μ is in this interval. b. If (3.2.5.1) is a 95% CI from a particular random...
Let Xi, , Xn be a random sample from a n(o, σ*) distribution with pdf given by 2πσ I. Is the distribution family {f(x; σ), σ 0} complete? 2. Is PCH)〈1) the same for all σ ? 3. Find a sufficient statistic for σ. 4. Is the sufficient statistic from (c) also complete!? Let Xi, , Xn be a random sample from a n(o, σ*) distribution with pdf given by 2πσ I. Is the distribution family {f(x; σ), σ 0}...
DISTRIBUTION OF SAMPLE VARIANCE: Xn ~ N(μ, σ2), where both μ and σ are Problem 4 (25 points). Assume that Xi unknowin 1. Using the exact distribution of the sample variance (Topic 1), find the form of a (1-0) confidence interval for σ2 in terms of quantiles of a chi-square distribution. Note that this interval should not be symmetric about a point estimate of σ2. [10 points] 2. Use the above result to derive a rejection region for a level-o...
Let p E [0,1] with pメ, and let (Xn)n=o b l e the Markov chain on with initia [0,1] given by distribution δο and transition matrix 11: Z Z ify=x-1 p 0 otherwise. Use the strong law of large numbers to show that each state is transient. Hint: consider another Markov chain with additional structure but with the same distribution and transition matrix Let p E [0,1] with pメ, and let (Xn)n=o b l e the Markov chain on with...
, Xn is a sample from a uniform distribution (o, e), you already saw that t-X(n) is the me их1, X2, Of θ. obtain the formula for the confidence interval for θ by using the distribution of Y-X(n)/9. That is, find the α/2 th percentile and the (1-α/2) th percentile of the distribution of w-X(n)/9. hie by solving for w-α/2 Hint: Obtain wi-a/2 in the equation: And obtain Wa/2 by solving for Wa/2 in the equation: Note: the distribution of...
6. Let Xi 1,... ,Xn be a random sample from a normal distribution with mean u and variance ơ2 which are both unknown. (a) Given observations xi, ,Xn, one would like to obtain a (1-a) x 100% one-sided confidence interval for u as a form of L E (-00, u) the expression of u for any a and n. (b) Based on part (a), use the duality between confidence interval and hypothesis testing problem, find a critical region of size...
Let X, , . . ., Xn be a random sample from an N(p, ơ2). (a) Construct a (1-α) 100% confidence interval for μ when the value of σ2 is known. (b) Construct a (1-α) 100% confidence interval for μ when the value of σ2 is unknown.
. Let Yi, ,Ý, be a sample from N(μ, σ2) distribution, where both μ and σ2 are un known Repeat the argument that was given in class to show that is a pivot (start by representing Yj as a linear function of a N(0, 1) random variable). Use the fact that (n-pe, of freedom") to construct the confidence interval with coverage probability 95% for σ2 (you can state the answer in terms of quantiles of X2-distribution, or find their numerical...
1. Let X,X, X, be a random sample from N(μ, σ*) and X and S2, respectively, be the sample mean and the sample variance. Let Xn+1 ~ N(μ, σ*), and assume that X,,X2,..XX+ are independent. Find the sampling distribution of [(X X) /n/(n