Lorenz Curve Calculator

Analyze distribution patterns using ranked cumulative proportions today. Supports weights, missing values, and normalization options. See inequality clearly with an accurate Lorenz curve tool.

Calculator Inputs

Format: value or value, weight. Commas, tabs, and semicolons work.
Negative values can break standard inequality interpretation.

Values are ranked from smallest to largest. Weights represent repeated observations or population sizes.
Result appears above this form after submission.

Example Data Table

Try these values to see a clearly curved Lorenz plot.

Entity Value Weight Comment
A12001High share contributor
B9001Upper-middle contributor
C4501Middle contributor
D3001Lower contributor
E1501Small share contributor
Paste the Value column into the dataset box, one per line.

Formula Used

The Lorenz curve is built from ranked values. Let each observation have value vᵢ and weight wᵢ. After sorting by vᵢ in ascending order:

The equality line is y = x. The Gini coefficient is computed from the area A under the Lorenz curve:

A = ∑ₖ (xₖ − xₖ₋₁) · (yₖ + yₖ₋₁)/2,    G = 1 − 2A

How to Use This Calculator

  1. Enter your dataset as one value per line, or value, weight.
  2. Keep values non-negative for standard inequality interpretation.
  3. Press Calculate Lorenz Curve to generate the curve and table.
  4. Review Gini and Robin Hood indices for quick comparison.
  5. Use the download buttons to export CSV or PDF.
Tip: If your data is already in a spreadsheet, copy two columns and paste.

Lorenz Curve Insights for Physical Data

1) Why inequality metrics appear in physics

Many physical systems create uneven distributions. Examples include granular energy dissipation, turbulent intermittency, reaction rates across heterogeneous catalysts, and node loads in transport networks. A Lorenz curve converts these uneven shares into a geometric picture that is easy to compare across experiments.

2) What the curve actually plots

After ranking observations from smallest to largest, the horizontal axis shows cumulative population share (weighted count), while the vertical axis shows cumulative share of the measured quantity. If 60% of samples account for only 20% of total intensity, the curve bows strongly below the equality line.

3) Interpreting the Gini coefficient

The Gini coefficient ranges from 0 to 1. Values near 0 indicate near-uniform allocation, while values near 1 imply concentration in a few observations. In physics datasets, Gini values of 0.2–0.4 are common for mildly heterogeneous fields, whereas 0.6+ suggests heavy-tailed dominance.

4) Robin Hood index as a practical signal

The Robin Hood (Pietra) index gives the maximum vertical gap between the Lorenz curve and the equality line. It answers a direct question: what fraction of the total quantity would need to be “reallocated” from high-share observations to low-share observations to make shares equal.

5) Using weights for real experimental structure

Weights represent repeated measurements, particle counts, exposure time, or spatial cell area. For example, if a detector bins photon counts in pixels of different area, use pixel area as weight so cumulative population share reflects true sampled support rather than just the number of rows.

6) Data hygiene and domain limits

Standard Lorenz interpretation assumes non-negative values and positive total sum. Negative entries can arise from background subtraction or signed fluxes, but they can invert shares and distort geometry. If needed, analyze signed signals separately or shift the baseline before computing the curve.

7) Comparing runs and parameter sweeps

Lorenz curves are ideal for comparing conditions: temperature steps, forcing amplitudes, material batches, or network rewiring. Keep measurement units consistent, then compare the Gini and the curve shape. A higher curve (closer to equality) typically indicates more uniform distribution under that condition.

8) Reporting tips for papers and labs

Include the Lorenz plot, the Gini value, and the observation count. Also report how you defined observations (events, nodes, voxels) and weights (counts, area, time). For reproducibility, export the Lorenz table and attach it as supplementary data for reviewers and collaborators.

FAQs

1) What kind of physics data fits a Lorenz curve?

Any non-negative quantity that sums meaningfully, such as energy dissipation per event, intensity per pixel, node throughput, or particle size contribution. Use weights to reflect repeated counts, area, or time.

2) Why does the curve start at (0,0) and end at (1,1)?

At zero population share you have zero accumulated quantity. At full population share you have all observations and the entire total quantity, so cumulative share becomes one by definition.

3) What does a more bowed curve mean?

A stronger bow indicates concentration: a small fraction of observations contributes a large fraction of the total. This often appears with heavy-tailed distributions, intermittency, or strong heterogeneity.

4) How is Gini computed here?

The tool integrates the area under the Lorenz curve using trapezoids. Gini equals one minus twice that area. This approach is stable and works with weighted datasets.

5) Can I paste spreadsheet columns directly?

Yes. Paste one value per line, or paste value and weight separated by a comma, tab, or semicolon. The parser ignores empty lines and non-numeric rows.

6) Why are negative values discouraged?

Negative entries can make total share ambiguous and can push the curve above the equality line. If negatives come from offsets, shift the baseline or analyze positive and negative components separately.

7) What should I export for reporting?

Export the CSV for the Lorenz table and include the Gini and Robin Hood indices. The PDF export bundles a plot, summary, and the table for quick lab documentation.

Related Calculators

Network degree calculatorAverage path length calculatorClustering coefficient calculatorBetweenness centrality calculatorCloseness centrality calculatorEigenvector centrality calculatorPageRank score calculatorKatz centrality calculatorAssortativity coefficient calculatorModularity score calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.