Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 3: Exercise 13 #39

Closed
asadoughi opened this issue Nov 4, 2014 · 1 comment
Closed

Chapter 3: Exercise 13 #39

asadoughi opened this issue Nov 4, 2014 · 1 comment
Labels

Comments

@asadoughi
Copy link
Owner

As reported by @shayan-mj in #3

In the exercise 13 of chapter 3 was said "create vector, esp, from a N(0, 0.25) distribution i.e. a normal distribution with mean zero and variance 0.25". So, the standard deviation is equal to 0.5, and in solution was written "esp = rnorm(100, 0, 0.25)", but in it should be written "esp = rnorm(100, 0, 0.5)", because "rnorm" function get standard deviation as its argument.

@asadoughi asadoughi added the bug label Nov 4, 2014
@asadoughi
Copy link
Owner Author

Thanks, @shayan-mj, for pointing this out. I verified that rnorm() does take standard deviation as its argument so instead of 0.25, the argument should be sqrt(0.25) = 0.5. I will fix this promptly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant