A FIELD GUIDE TO THE WHOLE ECONOMY

Data Science
& Macroeconomics.

Find the facts.
Explain the economy.

Why do living standards rise? What causes recessions and inflation? Explore the data, put models to work, and ask better questions—with Python and AI.

A Python Companion to Intermediate Macroeconomics.

Carlos Mendez

A learning project by Carlos Mendez

A companion to Macroeconomics
by Charles I. Jones · 6th edition.

SIX BIG QUESTIONS01 / 06

Long-run growth

Why are some countries
so much richer?

GDP per person for the United States, Japan, China, and India from 1950 to 2022.

Start with the differences in living standards. Then ask what capital, ideas, and institutions can explain.

Data · Maddison Project · 1950–2022
Explore Chapter 3

21 chapters / 9 appendices / Learn by doing

From data to understanding

THREE PILLARS. ONE CONNECTED APPROACH.

From evidence
to explanation.

Find a pattern. Build an explanation.
Use AI to go further—and check every step.

  1. 01 / DATA SCIENCE

    From data to facts

    Download, plot, and explore real economic data. Compare countries and periods to discover which patterns hold—and which questions to ask next.

    Explore Data Apps
  2. 02 / MACROECONOMIC MODELS

    From facts to models

    Operate the models that explain the facts. Move a slider, change a parameter, and compare the prediction with what the data show.

    Explore Figure Apps
  3. 03 / AI-POWERED LEARNING

    AI-powered learning

    Work with an AI assistant in Colab, see the big picture in mind maps and slides, and learn by changing the code. Use AI, but check its answers.

    Start with Python and AI

THE FULL CURRICULUM

Understand the economy.
One question at a time.

Follow the chapters in order, or start with the question on your mind. Read, code, explore, or listen—each chapter gives you a way in.

Foundations

01Introduction to MacroeconomicsStart here

What can we learn by looking at the whole economy?

Start with income, jobs, and prices. Discover how economists move from facts to models, then use those models to ask new questions.

Chapter 01: Introduction to Macroeconomics mind mapExplore the chapter map
02Measuring the Macroeconomy

How do we measure an entire economy?

Follow production, spending, and income through the national accounts. Learn what GDP measures, how prices change, and what the headline numbers leave out.

Chapter 02: Measuring the Macroeconomy mind mapExplore the chapter map

Long-run growth

03An Overview of Long-Run Economic Growth

How did the world become so much richer?

Trace living standards across countries and centuries. Explore the power of compounding and the striking differences in when sustained growth began.

Chapter 03: An Overview of Long-Run Economic Growth mind mapExplore the chapter map
04A Model of Production

Why do some economies produce so much more?

Build a production model from capital, labor, and productivity. Compare its predictions with the data to see how much of the income gap it can explain.

Chapter 04: A Model of Production mind mapExplore the chapter map
05The Solow Growth Model

Can saving more make a country richer?

Operate the Solow model and watch capital accumulate. Explore steady states, transition dynamics, and the limits of growth driven by investment alone.

Chapter 05: The Solow Growth Model mind mapExplore the chapter map
06Growth and Ideas

What keeps economic growth going?

Ideas can be used by many people at once. Explore how this changes the economics of production and why research can sustain rising living standards.

Chapter 06: Growth and Ideas mind mapExplore the chapter map

Labor & inflation

07The Labor Market, Wages, and Unemployment

Why are some people unemployed even when jobs exist?

Connect wages and employment to labor supply and demand. Then follow workers into and out of jobs to understand persistent unemployment.

Chapter 07: The Labor Market, Wages, and Unemployment mind mapExplore the chapter map
08Inflation

Why does money lose its purchasing power?

Measure inflation in the data and connect prices to money and output. Explore the quantity theory, real interest rates, and the costs of inflation.

Chapter 08: Inflation mind mapExplore the chapter map

Business cycles & policy

09An Introduction to the Short Run

Why does the economy move in ups and downs?

Separate the long-run path of output from short-run fluctuations. Use data on output, jobs, and inflation to describe what happens in a recession.

Chapter 09: An Introduction to the Short Run mind mapExplore the chapter map
10The Great Recession and the Covid-19 Pandemic: A First Look

What made the financial crisis and pandemic so disruptive?

Compare two very different downturns. Trace housing, financial markets, output, and employment to see how each shock spread through the economy.

Chapter 10: The Great Recession and the Covid-19 Pandemic: A First Look mind mapExplore the chapter map
11The IS Curve

How do interest rates change spending and output?

Build the IS curve from the national income identity. Change demand and borrowing costs to see why short-run output moves.

Chapter 11: The IS Curve mind mapExplore the chapter map
12Monetary Policy and the Phillips Curve

How can a central bank bring inflation down?

Connect monetary policy to the IS and Phillips curves. Follow the path of output and inflation when the central bank changes the interest rate.

Chapter 12: Monetary Policy and the Phillips Curve mind mapExplore the chapter map
13Stabilization Policy and the AS/AD Framework

Can policy cushion an economic shock?

Bring the short-run model together in the AS/AD diagram. Explore how policy rules, expectations, and different shocks shape the adjustment.

Chapter 13: Stabilization Policy and the AS/AD Framework mind mapExplore the chapter map
14Financial Crises and the Short-Run Model

What happens when the financial system stops working?

Add risk premiums and financial frictions to the short-run model. Examine how a credit crisis, deflation, and policy constraints can deepen a recession.

Chapter 14: Financial Crises and the Short-Run Model mind mapExplore the chapter map
15DSGE Models: The Frontier of Business Cycle Research

How do modern models explain business cycles?

Meet the agents, shocks, and frictions inside DSGE models. Explore how productivity, labor markets, and sticky prices shape the economy’s response.

Chapter 15: DSGE Models: The Frontier of Business Cycle Research mind mapExplore the chapter map

Decisions & the global economy

16Consumption

How do households decide what to spend today?

Spread income and wealth across a lifetime. Use a two-period model to explore consumption smoothing, patience, and the role of interest rates.

Chapter 16: Consumption mind mapExplore the chapter map
17Investment

What makes a new investment worthwhile?

Compare the return on capital with its cost. Connect firms’ investment choices to interest rates, taxes, stock prices, and housing.

Chapter 17: Investment mind mapExplore the chapter map
18The Government and the Macroeconomy

How do today’s deficits shape tomorrow’s choices?

Follow government spending, taxes, and borrowing through the budget constraint. Explore debt dynamics and the choices involved in financing public spending.

Chapter 18: The Government and the Macroeconomy mind mapExplore the chapter map
19International Trade

Why do countries trade—and who gains?

Work through comparative advantage and the gains from exchange. Connect trade balances to saving, investment, and borrowing from the rest of the world.

Chapter 19: International Trade mind mapExplore the chapter map
20Exchange Rates and International Finance

What moves a currency’s value?

Compare purchasing power across countries and returns across currencies. Explore exchange rates, international finance, and policy in an open economy.

Chapter 20: Exchange Rates and International Finance mind mapExplore the chapter map
21Parting Thoughts

What have we learned—and what remains unresolved?

Bring the book’s main lessons together. Revisit living standards, growth, inflation, and stabilization, then consider the questions macroeconomics still needs to answer.

Chapter 21: Parting Thoughts mind mapExplore the chapter map
Nine appendicesPython, data, mathematical tools, and research extensions

Mind maps and lecture slides accompany every chapter and appendix. AI-generated podcasts accompany all 21 chapters.

Chapter mind map

Open original ↗