We use the t-test for H0: \(\mu\)= -2 versus HA: \(\mu\)< -2 at \(\alpha\)=0.05 level (reject when p-value<0.05). The sample size is n=10. We check the real Type I error rate of this test, when data comes from N(mean= -2, sd=3) distribution, using 10,000 Monte Carlo simulation runs. Write the R commands for the simulation below.
Submit and Compare Clear