Multiplicative LMDI

EnergyIntensityIndicators.multiplicative_lmdi.MultiplicativeLMDI

class EnergyIntensityIndicators.multiplicative_lmdi.MultiplicativeLMDI(output_directory, energy_data=None, energy_shares=None, base_year=None, end_year=None, total_label=None, lmdi_type=None)

Bases: object

compute_index(component, base_year_)

Compute index of components (indexing to chosen base_year_), replicating methodology in PNNL spreadsheets for the multiplicative model

decomposition(ASI)

Format component data, collect overall effect, return indexed dataframe of the results for the multiplicative LMDI model.

log_mean_divisia_weights()

Calculate log mean weights where T = t, 0 = t-1

Multiplicative model uses the LMDI-II model because ‘the weights…sum[] to unity, a desirable property in index construction.’ (Ang, B.W., 2015. LMDI decomposition approach: A guide for

implementation. Energy Policy 86, 233-238.).

static logarithmic_average(x, y)

The logarithmic average of two positive numbers x and y

visualizations(data, base_year, end_year, loa, model, energy_type, rename_dict)

Visualize multiplicative LMDI results in a line plot