ENH: Implement CDF of the bivariate normal distribution#112
ENH: Implement CDF of the bivariate normal distribution#112fbourgey wants to merge 6 commits intoscipy:mainfrom
Conversation
dschmitz89
left a comment
There was a problem hiding this comment.
Thanks @fbourgey . The code looks correct. I have comments regarding readability/maintainability.
Could we rename the function for example? bvnu has the same charm as the ancient Fortran routines in amos. I think it was just taken over but why not use the chance to rename them to something more descriptive?
|
@dschmitz89 thanks for the review! I have used a more explicit name and tried to factor out some of the functions. Let me know what you think. |
Thanks @fbourgey , imo the changes brought a big maintainability win. I will give this my approval. Are there any extra tests for the 2D case in SciPy itself? |
I found a few in https://github.com/scipy/scipy/blob/main/scipy/stats/tests/test_multivariate.py#L887 |
|
It looks good from an algorithmic perspective but it's not there yet since it still relies on internal Feel free to email me directly if you have any questions or need help with anything. |
@steppi @dschmitz89 I've tried to remove any |
|
Oh very cool. I guess I didn't look closely enough and missed that the internal allocation was completely unnecessary. This won't even need the pattern from my recent |
Reference issue
Toward #98
What does this implement/fix?
Implement the CDF of the bivariate normal distribution from
_bvnuAdditional information
I have kept the original comments (MATLAB code) from
_bvnu