Vivaldo Mendes
  • Research
  • Teaching
  • Lecture Notes
  • Code
  • Miscellaneous

On this page

  • 1. Welcome to Julia & Pluto
  • 2. Recap: Basic Statistics & Dynamic Processes
  • 3. Business cycles: main problems & facts
  • 4. The Hodrick-Prescott filter (HP) & Impulse Response Functions (IRFs)
  • 5. Solving Rational Expectations models
  • 6. The simplest DSGE model
  • 7. The New Keynesian model
  • 8. The Real Business Cycle model

Slides & Notebooks

👉 Home

  • The slides below are available in three different versions: an HTML version (used in classes), an HTML long version (for quick reading), and a pdf version (students can add notes). They are used as supporting material in the theoretical sessions.

  • The active notebooks and some data files (csv files) are inside a zipped folder that can be downloaded by clicking on the link below. They are used in practical sessions (sometimes in theoretical ones as well).

    • To make things easy, keep all files in the same folder on your computer (or in the cloud).

    • The active notebooks cannot be run by the usual double-clicking. They can only be opened through the Pluto window (in Julia) and Marimo window (Python). So, we have to start Julia and Pluto (or Python and Marimo) in order to run them.

  • The static notebooks are HTML versions of the (active) notebooks. They can be opened simply by clicking on the link below. We can see their contents on a browser (Chrome, Mozilla, Edge, Safari, or any other) and navigate on the HTML file, but we can not change their contents.




1. Welcome to Julia & Pluto


  • Slides: \(~\) Presentation version \(~~\)RevealJS \(~~~,~~~\) Long version \(~\) Html-long \(~~~,~~~\) Long \(~\) Pdf version

  • Julia Notebooks: \(~~~~\) Julia static notebook \(~\) here \(~~,~~~\) active notebook \(~\) here

  • Python Notebooks: \(~~~~\) Python static notebook \(~\) here \(~~,~~~\) active notebook \(~\) here




2. Recap: Basic Statistics & Dynamic Processes


  • Slides: no slides for this entry, only the notebook below

  • Julia Notebooks: \(~~~~\) static notebook \(~\) here \(~~,~~~\) active notebook \(~\) here

  • Python Notebooks: \(~~~~\) static notebook \(~\) here \(~~,~~~\) active notebook \(~\) here

  • The steady-sate: static notebook \(~\) here




3. Business cycles: main problems & facts


  • Slides: \(~\) RevealJS version \(~~~\),\(~~~\) Html-long version \(~~~\),\(~~~\) Pdf version

  • Notebooks: no notebooks for this specific point.


For those that want to have a flavor of what macroeconomics is all about, you can read this article by Paul Krugman in the New York Times, February 8, 2023: \(~~\) Revisiting the Summer of Stagflation

In particular, see if you feel more inclined to favor Larry Summers’s dim view on inflation and unemployment (that containing inflation would require five years of 6 percent unemployment) or the more optimistic perspective of Paul Krugman: inflation seems to be rapidly coming down … and unemployment is [surprisingly] coming down as well.

Note. This article is made available here strictly for teaching purposes.




4. The Hodrick-Prescott filter (HP) & Impulse Response Functions (IRFs)


  • HP filter slides: \(~\) Html version \(~~~\),\(~~~\) Html-long version \(~~~\),\(~~~\) Pdf version

  • IRFs slides: \(~\) Html version \(~~~\),\(~~~\) Html-long version \(~~~\),\(~~~\) Pdf version

  • Julia Notebooks: \(~~~~\) static notebook \(~\) here \(~~,~~~\) active notebook \(~\) here

  • Python Notebooks: \(~~~~\) static notebook \(~\) here \(~~,~~~\) active notebook \(~\) here




5. Solving Rational Expectations models


  • Adaptive expectations slides: \(~\) Html version \(~~~\),\(~~~\) Html-long version \(~~~\),\(~~~\) Pdf version

  • Rational expectations slides: \(~\) Html version \(~~~\),\(~~~\) Html-long version \(~~~\),\(~~~\) Pdf version

  • Notebooks: no notebooks will be provided for this specific point. A notebook will be created during classes.




6. The simplest DSGE model


  • Slides \(~\) Html version

  • Slides \(~\) Html-long version

  • Slides \(~\) Pdf version

  • Active notebook \(~\) here

  • Exercise: Questions \(~\) here

  • Exercise: Solutions \(~\) here (not available yet)




7. The New Keynesian model

  • Slides \(~\) Html version

  • Slides \(~\) Html-long version

  • Slides \(~\) Pdf version

  • Slides: matrix representation \(~\) here

  • Active notebook \(~\) here




8. The Real Business Cycle model

Not covered due to lack of time.


👉 Home


 

© 2022 Vivaldo Mendes | Made with the kind help of Ricardo Gouveia-Mendes, powered by Quarto