Home   >   User Resources   >   Online Help   >   apaEntropy.Shannon
 

 

Function index Version 3.0.0

apaEntropy.Shannon(DataVector)

Excel=apaEntropy.Shannon(DataVector)

Result

Calculates the Shannon entropy of a probability vector.

Syntax

DataVector: r x 1 vector of probabilities, all elements >= 0 and summing to 1

Algorithm

Formula

Remarks

  • The data x is assumed to have the properties of a probability distribution or of weights: 0 ≤ x ≤ 1, sum(x) = 1.