{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

SA3 - Statistics 133 Short Assignment 3 due on bSpace at...

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

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. Let’s 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.

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 ]}