Homework 10 in STAT400 @ CSU
Be sure to set.seed(400)
at the beginning of your
homework.
Suppose \(X_1, \dots, X_{n}\) is a random sample from a \(N(\mu, \sigma^2)\) distribution. Consider the test \(H_0: \mu = 500\) vs. \(H_a = \mu \not= 500\) with \(\alpha = 0.05\). Then under the alternative hypothesis, \[ T^* = \frac{\overline{X} - 500}{s/{\sqrt{n}}} \sim t_{n - 1}. \] for \(\mu_a \not= 500\). We will examine the impact of effect size on power. Use \(m = 1000\) for the number of Monte Carlo replications and \(\sigma = 100\).
We will use the CommuteAtlanta
data in the
Lock5Data
package in R
. For information on the
data, use the following commands.
library(Lock5Data)
?CommuteAtlanta
Turn in in a pdf of your homework to canvas. Your .Rmd file on the server will also be used in grading, so be sure they are identical and reproducible.
Be sure to share your server project with the instructor and grader:
Open your hw-10 project on liberator.stat.colostate.edu
Click the drop down on the project (top right side) > Share Project…
Click the drop down and add “stat400instructors” to your project.
This is how you receive points for reproducibility on your homework!