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

entropy for rv_discrete is incorrect?! #2996

Closed
serbkamu opened this issue Oct 16, 2013 · 1 comment · Fixed by #3006
Closed

entropy for rv_discrete is incorrect?! #2996

serbkamu opened this issue Oct 16, 2013 · 1 comment · Fixed by #3006
Milestone

Comments

@serbkamu
Copy link

I could not find any issues about it, so may be I don't understand something, but I think that entropy of uniform distribution on ( 0, 1 ) must be equal to 1.

drv = rv_discrete( values = ( ( 0, 1 ), ( 0.5, 0.5 ) ) )
drv.entropy()
array(0.6931471805599453)

@pv
Copy link
Member

pv commented Oct 16, 2013

It's base-e, not base 2.

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

Successfully merging a pull request may close this issue.

2 participants