Class WealthDistribution

java.lang.Object
org.episteme.social.economics.inequality.WealthDistribution

public class WealthDistribution extends Object
Provides metrics and models for analyzing wealth distribution and economic inequality, such as the Gini Coefficient and the Lorenz Curve.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • calculateGiniCoefficient

      public static Real calculateGiniCoefficient(List<Real> wealthList)
      Calculates the Gini Coefficient for a population's wealth.

      The Gini coefficient is a measure of statistical dispersion intended to represent the income or wealth distribution of a nation's residents, and is the most commonly used measure of inequality. 0 represents perfect equality, 1 represents perfect inequality.

      Parameters:
      wealthList - A list of wealth values (as Real numbers).
      Returns:
      The Gini coefficient (0 to 1).
    • calculateGiniFromMoney

      public static Real calculateGiniFromMoney(List<Money> incomes)
      Calculates the Gini Coefficient for a list of Money objects.
      Parameters:
      incomes - List of Money.
      Returns:
      Gini coefficient.