Lifetime equivalent variation
Table of contents
Lifetime equivalent variation (EV) expresses the household welfare difference between two projections as an equivalent percentage change in reference lifetime spending power. Positive EV indicates a gain; negative EV indicates a loss. Any compatible scenario can be the reference, including the preceding scenario in a sequence of policy changes.
The calculation uses existing native projection objects and their calibrated household parameters. It returns one pandas DataFrame row per region. It does not solve a model or write files.
Calculate EV from projections
Call the method on the scenario being evaluated, passing the reference projections as its argument:
# Use the native projection objects retained by your experiment run.
# valuation_year is your chosen integer start year.
ev = scenario_projections.equivalent_variation(
reference_projections,
start_year=valuation_year,
include_monetary=True,
)
print(ev[["ev_percent", "ev_level"]])
The method signature is:
scenario_projections.equivalent_variation(
reference_projections,
*,
start_year: int,
terminal_year: int | None = None,
include_monetary: bool = False,
) -> pandas.DataFrame
start_year is the valuation origin. Its discount weight is one, and outcomes before it are excluded. At least two consecutive annual observations are required, from start_year through terminal_year, inclusive.
By default, the last explicit year is the last numerical year present in database_projections. Both projections must end in that same year. A shorter publication or charting horizon does not truncate the calculation. If the available endings differ, choose an explicit terminal_year covered by both projections; the method does not silently select their intersection.
An explicit terminal_year selects the shared consecutive annual window beginning at start_year, even when observations outside that window or the configured horizons differ. Choosing an earlier continuation anchor still calculates remaining-lifetime EV: it replaces later explicit observations with the terminal continuation described below. Compare results across terminal years to assess sensitivity to that approximation.
Omit include_monetary, or set it to False, for percentage EV and the welfare diagnostics alone. Saving results is a separate caller action, for example ev.to_csv("ev_results.csv").
Inputs and compatibility
Use native database-level projections, rather than chart data, published subsets or scenario deviations. The calculation reads database_projections, configuration, sym_data and parameters from each projection object. Region and household-factor domains come from the model metadata; there are no fixed model names, region lists or calendar years.
Both cases must share the same regional and household-factor domains, calibrated delta_oH, sigma_oH, timepref and labgrow, and the same RISW trajectory over the selected years. Model and build labels may differ when those economic inputs and native unit conventions are compatible. Matching labels alone do not establish compatibility. A comparison that changes preferences or mortality/risk requires a different welfare treatment and is rejected by this method.
The paths must also use consistent quantity and real-dollar price bases. Unit-label checks cannot establish the provenance or common price base of independently prepared projections.
The required quantities are the declared household factors: capital services CNPK, labor services CNPL, energy CNPE, and materials CNPO. Models with household KLM demand and structurally absent energy are supported without an energy quantity. The regional LGDPR scale restores the quantities from their database coordinates. SHYZ supplies common efficiency, with SHLZ for labor and SHEFC for energy where those factors are present; RISW supplies the mortality/risk trajectory. Calibrated parameters supply the factor weights delta_oH, substitution elasticity sigma_oH, time preference timepref, and common growth rate labgrow.
Monetary output additionally requires reference PRCT and PRID price-index levels and the reference real interest rate INTR. The restored monetary quantity trend must match calibrated labgrow, so it can be removed once from the valuation origin.
Required inputs must be complete and finite with supported native units. Quantities, GDP scales and monetary price indices must be positive. Household factor weights must be positive and sum to one; the substitution elasticity must be positive. Missing years, unsupported units, incompatible inputs and nonrepresentable results raise EVInputError, a subclass of ValueError, with context. It can be imported from gcubed.projections.equivalent_variation.
Lifetime welfare and the terminal continuation
This implementation is based upon work by Peter Wilcoxen.
The method combines the declared household factors using calibrated CES preferences and then takes the log of that composite. For a region, let $q_{it}$ be the restored quantity of factor $i$, $\delta_i$ its calibrated weight, and $a_{it}$ its log efficiency adjustment. With $h=(\sigma-1)/\sigma$, annual log wellbeing is
\[u_t = \frac{1}{h}\log\left[ \sum_i \delta_i \left(\frac{q_{it}e^{a_{it}}}{\delta_i}\right)^h \right].\]At $\sigma=1$, the method uses the Cobb–Douglas limit, $u_t=\sum_i\delta_i\log(q_{it}e^{a_{it}}/\delta_i)$. The efficiency adjustment includes SHYZ for all factors, plus SHLZ for labor or SHEFC for energy. Native percentage-valued adjustments are converted to decimals before use.
Let $t_0$ be start_year, $T$ be terminal_year, and $b_t=\rho+\mu_t-g$ be the effective preference discount rate: timepref plus RISW, less labgrow, in decimals. Annual weights are
Explicit annual observations are followed by a continuous lifetime tail that holds terminal log wellbeing and the terminal effective discount rate fixed. The terminal rate $b_T$ must be positive. The tail contributes weight $d_T/b_T$, in addition to the explicit terminal observation.
With $\Delta u_t=u_t^{\mathrm{scenario}}-u_t^{\mathrm{reference}}$, define
\[W=\sum_{t=t_0}^{T}d_t+\frac{d_T}{b_T},\qquad \Delta U=\sum_{t=t_0}^{T}d_t\Delta u_t +\frac{d_T}{b_T}\Delta u_T.\]The percentage result is
\[\mathrm{EV}_{\%}=100\left[\exp\left(\frac{\Delta U}{W}\right)-1\right].\]The implementation evaluates welfare differences and the exponential change directly with stable numerical formulas, preserving small gains and losses. This welfare continuation is an approximation for valuation; it is separate from the model’s terminal closure used when solving projections.
Interpret the returned table
The index is region. All results refer to the selected valuation origin and continuation anchor. DataFrame attributes retain reference and scenario model labels alongside method and unit metadata.
| Column | Meaning |
|---|---|
start_year, terminal_year | First and last explicit annual observations. |
ev_percent | Equivalent percentage change in reference lifetime spending power. |
phi | Reciprocal of total preference discount weight, $1/W$. |
reference_utility, scenario_utility | Discounted lifetime log wellbeing, including the terminal continuation. |
terminal_tail_weight_share | Continuation weight divided by total discount weight, as a fraction. |
reference_wealth | Reconstructed reference lifetime minimum expenditure; monetary output only. |
counterfactual_wealth | Expenditure at reference prices that achieves scenario welfare; monetary output only. |
ev_level | Monetary compensation, reference_wealth * ev_percent / 100; monetary output only. |
terminal_tail_weight_share measures reliance on continuation weighting. It is not the tail’s share of the welfare gain. For example, 0.2 means 20% of the total discount weight comes from the tail.
The monetary columns are regional lifetime totals in US$ billion on the model’s real-dollar/output-deflator basis, anchored to the valuation-year quantity scale. Reference prices and rates determine compensation, and the common effective-labor quantity growth trend is removed once from the valuation origin. These values are neither annual nor per-person income; reference_wealth is reconstructed lifetime expenditure, rather than an observation of households’ financial assets.
EV includes household consumption and efficiency effects. It includes no separate inflation penalty or deduction for lost leisure. Evaluate an incremental policy step by calling the method on the later scenario and using the preceding scenario as the reference; recalculate EV for that pair.
G-Cubed