Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Provided a p.f. of a discrete random variable, or a joint p.f. for several random variable, is there any software package to calculate the entropy, joint entropy, information content, mutual information, etc? If it can be used in a C# program, that'll be great.

share|improve this question
1  
R has a package called entropy. –  Stefan Hansen Feb 6 at 9:19
    
Thanks. If you change your comment to an answer, I will mark it. BTW, is there any Python option? –  smwikipedia Feb 6 at 9:45
1  
Like this? –  Stefan Hansen Feb 6 at 9:51
    
That looks awesome. Could you re-post your 2 comments as an answer so I can mark it? –  smwikipedia Feb 6 at 10:01
    
If you already know the p.m.f. it is not difficult to calculate these quantities. –  Memming Feb 7 at 16:44
add comment

1 Answer 1

up vote 1 down vote accepted

R has a package called entropy which allows you to calculate quantities such as entropy and mutual information. There is also a module called pyentropy for Python that allows you calculate similar quantities.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.