powered by
Renyi Entropy
The function Renyi computes the Renyi entropy of a probability vector.
Renyi
RenyiEntropy(x, p)
a numeric vector representing a probability distribution.
a number not equal to 1. The default is 0.5.
The Renyi entropy is a generalization of Shannon entropy. See Example 3.4.8 of Fernholz (2002) for more details.
Fernholz, E. R. (2002) Stochastic portfolio theory. Springer.
ShannonEntropy, Diversity
ShannonEntropy
Diversity
# compute the Renyi entropy of the country weights. x <- c(0.2, 0.3, 0.5) RenyiEntropy(x, p = 0.5)
Run the code above in your browser using DataLab