hstatistics-0.2.5.1: Statistics

Portabilityportable
Stabilityprovisional
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Safe HaskellNone

Numeric.Statistics.Information

Description

Shannon entropy

Synopsis

Documentation

entropySource

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_informationSource

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)}}