Skip to main content

Price Index Calculator using bilateral and multilateral methods

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PriceIndexCalc-0.7.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

PriceIndexCalc-0.7-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file PriceIndexCalc-0.7.tar.gz.

File metadata

  • Download URL: PriceIndexCalc-0.7.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for PriceIndexCalc-0.7.tar.gz
Algorithm Hash digest
SHA256 2d4034d94ce5493bc8e917eb024ae35124732ca421d0efd1b30ade58c450ec09
MD5 d1854c8553d1565687e4fc5b99ccecd5
BLAKE2b-256 d8eefd6b0ba186c90050f65e3fa60ae642b62fd122a649a59154ac058c13aa35

See more details on using hashes here.

File details

Details for the file PriceIndexCalc-0.7-py3-none-any.whl.

File metadata

  • Download URL: PriceIndexCalc-0.7-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for PriceIndexCalc-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1f9c8cd7006c3c89a0c9f6d4561c046b9d935d0868726151f29d45c2d0f4194e
MD5 9d3a96678bd05c6236ebee220f392e72
BLAKE2b-256 be4253bb938a34e9abbca27ece6ad6597cb3f171be301aa3e924a80b590450c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page