Chapter 17 Data Apps

Investment

Explore the data of Chapter 17 without any code. Every chart below is live: hover over it to read the values, and use its buttons, menus and sliders to change what it shows.

← Back to Chapter 17: Investment

See also: Chapter 17 Model Apps, the chapter’s models without code.

17.4 The stock market

Fig. 3: The price-earnings ratio in the stock market

Move the slider to change dividend growth in the model; faster expected growth justifies a higher price-earnings ratio.

Source. Data: Robert J. Shiller, Online Data, cyclically adjusted price-earnings ratio (CAPE) of the S&P composite index (file ie_data.xls), formerly at econ.yale.edu. The model line is our own, from equation (10). Prepared file: data/ch17/fig17-3.csv (see the data notes). Chart: inspired by Fig. 17.3 in Jones (2024), Macroeconomics, 6th ed.

17.5 Investment in the data

Fig. 4: Components of private investment as a share of GDP

Move the slider to switch between annual and quarterly data, and click a name in the legend to hide or show it; shaded bands are recessions.

Sources. Data: U.S. Bureau of Economic Analysis, NIPA Table 1.1.5, via FRED: gross private domestic investment (GPDIA), private nonresidential fixed investment (PNFIA), private residential fixed investment (PRFIA), change in private inventories (CBIA) and GDP (GDPA); quarterly shares of GDP from NIPA Table 1.1.10, via FRED (A006RE1Q156NBEA, A011RE1Q156NBEA); recessions: NBER business cycle dates, via FRED (USREC). Bolivia: World Bank, World Development Indicators, gross capital formation (NE.GDI.TOTL.ZS) and gross fixed capital formation (NE.GDI.FTOT.ZS), percent of GDP, public and private together: a proxy, since Bolivia publishes no split into private, residential and other investment; file data/ch17/bolivia.csv. Prepared files: data/ch17/fig17-4.csv, data/ch17/investment_quarterly.csv, data/ch17/recessions.csv (see the data notes). Chart: inspired by Fig. 17.4 in Jones (2024), Macroeconomics, 6th ed.

Fig. 4, beyond the United States: investment in 35 countries

Pick a country from the menu; Ireland’s residential investment reached 13.5 percent of GDP in 2006, twice the U.S. peak.

Sources. Data: OECD, National Accounts at a Glance, Chapter 3, investment (gross fixed capital formation), the government’s share of it and investment in dwellings (dataflows DSD_NAAG@DF_NAAG_III and DSD_NAAG@DF_NAAG_III_GFCF); OECD national accounts Table 1, GDP and changes in inventories (DSD_NAMAIN10@DF_TABLE1_EXPENDITURE); all via the OECD Data Explorer. Bolivia: World Bank, World Development Indicators, gross capital formation (NE.GDI.TOTL.ZS) and gross fixed capital formation (NE.GDI.FTOT.ZS), public and private together (no residential part): a proxy, since Bolivia publishes no split of its investment; its rows are in the same file. Prepared file: data/ch17/investment_components.csv (see the data notes). Chart: inspired by Fig. 17.4 in Jones (2024), Macroeconomics, 6th ed.