This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Statistics 133 - Short Assignment 3 due on bSpace at 11pm Tuesday, Sept. 22 In this assignment you will practice programming in R . You should turn in a script file with a .R extension with your name in a comment at the top. Include comments in your code labeling the parts of your code by problem number. Any functions should also be preceded by a brief comment describing what each one does. 1. The Strong Law of Large Numbers states that for a sequence of independent and identically distributed random variables with finite variance, the sample mean will converge with probability one to the expected value of the distribution as the sample size goes to infinity. Lets illustrate what this sequence of means looks like for some simulated Poisson random variables. First create a vector nseq that contains a sequence of possible sample sizes, from 10 to 1000 in increments of 10. Use rpois to simulate 1000 random draws from the Poisson distribution with = 10....
View Full Document
This note was uploaded on 12/20/2009 for the course STAT 133 taught by Professor Staff during the Fall '08 term at University of California, Berkeley.
- Fall '08