Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Repeat many times(1000 times in my case)
- 2. Generate $phi$ and $sigma^2$.
- 3. Repeat 100 times:
- 4. Simulate an AR1 series with parameters from 2.
- 5. Compute 95% confidence intervals for $phi$ and $sigma^2$.
- 6. Verify that 5% of the time the above CI does NOT contain
- the parameters generated in step 2(this is equivalent to the
- CI containing the parameter 95% of the time).
- 7. This amounts to saying that the distribution of number of
- time the CI does NOT contain the original parameter is
- Binomial(100,.05)
- We will finally get 1000 element vector which SHOULD be
- distributed as rbinom(n=1000,size=100,p=.05)
- I then do a qqplot of the observed vector with the expected vector.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement