Skip to content

[Ready for review] Normal cdf#178

Open
dance858 wants to merge 4 commits intomasterfrom
normal_cdf
Open

[Ready for review] Normal cdf#178
dance858 wants to merge 4 commits intomasterfrom
normal_cdf

Conversation

@dance858
Copy link
Collaborator

@dance858 dance858 commented Mar 15, 2026

The differentiation backend recently added support for the cumulative distribution function (CDF) of the Gaussian distribution, because I'm playing around with an application for the DNLP paper that requires this atom. This PR adds the corresponding atom to CVXPY and DNLP.

Is the name "normal_cdf" okay? There currently is an atom "log_normcdf".

@dance858
Copy link
Collaborator Author

@PTNobel

Parth, what do you think about the name "normal_cdf"?

@PTNobel
Copy link
Member

PTNobel commented Mar 16, 2026

MATLAB uses normcdf and SciPy uses norm.cdf and torch uses normal.cdf and JAX uses norm.cdf

Fortran used cdf_normal, R uses ??? pnorm ???

My soft preference is to call it normcdf to match log_normcdf, but as long as we don't use what R does I'm happy.

https://www.mathworks.com/help/stats/normcdf.html
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html
https://r02pro.github.io/normal-distribution.html

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