menu

Reading Questions 17b

Reading Questions Answer Checker

To check your answers put them in the appropriate box and click the ‘Check’ button. Every checker box can do arithmetic and calculate standard functions (see calculator help). If you give decimal answers, give them to at least 3 decimal places.

As you work you should have pencil and paper handy for calculations and thinking!

Note: some questions ask for a formula. For the checker we ask you to plug a value into the formula. For your pset you still need to give the whole formula.

//DEBUG PARAMETERS //Because we don’t show solutions for pset checkers we use //this to give a showanswer button during the debugging phase var debugans = undefined; //release //var debugans = kDebugAnswer; //debug problemNumber = 0; wl(“Calculator”); writecalculator(“psetcheckcalcid”, “Calculate”); whr(kdivcol,kdivwid);

//Problem 1 problemNumber++; wl(problemheader(problemNumber)); var s; var partName, problemName, buttonLabel, answerArray, correct; s = [“Data is drawn from a normal distribution with unknown mean $μ$. We make the following hypotheses:", kp, “$H_0$: $μ = 1$”, ksp, “and”, ksp, “$H_A$: $μ > 1$."]; wl(s.join(’ ‘)); wl(kp); s = “(a) Is $H_0$ a simple or composite hypothesis?"; wl(s); wl(kbr); partName = problemNumber + " (a)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; correct = “Simple”; var answerArray = [correct,“Composite”]; writeMultipleChoiceRadioGroup(answerArray, problemName, correct, buttonLabel); wl(kp); s = “(b) Is $H_A$ a simple or composite hypothesis?"; wl(s); wl(kbr); partName = problemNumber + " (b)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; correct = “Composite”; var answerArray = [“Simple”, correct]; writeMultipleChoiceRadioGroup(answerArray, problemName, correct, buttonLabel); wl(kp); s = “(c) Is $H_A$ a one or two-sided?"; wl(s); wl(kbr); partName = problemNumber + " (c)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; correct = “One-sided”; var answerArray = [correct,“Two-sided”]; writeMultipleChoiceRadioGroup(answerArray, problemName, correct, buttonLabel); wl(kp); whr(kdivcol,kdivwid);

//Problem 2 problemNumber++; wl(problemheader(problemNumber)); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “We want to estimate the value of an unknown variance $σ^2$. The null hypothesis $H_0$ is that $σ^2 =1 $. Of course we know that $σ^2 > 0$. Other than that we only care whether or not $σ^2$ is 1. Should we have a one or two-sided alternate hypothesis?"; wl(s); wl(kbr); partName = problemNumber; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; correct = “Two-sided”; var answerArray = [“One-sided”,correct]; writeMultipleChoiceRadioGroup(answerArray, problemName, correct, buttonLabel); wl(kp); whr(kdivcol,kdivwid);

//Problem 3 problemNumber++; wl(problemheader(problemNumber)); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “Our data is normal with variance 25. The null hypothesis is that the data is drawn from N(10, 25). That is, the null distribution has $μ = 10$. We have 1 data point $x = 20$."; wl(s); wl(kp) s = “(a) If the alternative hypothesis is one-sided $μ > 10$. What is the $p$-value for this data?"; wl(s); wl(kbr); partName = problemNumber + " (a)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, .02275, buttonLabel, 0.003, kuseCorrectVal); wl(kp); s = “(b) Suppose our significance level is 0.05. Will we reject the null hypothesis?"; wl(s); wl(kbr); partName = problemNumber + " (b)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; correct = “Yes”; var answerArray = [correct,“No”]; writeMultipleChoiceRadioGroup(answerArray, problemName, correct, buttonLabel); wl(kp); whr(kdivcol,kdivwid);

Course Features

assignment_turned_in Assignments - problem sets with solutions
grading Exams - Solutions
assignment_turned_in Interactive assessments
record_voice_over AV selected lectures - Video