

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The project has two parts. The first part involves a simulation study while the second part, a data analysis.
1.1. Background. A simulation study may be regarded as a statistical experiment. We can verify a statistical theory, or method, through a simulation study, or investigate the performance of a statistical method in a finite sample situation. The main purpose of this study, however, is for you to better understand the concept of multivariate confidence regions and simultaneous confidence intervals.
1.2. Preliminary. Use R to find the square root of a nonnegative definite matrix. More specifically, let
( 1 0. 2
)
. (1)
Find Σ^1 /^2 using R.
1.3. Data Generation. Generate 50 independent bivariate observations X 1 ,... , X 50 so that
Xi =
( Xi 1 Xi 2
) ∼ N (μ, Σ), 1 ≤ i ≤ 50 , (2)
where μ =
(
) and Σ is given by (1), as follows:
a. Generate 100 independent N (0, 1) random variables ξ 1 ,... , ξ 100 using R. b. Arrange the ξ’s in a 2 × 50 matrix, say, ξ. c. Let X = μ ⊗ 1 ′ 50 + Σ^1 /^2 ξ, where ⊗ denotes the Kronecker product, and 1 50 is the 50 × 1 vector of 1’s, so
μ ⊗ 1 ′ 50 =
( μ 1 · · · μ 1 μ 2 · · · μ 2
) ,
and Σ^1 /^2 is computed from part 1.2. X is what you want, that is, the ith column of X is the Xi in (2), 1 ≤ i ≤ 50. d. Explain why the columns of X as generated in part c has the desired distributional property, that is, they are independent and satisfy (2).
1.4. Exploring the simulated data. Generate a random sample X 1 ,... , X 50 as in part 1.3. Then do the following: a. Plot the simulated data points. b. Construct the 95% confidence ellipse
n(μ − X¯)′S−^1 (μ − X¯) ≤ c^2 α, (3)
where X¯ and S are the sample mean and covariance matrix based on this simulated data set, and
c^2 α = (n − 1)p n − p Fp,n−p(α)
(it should be clear what n, p and α are here). Make a plot of the (two-dimensional)
ellipse (3) as a region of μ =
( μ 1 μ 2
) using R. (Note: In R a χ^2 approximation is
used to make the ellipse, which is fine in this case.)
1.5. Simultaneous confidence intervals. Use two methods to compute simultaneous confidence intervals for μ 1 and μ 2 based on the data set generated in part 1.4. a. (The projection method or Scheff´e’s method)
X¯j ± cα
√ sjj n
, j = 1, 2. (4)
b. (Bonferroni’s method)
X¯j ± tn− 1
( α 2 m
) √^ sjj n
, j = 1, 2 (5)
(it should be clear what m is here).
1.6. Empirical probabilities of coverage. Repeat parts 1.3 — 1.5 (except the plots) 100 times. For each data set you generate, check to see if the true μ given below (2) is in the confidence ellipse (3), the simultaneuous confidence intervals (4) or (5). How many times the corresponding confidence region covers μ in each case?
1.7. Comments and conclusion?
Analyze the data given by Table 5.14 (available from the course website). Unlike the exercises. Here you are given the freedom to explore and analyze the data using whatever methods you have learned so far. Some of the aspects you may consider include:
2.1. How to visually explore a multi-dimensional data set? 2.2. Estimate of the population mean and covariance matrix. 2.3. Confidence regions and simultaneuous confidence intervals for the population mean. 2.4. (Optional) checking the multivariate normality assumption (see page 184; the TA may discuss this in her session). 2.5. Question 5.28 (b) in the book. 2.6. Any comparison between the first four locations and the last two (see Question 5.28)?