{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

STAT 340 Midterm 2 Soln

STAT 340 Midterm 2 Soln - Winter 2012 Stat 340 STAT 340...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Stat 340 Winter 2012 STAT 340 - Winter 2012 In this exam please assume the following: 1. Any Con°dence Intervals and Hypothesis Tests where the % are not given are at a 95% and 5% level respectively. 2. You are marked according to the clarity and completness of your solutions. In particular, an answer without justi°cation is worth zero (0) marks. 3. Failure to stop writting at the required time will result in a penalty of 5 marks . This includes your name so write it °rst. 4. The last page (leaf) of this exam is the only page you hand in. 5. Please assume that random variables are independent unless stated otherwise. 6. Watch your time. Do not waste your time on any one question. Time: 60 Minutes Page 1 of 8
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Stat 340 Winter 2012 Page 2 of 8
Image of page 2
Stat 340 Winter 2012 Page 3 of 8
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Stat 340 Winter 2012 Page 4 of 8
Image of page 4
Stat 340 Winter 2012 Page 5 of 8
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Stat 340 Winter 2012 Code: KS = function(n,d,m) { out = NULL for (i in 1:n) { ran = rchisq(100,df=m) rans = sort(ran) pF = pchisq(rans,df=mean(rans)) Fl = c(0:99)/100 Fu = Fl + 1/100 d = max(abs(pF-Fu),abs(pF-Fl)) out = c(out,d) } return(out) } round(KS(50,0.101,2),2) 0.05, 0.07, 0.07, 0.06, 0.07, 0.07, 0.10, 0.04, 0.08, 0.10, 0.10, 0.10, 0.09, 0.05, 0.13, 0.07, 0.06, 0.05, 0.08, 0.11, 0.07, 0.04, 0.12, 0.08, 0.07, 0.08, 0.05, 0.05, 0.04, 0.09, 0.06, 0.15, 0.05, 0.08, 0.10, 0.07, 0.08, 0.09, 0.04, 0.05, 0.05, 0.05, 0.07, 0.08, 0.09, 0.07, 0.12, 0.08, 0.11, 0.04 Page 6 of 8
Image of page 6
Stat 340 Winter 2012 STAT 340 - Winter 2012 First Name: Last Name: Section: 1. Short Questions based on the code on page 2.
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern