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

dhalfcauchy returns non-zero values for negative numbers #36

Open
acope3 opened this issue Apr 18, 2023 · 0 comments
Open

dhalfcauchy returns non-zero values for negative numbers #36

acope3 opened this issue Apr 18, 2023 · 0 comments

Comments

@acope3
Copy link

acope3 commented Apr 18, 2023

Hello,

I was using the dhalfcauchy function from LaplacesDemon. My understanding of the Half-Cauchy distribution is the density should be 0 for values less than 0. However, this does not appear to be the case.

dhalfcauchy(3,scale=0.1)
dhalfcauchy(-3,scale=0.1)

In both cases, the output is 0.007065702.

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

No branches or pull requests

1 participant