{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

STAT 340 Midterm 2 Soln

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

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

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

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

View Full Document
Stat 340 Winter 2012 Page 2 of 8
Stat 340 Winter 2012 Page 3 of 8

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

View Full Document
Stat 340 Winter 2012 Page 4 of 8
Stat 340 Winter 2012 Page 5 of 8

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

View Full Document
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
Stat 340 Winter 2012 STAT 340 - Winter 2012 First Name: Last Name: Section: 1. Short Questions based on the code on page 2.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern