STAT 340 Midterm 2 Soln

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

Info iconThis preview shows pages 1–7. 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. respectively. 2. You are marked according to the clarity and completness of your solutions. In particular, an answer without 3. Failure to stop writting at the required time will result in a penalty of 5 marks. This 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Stat 340 Winter 2012 Page 2 of 8
Background image of page 2
Stat 340 Winter 2012 Page 3 of 8
Background image of page 3

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

View Full DocumentRight Arrow Icon
Stat 340 Winter 2012 Page 4 of 8
Background image of page 4
Stat 340 Winter 2012 Page 5 of 8
Background image of page 5

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

View Full DocumentRight 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
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/02/2012 for the course STAT 340 taught by Professor Xu(sunny)wang during the Winter '09 term at Waterloo.

Page1 / 8

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

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online