Skip to content

Code for "New Pricing Models, Same Old Phillips Curves?" (Auclert, Rigato, Rognlie, Straub 2023)

Notifications You must be signed in to change notification settings

shade-econ/new-old-phillips-curves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

New Pricing Models, Same Old Phillips Curves?

This repository shows in detail how to obtain the results from Section 6 of "New Pricing Models, Same Old Phillips Curves?" (Auclert, Rigato, Rognlie, Straub 2023).

The section6.ipynb Jupyter notebook, which you can visualize on GitHub here, goes through every step of the computation. It:

  • Starts with raw price change data in israeli_data_cleaned.csv, derived from data in Bonomo et al. (2022).
  • Infers the generalized hazard function $\Lambda$ and variance of idiosyncratic shocks $\sigma_\epsilon$ that best fit the distribution and frequency of price changes.
  • Uses $\Lambda$ and $\sigma_\epsilon$ to calculate the expected price gap functions $E^t(x)$.
  • Implements the formula in Proposition 6 of the paper to obtain the pass-through matrix from aggregate nominal marginal costs to prices, $\Psi$.
  • Converts this $\Psi$ to the generalized Phillips curve matrix $\mathbf{K}$.

The brief utils.py module contains a few helper functions that are used in the notebook.

If you want to play around with the notebook yourself, you can download a zip of the repository here.

In addition to Python and Jupyter notebook, our code requires the NumPy, SciPy (version 1.7.0+), Pandas, and Matplotlib packages. A good way to obtain these is to install the latest Anaconda distribution.

About

Code for "New Pricing Models, Same Old Phillips Curves?" (Auclert, Rigato, Rognlie, Straub 2023)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published