GIVE NOW about ocw help & faqs contact us
18.05 | Spring 2014 | Undergraduate

# Introduction to Probability and Statistics

### Problem Set 3 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("<h3>Calculator</h3>"); 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) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(c) Magic $n$ for independence:”; wl(s); wl(kp); partName = problemNumber + " (c)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 3, buttonLabel, 0.001, debugans); wl(kp); whr(kdivcol,kdivwid); //Problem 2 problemNumber++; wl(problemheader(problemNumber)); wl(’’); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a.1) Mean:”; wl(s); wl(kp); partName = problemNumber + " (a.1)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 2.554528, buttonLabel, 0.01, debugans); wl(kp) s = “(a.2) Standard deviation:”; wl(s); wl(kp); partName = problemNumber + " (a.2)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 2.074, buttonLabel, 0.01, debugans); wl(kp) s = “(b) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(c) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); whr(kdivcol,kdivwid); //Problem 3 problemNumber++; wl(problemheader(problemNumber)); wl(’’); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a.1) $σ_X$:”; wl(s); wl(kp); partName = problemNumber + " (a.1)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 1.118, buttonLabel, 0.001, debugans); wl(kp); s = “(a.2) $σ_Y$:”; wl(s); wl(kp); partName = problemNumber + " (a.2)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 1.7078, buttonLabel, 0.001, debugans); wl(kp); s = “(a.3) $σ_Z$:”; wl(s); wl(kp); partName = problemNumber + " (a.3)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 1.0206, buttonLabel, 0.001, debugans); wl(kp); s = “(b) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(c) Expected " + emphtext(“total”) + " gain:”; wl(s); wl(kp); partName = problemNumber + " (c)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 55, buttonLabel, 0.1, debugans); wl(kp); whr(kdivcol,kdivwid); //Problem 4 problemNumber++; wl(problemheader(problemNumber)); wl(’’); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a) Number of raisins in box:”; wl(s); wl(kp); partName = problemNumber + " (a)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 750, buttonLabel, 0.1, debugans); wl(kp); s = “(b) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(c) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(d) Probability a raisin is in the bottom third (three decimal places of accuracy):”; wl(s); wl(kp); partName = problemNumber + " (d)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, .46667, buttonLabel, 0.001, debugans); wl(kp); whr(kdivcol,kdivwid); //Problem 5 problemNumber++; wl(problemheader(problemNumber)); wl(’’); var s; var partName, problemName, buttonLabel, answerArray, correct; s = “(a) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(b) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(c) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(d) " + 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 = “(a) " + knoonlinecheck; wl(s) wl(kp); wl(kbr); s = “(b) Probability of a baby before the final:” wl(s); wl(kp); partName = problemNumber + " (a)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, .205, buttonLabel, 0.04, debugans); wl(kp); s = “(c) Probability of a baby in May and after the exam:” wl(s); wl(kp); partName = problemNumber + " (c)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, .555, buttonLabel, 0.038, debugans); wl(kp); s = “(d) Give the day in May (e.g. 8, 9, 10, 11, …) for 95% probability:”; wl(s); wl(kp); partName = problemNumber + " (d)”; problemName = “prob” + partName; buttonLabel = “Check problem " + partName; writeNumericBox(partName+“id”, 11, buttonLabel, 0.1, debugans); wl(kp); whr(kdivcol,kdivwid);

## Course Info

##### Instructors

- Dr. Jeremy Orloff
- Jonathan Bloom

##### Departments

- Mathematics

##### As Taught In

Spring 2014

##### Level

Undergraduate

##### Topics

- Mathematics
  - Discrete Mathematics
  - Probability and Statistics

##### Learning Resource Types

assignment_turned_in Problem Sets with Solutions
grading Exams with Solutions
notes Lecture Notes
co_present Instructor Insights
theaters Other Video

Browse Resources

# You are leaving MIT OpenCourseWare

Please be advised that external sites may have terms and conditions, including license rights, that differ from ours. MIT OCW is not responsible for any content on third party sites, nor does a link suggest an endorsement of those sites and/or their content.