Skip to content

US-CBO/IO-price-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CBO's Input-Output Price Model

This repository contains a notebook to implement an input-output (IO) price model using publicly available data from the Bureau of Economic Analysis (BEA). The price model can be used to estimate the effect of an import price shock or value-added cost shock on the price index for Personal Consumption Expenditures (PCE) and the price index for private business fixed investment in equipment (PEQ).

Data sources

The IO price model uses Input-Output Accounts data that model the interaction between commodities and the industries that produce and use them. For this application, the Supply Table, Use Table, and Import Matrix are used. Users can choose to use Summary tables (71 industries) or Detail tables (402 industries). Summary tables are available from 1997 to 2024, while the detail tables are only available for 2007, 2012, and 2017. Data as of March 25, 2026 are provided in \inputs\bea_data\. Summary tables can be downloaded directly from BEA's website here, and Detail tables can be found here. Additionally, BEA provides files to bridge Input-Output Accounts data to PCE and PEQ, which can also be found in \inputs\bea_data\ or downloaded here.

How to run the model

  1. Set the current working directory to the location of the repository.
cd c:\your\file\path\here
  1. Create and activate the virtual environment using the included environment.yaml file.
# run from the directory that contains environment.yaml
conda env create -f environment.yaml

# then activate the environment
conda activate CBO-IO-price-model
  1. Choose the year and granularity of BEA data to use in the model.

    • The variables YEAR and detail can be found in the first cell of the notebook.
  2. Specify the price shock to imports and value added.

    • Users can specify a uniform percent change in import prices and value-added cost using import_price_percent_change and value_added_percent_change, respectively.
    • Alternatively, users can specify their own heterogeneous shocks. Setting preset_shock to {file_name}.csv will overwrite the shock set in the previous cell and use the input file found in \inputs\shocks\.
  3. Run io_price_model.ipynb.

Model details

The input–output (IO) price model is:

$$ p^{D} = A^{D^\prime} p^{D} + A^{M^\prime} p^{M} + v $$

Which can be rewritten as:

$$ p^{D} = \left( I - A^{D^\prime} \right)^{-1} A^{M^\prime} p^{M} + \left( I - A^{D^\prime} \right)^{-1} v $$

Where:

  • $p^{D}$ is a vector of prices for domestically produced commodities

  • $p^{M}$ is a vector of prices for imported commodities

  • $A^{D}$ is a matrix of the use of domestically produced inputs per unit of output

  • $A^{M}$ is a matrix of the use of imported inputs per unit of output

  • $v$ is a vector of value added cost per dollar of output

$A^{D}$ and $A^{M}$ are commodity-space matrices derived from tables published by the Bureau of Economic Analysis using the industry technology assumption. $A^{D} = B^{D}D$ and $A^{M} = B^{M}D$ where $B^{D}$, $B^{M}$, and $D$ are defined following BEA's guidance for deriving domestic requirements tables, found here. Whenever possible, variable names and notation follow those used in BEA's documentation. For an example of an IO price model being used to estimate consumer price indexes, see Przybyliński and Gorzałczyński (2022).

Changes in final demand prices are calculated by combining the change in prices for domestically produced commodities $p^{D}$ and imported commodities $p^{M}$. For personal consumption expenditures $\text{PCE}$, the price index for personal consumption expenditures $\text{PCEPI}$ is given by:

$$ \text{PCEPI} = \sum_{c=1}^{n} \left[ p_c^{D} \cdot (1 - s_c^{M}) + p_c^{M} \cdot s_c^{M} \right] \cdot \frac{\text{PCE}_c}{\text{PCE}} $$

Where $s_c^{M} = \text{PCE}_c^{M} / \text{PCE}_c$ is the commodity-level direct import share and $\text{PCE}_c = \text{PCE}_c^{D} + \text{PCE}_c^{M}$ is total expenditure (in either purchasers' prices or producers' prices) on commodity $c$. The same process can be used for the price of private business fixed investment in equipment $\text{PEQ}$.

Acknowledgments

The repository was created by Griffin Young based on earlier work by Nicholas Abushacra (formerly of CBO) and Junghoon Lee. The project was supervised by Daniel Fried.

Contact

Questions may be directed to CBO's Office of Communications at communications@cbo.gov.

CBO will respond to such requests as its workload permits.

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors