STATS 403 Midterm: STAT 406 Midterm Fall 2007

54 views10 pages
31 Jan 2019
School
Department
Course
Professor

Document Summary

No calculators, formula cards, computers, or notes may be used. Partial credit will be given: describe in 2-3 sentences what the following program is doing. Focus on the statistical purpose of the program and the approach being used to achieve the purpose. You do not need to predict its result or describe each line of code individually. F = null for (k in 1:3) { n = n[k] R = 0 for (j in 1:1e3) { X = rexp(n) m = mean(x) s = sd(x) Q = sort(q) c1 = q[25] c2 = q[975] if ((c1<1) & (1