Skip to main content

PriceIndexCalc

Calculate bilateral and multilateral price indices in Python using vectorized methods Pandas or PySpark. These index methods are being used or currently being implemented by many statistical agencies around the world to calculate price indices e.g the Consumer Price Index (CPI). Multilateral methods can use a specified number of time periods to calculate the resulting price index; the number of time-periods used by multilateral methods is commonly defined as a “window length”.

Bilateral methods supported: Carli, Jevons, Dutot, Laspeyres, Paasche, Lowe, geometric Laspeyres, geometric Paasche, Drobish, Marshall-Edgeworth, Palgrave, Fisher, Tornqvist, Walsh, Sato-Vartia, Geary-Khamis, TPD and Rothwell.

Multilateral methods supported: GEKS paired with a bilateral method (e.g GEKS-T aka CCDI), Time Product Dummy (TPD), Time Dummy Hedonic (TDH), Geary-Khamis (GK) method.

Multilateral methods simultaneously make use of all data over a given time period. The use of multilateral methods for calculating temporal price indices is relatively new internationally, but these methods have been shown to have some desirable properties relative to their bilateral method counterparts, in that they account for new and disappearing products (to remain representative of the market) while also reducing the scale of chain-drift.

Directory layout:

.
├── pandas_modules                    # Pandas modules
│   ├── index_methods.py         
│   ├── chaining.py
│   ├── extension_methods.py    # New timeseries extension methods (experimental)                 
│   ├── helpers.py             
│   ├── bilateral.py            
│   ├── multilateral.py
|   └── weighted_least_squares.py                 
├── pyspark_modules                    # PySpark modules (experimental)
│   ├── index_methods.py              
│   ├── chaining.py             
│   ├── helpers.py             
│   ├── multilateral.py
|   └── weighted_least_squares.py
└── README.md

Release files for PriceIndexCalc 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PriceIndexCalc 0.7
File Size Uploaded
PriceIndexCalc-0.7.tar.gz 23.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PriceIndexCalc 0.7
File Interpreter ABI Platform
PriceIndexCalc-0.7-py3-none-any.whl Python 3 none any Details

Total release size: 50.5 kB

Release files / PriceIndexCalc-0.7.tar.gz

Download URL PriceIndexCalc-0.7.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2d4034d94ce5493bc8e917eb024ae35124732ca421d0efd1b30ade58c450ec09
BLAKE2b-256 checksum
How to use checksums
d8eefd6b0ba186c90050f65e3fa60ae642b62fd122a649a59154ac058c13aa35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / PriceIndexCalc-0.7-py3-none-any.whl

Download URL PriceIndexCalc-0.7-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f9c8cd7006c3c89a0c9f6d4561c046b9d935d0868726151f29d45c2d0f4194e
BLAKE2b-256 checksum
How to use checksums
be4253bb938a34e9abbca27ece6ad6597cb3f171be301aa3e924a80b590450c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page