

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A statistics homework assignment from a university course, specifically stat 502. The assignment includes tasks related to analyzing data from two groups of prairie voles, where one group receives food supplements and the other forages for food. The tasks involve creating histograms, boxplots, computing means and medians, and performing t-tests to evaluate differences between the groups. Additionally, the assignment covers the derivation of the distribution of p-values under the null hypothesis for one-sample and two-sample t-tests, and the derivation of the distribution of the two-sample t-statistic under the null hypothesis. Lastly, the assignment includes a question about finding the distribution of the sum of two chi-square distributions.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Stat 502 Homework 2 Assigned 10/9/ Due 10/16/
(a) Make a histogram and boxplots for each of the two groups. Comment on the differences. (b) Compute the means and medians of each group. Comment on the differences. (c) Plot the density of the appropriate t-distribution if one were to use the ordinary two- sample t-test to evaluate differences between the groups. Obtain the corresponding p- value. Write down the assumptions which validate the use of this p-value, and comment on whether or not they are met for these data. (d) Make a histogram of the randomization distribution of the t-statistic, and compute the corresponding p-value. Write down the assumptions which validate the use of this p- value, and comment on whether or not they are met for these data.
(a) Consider the one-sample t-test for evaluating evidence against H 0 : μ = μ 0. Derive the distribution of the p-value under the null hypothesis. Using the result, show that the type I error of a level-α test is α. (b) Now consider the hypothesis H 0 : μA = μB. Via simulation, compute the null distri- bution of the p-value based on the two-sample t-test under each of the following six experimental scenarios. i. Y 1 ,A,... , Y 10 ,A ∼ i.i.d. normal(1,1), Y 1 ,B ,... , Y 10 ,B ∼ i.i.d. normal(1,1) ii. Y 1 ,A,... , Y 10 ,A ∼ i.i.d. normal(1,1), Y 1 ,B ,... , Y 10 ,B ∼ i.i.d. normal(1,3) iii. Y 1 ,A,... , Y 10 ,A ∼ i.i.d. Poisson(1), Y 1 ,B ,... , Y 10 ,B ∼ i.i.d. Poisson(1) iv. Y 1 ,A,... , Y 10 ,A ∼ i.i.d. normal(1,1), Y 1 ,B ,... , Y 10 ,B ∼ i.i.d. normal(3,1) v. Y 1 ,A,... , Y 10 ,A ∼ i.i.d. normal(1,1), Y 1 ,B ,... , Y 10 ,B ∼ i.i.d. normal(3,3) vi. Y 1 ,A,... , Y 10 ,A ∼ i.i.d. Poisson(1), Y 1 ,B ,... , Y 10 ,B ∼ i.i.d. Poisson(3) More specifically, for each of the above scenarios,
Write a sentence or two about what you have learned from each of these simulations (hint: you should have learned something about robustness of the t-test, power of the t-test and about whether your calculation in part (a) was correct).
(a) Recall that we defined the χ^2 m distribution as the distribution of a sum of m squared standard normal random variables. Thus if X ∼ χ^2 m then we can think of X as being represented by X = Z^21 + · · · Z m^2 where Z 1 ,... , Zm ∼ i.i.d. normal(0,1). Use this to derive the distribution of X 1 + X 2 , where X 1 ∼ χ^2 m 1 , X 2 ∼ χ^2 m 2 , and X 1 and X 2 are independent. (b) Let Y 1 ,... , Yn ∼ i.i.d. normal(μ, σ^2 ), and let Zi = (Yi − μ)/σ. i. What is the distribution of Z 1 ,... , Zn? ii. Write out (Zi − Z¯) in terms of the Y ’s, μ and σ^2. iii. Use the fact that
(Zi − Z¯)^2 ∼ χ^2 n− 1 to derive the distribution of
(Yi − Y¯ )^2 /σ^2. (c) Let Y 1 ,A,... , YnA,A ∼ i.i.d. normal(μA, σ^2 ) and Y 1 ,B ,... , YnB ,B ∼ i.i.d. normal(μB , σ^2 ). Use the results in (a) and (b) to obtain the distribution of (nA −1)s^2 A/σ^2 +(nB −1)s^2 B /σ^2. Indicate how you are using the results from (a) and (b). Note that (nA − 1)s^2 A/σ^2 + (nB − 1)s^2 B /σ^2 is equal to (nA + nB − 2)s^2 p/σ^2. (d) Use the above results to derive the distribution of the two-sample t-statistic under H 0 : μA = μB.