To maximize the variance of the negative entropy (VarEntropy) for a categorical distribution withNNNclasses, we analyze the distribution of probabilitiesp=[p1,p2,p1,p2,…,pN]\mathbf{p} = [p_1, p_2, \ldots, p_N]p=[p1,p2,…,pN]under the p_i = 1∑i=1Npi=1andpi≥0p_i \geq 0pi≥0for alliii.
Definitions:
Negative Entropy (H):H=∑i=1NpilogpiH = \sum_{i=1}^N p_i \log p_iH=i=1∑Npilogpi
Variance of Negative Entropy (VarEntropy):VarEntropy=∑j=1Npj(logpj−H)2\text{VarEntropy} = \sum_{j=1}^N p_j \left( \log p_j - H \right)^2VarEntropy=j=1∑Npj(logpj−H)2
Negative Entropy (H):
Variance of Negative Entropy (VarEntropy):
Strategy:
The goal is to maximize VarEntropy. This typically occurs when the probabilities are distributed in a way that maximizes the spread (variance) oflogpj\log p_jlogpj. For smallNNN, this often means having one probability significantly larger than the others, creating a high disparity inlogpj\log p_jlogpjvalues.
Optimal Distributions forN=2,3,4N = 2, 3, 4N=2,3,4:
ForN=2N = 2N=2:Optimal Distribution:p≈[0.92,0.08]\mathbf{p} \approx [0.92, 0.08]p≈[0.92,0.08]Explanation:One class has a high probability (≈0.92), and the other has a low probability (≈0.08), maximizing the variance inlogpj\log p_jlogpj.
Optimal Distribution:p≈[0.92,0.08]\mathbf{p} \approx [0.92, 0.08]p≈[0.92,0.08]
Explanation:One class has a high probability (≈0.92), and the other has a low probability (≈0.08), maximizing the variance inlogpj\log p_jlogpj.
ForN=3N = 3N=3:Optimal Distribution:p≈[0.88,0.06,0.06]\mathbf{p} \approx [0.88, 0.06, 0.06]p≈[0.88,0.06,0.06]Explanation:One class dominates with a probability of ≈0.88, while the remaining two classes share the remaining probability equally, each with ≈0.06.
Optimal Distribution:p≈[0.88,0.06,0.06]\mathbf{p} \approx [0.88, 0.06, 0.06]p≈[0.88,0.06,0.06]
Explanation:One class dominates with a probability of ≈0.88, while the remaining two classes share the remaining probability equally, each with ≈0.06.
ForN=4N = 4N=4:Optimal Distribution:p≈[0.85,0.05,0.05,0.05]\mathbf{p} \approx [0.85, 0.05, 0.05, 0.05]p≈[0.85,0.05,0.05,0.05]Explanation:One class has a probability of ≈0.85, and the other three classes each have ≈0.05, further increasing the disparity and thus the variance.
Optimal Distribution:p≈[0.85,0.05,0.05,0.05]\mathbf{p} \approx [0.85, 0.05, 0.05, 0.05]p≈[0.85,0.05,0.05,0.05]
Explanation:One class has a probability of ≈0.85, and the other three classes each have ≈0.05, further increasing the disparity and thus the variance.
ForN=2N = 2N=2:
Optimal Distribution:p≈[0.92,0.08]\mathbf{p} \approx [0.92, 0.08]p≈[0.92,0.08]
Explanation:One class has a high probability (≈0.92), and the other has a low probability (≈0.08), maximizing the variance inlogpj\log p_jlogpj.
Optimal Distribution:
Explanation:One class has a high probability (≈0.92), and the other has a low probability (≈0.08), maximizing the variance inlogpj\log p_jlogpj.
ForN=3N = 3N=3:
Optimal Distribution:p≈[0.88,0.06,0.06]\mathbf{p} \approx [0.88, 0.06, 0.06]p≈[0.88,0.06,0.06]
Explanation:One class dominates with a probability of ≈0.88, while the remaining two classes share the remaining probability equally, each with ≈0.06.
Optimal Distribution:
Explanation:One class dominates with a probability of ≈0.88, while the remaining two classes share the remaining probability equally, each with ≈0.06.
ForN=4N = 4N=4:
Optimal Distribution:p≈[0.85,0.05,0.05,0.05]\mathbf{p} \approx [0.85, 0.05, 0.05, 0.05]p≈[0.85,0.05,0.05,0.05]
Explanation:One class has a probability of ≈0.85, and the other three classes each have ≈0.05, further increasing the disparity and thus the variance.
Optimal Distribution:
Explanation:One class has a probability of ≈0.85, and the other three classes each have ≈0.05, further increasing the disparity and thus the variance.
General Pattern:
For a categorical distribution aiming to maximize VarEntropy, the optimal configuration tends to allocate the majority of the probability to one class while distributing the remaining probability equally among the other classes. This creates a significant spread in thelogpj\log p_jlogpjvalues, thereby maximizing the variance.
Summary:
N=2N = 2N=2:p≈[0.92,0.08]\mathbf{p} \approx [0.92,\ 0.08]p≈[0.92,0.08]
N=3N = 3N=3:p≈[0.88,0.06,0.06]\mathbf{p} \approx [0.88,\ 0.06,\ 0.06]p≈[0.88,0.06,0.06]
N=4N = 4N=4:p≈[0.85,0.05,0.05,0.05]\mathbf{p} \approx [0.85,\ 0.05,\ 0.05,\ 0.05]p≈[0.85,0.05,0.05,0.05]
N=2N = 2N=2:p≈[0.92,0.08]\mathbf{p} \approx [0.92,\ 0.08]p≈[0.92,0.08]
N=3N = 3N=3:p≈[0.88,0.06,0.06]\mathbf{p} \approx [0.88,\ 0.06,\ 0.06]p≈[0.88,0.06,0.06]
N=4N = 4N=4:p≈[0.85,0.05,0.05,0.05]\mathbf{p} \approx [0.85,\ 0.05,\ 0.05,\ 0.05]p≈[0.85,0.05,0.05,0.05]
These distributions provide the maximum VarEntropy for their respectiveNNN.