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
Remarks
The data x is assumed to have the properties of a probability distribution or of weights: 0 ≤ x ≤ 1, sum(x) = 1.
