Federal Reserve Economic Data

The FRED® Blog

FRED gets real, unless you want to keep it nominal

Oil prices vs. oil prices deflated by the CPI

Let’s start with nominal. Economic variables are often quoted in nominal terms—that is, terms that are not adjusted for changes in prices over time. For example, it’s easy to find nominal oil prices in FRED.

In the FRED graph above, the blue line (left scale) depicts the end-of-month prices for West Texas Intermediate crude, an important oil market. This series is not adjusted for changes in the general price level. So, if one wants to know how much consumption of other goods one has to give up to buy a barrel of oil, then one needs to “deflate” the price of that barrel of oil by a price level that corresponds to a relevant basket of goods.

Now let’s get real. Fortunately, FRED allows us to construct and graph the real price of oil by deflating the nominal price by just such a price level. The red line (right scale) in the graph shows a real oil price series, after dividing the nominal price series by the consumer price index (CPI). The series is also normalized to equal 100 in January 1986, making it easy to calculate percentage changes from that date.

Comparing nominal and real prices. Placing the blue nominal price series next to the red real price series in the same graph provides a new perspective on recent oil price movements. Nominal oil prices rose to near-record levels in the first half of 2022, surpassed only by prices in 2008. This rise was associated with the Russian invasion of Ukraine: The green vertical line denotes March 2022, the first full month of the invasion. But deflating the nominal price by the CPI shows that real oil prices in early 2022 were not as high as the nominal series might suggest. In March and April 2022, real prices were 130% higher than in January 1986 but lower than they were for most of the 2010-2015 period.

Of course, the CPI isn’t the only price level or even necessarily the best price level to use as a deflator. For example, one could deflate by the personal consumption expenditures price index (PCE), which is the Fed’s favored inflation measure. Because PCE inflation tends to be lower than CPI inflation, using PCE inflation would produce a real oil price series that does not deviate quite as far from the nominal series as our graph above shows.

How this graph was created: This graph employs three features of FRED that will help you illustrate features of the data more effectively: formulas, 2-scale graphs, and marking of dates with vertical lines.

  1. Open FRED and type “oil prices” in the search window. Select “Crude oil Price: West Texas Intermediate,” which will likely be the second choice in the search results.
  2. Select “Edit Graph,” change the frequency from daily to monthly, and select “End of period” as the aggregation method.
  3. From the same “Edit Graph” panel, select “Add Line” and search for “oil prices” in the search window and select “Crude oil Price: West Texas Intermediate.” Click “Add data series.” Again, change the frequency from daily to monthly and select “End of period” as the aggregation method.
  4. Select “Edit lines” and choose “Edit line 2”: Go down to the “Customize data:” section and type “cpi” in the search box. Select “Consumer Price Index for all urban consumers: All items in the US city average” and click the “Add” button to the right.
  5. Within the “Formula” box under “Customize data,” type “a/b” to create a real oil price series (that is, monthly oil prices deflated by the CPI price level). Click “Apply” to the right of the formula box. Select “Index (Scale value to 100 for chosen date”) under the “Units” window.
  6. Select the “Format” tab at the top of the editing box and select “Right” under “Y axis position” for “Line 2.”
  7. One can also mark chosen dates with vertical lines by selecting “Add line” in the “Edit Graph” panel: Click “Create user-defined line? [+]” and then “Create line.” For example, one can mark the approximate date of the early weeks of the Russian invasion of Ukraine —an important event in oil markets —by defining both the start and ending dates as “2022-03-01” and the “values start/end” as “0” to “140.”
  8. Close the editing box. On the main graph page, select “Max” as the date range.

Suggested by Christopher Neely.

A history of scary volatility since 1864

Tricks and treats for Nevada's undiversified economy

Today is October 31. Obviously that means the FRED Blog, like every other news and social media outlet, is celebrating Nevada’s admission to the Union on October 31, 1864. What’s so spooky about Nevada’s economy compared with, say, the economy of its neighbor California? Nevada’s economy is much smaller and much less diversified: Mining, entertainment, gambling, and hospitality services are outsized sectors compared with elsewhere. And, as with any portfolio, a lack of diversification brings big risks that typically manifest in volatility. Some find that scary.

Our first FRED graph, shown above, compares real GDP growth in Nevada and California. It’s easy to see it fluctuates much more in Nevada. In this state, one major sector affected by an adverse shock can send shivers through the whole state. This isn’t the case for a larger, diversified state such as California.

The story is similar for the growth of median household income—that is, the income for a household in the middle of the income distribution of all households. There’s more variability, up and down, in Nevada.

Our last graph shows per capita income. Note that the wild fluctuations even way back to the Great Depression were stronger in Nevada. Lesson: Although Nevadans may enjoy higher levels of risk and a good scare now and then, if you don’t have the stomach for economic volatility, then diversify!

How these graphs were created: Search FRED for each Nevada series, click on “Edit Graph,” and use the “Add Line” tab to search for the same California series. Apply units “Percentage change from year ago” to all lines.

Suggested by Christian Zimmermann.

Real returns on major asset classes since the start of the pandemic

In the beginning of 2020, as the COVID-19 pandemic seemed likely to spread in advanced economies, financial markets entered a period of turmoil. Some even thought the world was headed for a financial crisis. But after the deployment of major fiscal and monetary policy interventions around the world, among other factors, such a crisis never materialized. In fact, financial markets performed exceptionally well by historical standards in the periods following the pandemic recession of the second quarter of 2020.

The FRED graph above plots the cumulative real returns on three major classes of assets held by U.S. households—stocks, real estate, and corporate bonds—since the last full month before the pandemic, December 2019. It’s useful to unpack this definition. First, these returns are cumulative: At each date, they measure the return obtained by someone who purchased the asset at the initial date (December 2019) and sold it at that given date. Second, these returns are real, meaning they’re adjusted for inflation.

Stocks (in blue). The graph shows that stocks, measured by the S&P 500, did not perform well in the early stages of the pandemic: The blue line falls below 1 in the first few quarters. But stocks boomed in the following periods. At its peak at the end of 2021, the real cumulative return on the S&P 500 index was around 36%. Cumulative returns have fallen since then, but were still equal to 5% as of September 2022.

Real estate (in red). Cumulative returns on housing rose steadily until May, peaking at over 27%, and had fallen slightly as of the last available observation.

Corporate bonds (in green). Finally, corporate bonds have not done so well: Their cumulative return peaked at 8% at the end of 2020, but has fallen ever since: It was –20% as of September 2022. Bond returns typically underperform in high-inflation situations.

How this graph was created: Search FRED for “S&P 500” and click “Edit Graph.” For “Units,” select “Index (Scale value to 100 for chosen date)” and set the date as 2019-12-31. Add a series, “Consumer Price Index for All Urban Consumers: All Items in U.S. City Average,” and apply the same transformation (Index set to 100, date 2019-12-31). Modify the frequency to monthly, using “Average” as the aggregation method. In the formula field, type “a/b.” At the top, click on “Add Line” and repeat these exact steps for “S&P/Case-Shiller U.S. National Home Price Index.” Repeat one final time for “ICE BofA US Corporate Index Total Return Index Value” and set the starting date of the graph to 2019-11-30 and the final date to 2022-09-01.

Suggested by Miguel Faria-e-Castro.



Subscribe to the FRED newsletter


Follow us

Back to Top