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

Fix normal equiprobable approximation #1139

Merged
merged 4 commits into from
Apr 27, 2022
Merged

Conversation

Mv77
Copy link
Contributor

@Mv77 Mv77 commented Apr 26, 2022

I noticed a bug in the code that discretizes normal distributions using an equiprobable approximation. This is code that I added some months ago. I was not re-scaling the points from their standardized transformation appropriately.

This PR fixes the issue and adds a test.

I do not think this bug has any major impact:

  • Equiprobable is not the default discretization method for the normal distribution.
  • The normal distribution is not used much (at all?) around HARK. Most shocks are lognormal.

I'll only have to revise my estimate of my statistical proficiency downward.

@llorracc llorracc merged commit 9f5b115 into econ-ark:master Apr 27, 2022
@sbenthall sbenthall added this to the 0.13.0 milestone Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants