hstatistics-0.2.5.3: Statistics

Copyright(c) A. V. H. McPhail 2010, 2014
LicenseBSD3
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Numeric.Statistics.Information

Description

Shannon entropy

Synopsis

Documentation

entropy Source

Arguments

:: PDF a Double 
=> a

the underlying distribution

-> Vector Double

the sequence

-> Double

the entropy

the entropy sum p_i lln{p_i} of a sequence

mutual_information Source

Arguments

:: (PDF a Double, PDF b (Double, Double)) 
=> b

the underlying distribution

-> a

the first dimension distribution

-> a

the second dimension distribution

-> (Vector Double, Vector Double)

the sequence

-> Double

the mutual information

the mutual information sum_x sum_y p(x,y) ln{frac{p(x,y)}{p(x)p(y)}}