Understanding key statistical measures through visual demonstrations
Manipulate parameters and observe real-time changes in probability distributions
Models the number of successes in n independent trials with constant probability of success.
Interactive demonstration of risk optimization through portfolio rebalancing
For ANY function f to be convex, it must satisfy:
for all x, y in the domain and λ ∈ [0,1].
Here:
So the test becomes:
X is a degenerate distribution that always equals 2.
For any probability level p, including p = 0.6:
Q0.6(X) = 2
Y is a degenerate distribution that always equals 10.
For any probability level p, including p = 0.6:
Q0.6(Y) = 10
The mixture Z = 0.3X + 0.7Y creates a discrete distribution:
To find the 60th percentile of Z:
Therefore: Q0.6(Z) = 10
The quantile function gives us 10 for the mixture, but convexity would require it to be ≤ 7.6. The quantile jumps discontinuously from 2 to 10, skipping over the weighted average of 7.6 entirely.
Since 10 > 7.6, the quantile function violates convexity.
This discontinuous jump is exactly why VaR optimization is non-convex and computationally problematic. Standard optimization algorithms fail because the risk landscape has sudden jumps and multiple local optima.