Problem Set 9 Answer Checker
Work on the assigned problems in the associated Problem Set PDF file, then use the problem set checker to find out if the answer was correct or incorrect. 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)); wl(''); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a) " + knoonlinecheck; wl(s); wl(kp); wl(kbr); s = “(b.i) Give the lower limit of the 80% confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 0.51947, buttonLabel, 0.002, debugans); wl(kp); s = “(b.ii) Give the upper limit of the 80% confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 0.60052, buttonLabel, 0.002, debugans); wl(kp); s = “(b.iii) Give the lower limit of the 95% confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.iii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 0.497, buttonLabel, 0.005, debugans); wl(kp); s = “(b.iv) Give the upper limit of the 95% confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.iv)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 0.622, buttonLabel, 0.005, debugans); wl(kp); s = “(c.i) Give the lower limit of the 80% posterior probability interval."; wl(s); wl(kp); partName = problemNumber + " (c.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 0.5194, buttonLabel, 0.005, debugans); wl(kp); s = “(c.ii) Give the upper limit of the 80% posterior probability interval."; wl(s); wl(kp); partName = problemNumber + " (c.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 0.5995, buttonLabel, 0.005, debugans); wl(kp); whr(kdivcol,kdivwid);
//Problem 2 problemNumber++; wl(problemheader(problemNumber)); wl(''); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a.i) Give the lower limit of the 90% $t$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (a.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 68.09, buttonLabel, 0.011, debugans); wl(kp); s = “(a.ii) Give the upper limit of the 90% $t-$confidence interval."; wl(s); wl(kp); partName = problemNumber + " (a.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 71.02, buttonLabel, 0.011, debugans); wl(kp); s = “(b.i) Give the lower limit of the 90% $z$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 68.16, buttonLabel, 0.01, debugans); wl(kp); s = “(b.ii) Give the upper limit of the 90% $z$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 70.94, buttonLabel, 0.01, debugans); wl(kp); s = “(c) Give the number of people needed to make the " + emphtext(“width”) + " of the interval 1 inch."; wl(s); wl(kp); partName = problemNumber + " (c)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 154, buttonLabel, 0.7, debugans); wl(kp); s = “(d) Give the number of people needed to make the " + emphtext(“width”) + " of the interval 1 inch."; wl(s); wl(kp); partName = problemNumber + " (d)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 157, buttonLabel, 0.1, debugans); wl(kp); whr(kdivcol,kdivwid);
//Problem 3 problemNumber++; wl(problemheader(problemNumber)); wl(''); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a.i) Give the lower limit of the precise (i.e. let R compute $z_{α∕2}$) 95% $z$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (a.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 354.04, buttonLabel, 0.01, debugans); wl(kp); s = “(a.ii) Give the upper limit of the 95% precise $z$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (a.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 357.96, buttonLabel, 0.01, debugans); wl(kp); s = “(b.i) Give the lower limit of the 98% $z$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 353.67, buttonLabel, 0.01, debugans); wl(kp); s = “(b.ii) Give the upper limit of the 98% $z$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (b.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 358.33, buttonLabel, 0.01, debugans); wl(kp); s = “(c.i) Give the lower limit of the 95% $t$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (c.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 352.9738, buttonLabel, 0.01, debugans); wl(kp); s = “(c.ii) Give the upper limit of the 95% $t$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (c.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 359.0262, buttonLabel, 0.01, debugans); wl(kp); s = “(c.iii) Give the lower limit of the 98% $t$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (c.iii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 352.1989, buttonLabel, 0.01, debugans); wl(kp); s = “(c.iv) Give the upper limit of the 98% $t$-confidence interval."; wl(s); wl(kp); partName = problemNumber + " (c.iv)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 359.8011, buttonLabel, 0.01, debugans); wl(kp); whr(kdivcol,kdivwid);
//Problem 4 problemNumber++; wl(problemheader(problemNumber)); wl(''); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a.i) Give the lower limit of the 95% confidence interval for $σ^2$."; wl(s); wl(kp); partName = problemNumber + " (a.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, .07706, buttonLabel, 0.003, debugans); wl(kp); s = “(a.ii) Give the upper limit of the 95% confidence interval for $σ^2$."; wl(s); wl(kp); partName = problemNumber + " (a.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, .44268, buttonLabel, 0.003, debugans); wl(kp); s = “(b) " + knoonlinecheck; wl(s); wl(kp); wl(kbr); whr(kdivcol,kdivwid);
//Problem 5 problemNumber++; wl(problemheader(problemNumber)); wl(''); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a.i) Give the lower limit of the 95% confidence interval for $σ$."; wl(s); wl(kp); partName = problemNumber + " (a.i)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 1.4096, buttonLabel, 0.005, debugans); wl(kp); s = “(a.ii) Give the upper limit of the 95% confidence interval for $σ$."; wl(s); wl(kp); partName = problemNumber + " (a.ii)"; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+"id”, 3.7414, buttonLabel, 0.01, debugans); wl(kp); s = “(b) " + knoonlinecheck; wl(s); wl(kp); wl(kbr); whr(kdivcol,kdivwid);
//Problem 6 problemNumber++; wl(problemheader(problemNumber)); wl(''); var s; var partName, problemName, buttonLabel, answerArray, correct; s = knoonlinecheck; wl(s); wl(kp); wl(kbr); whr(kdivcol,kdivwid);