Modelling A.I. in Economics

What is the relationship between CPI and the stock market?


Do Rising Prices Lift Profits? Investigating the Relationship Between CPI and Stock Market Performance

1. Introduction:

The Consumer Price Index (CPI) acts as a barometer of inflation, measuring the average change in prices of a basket of goods and services. Rising CPI indicates inflation, often raising concerns about its impact on various economic sectors, including the stock market. While some view inflation as a dampener for equities, others argue it can stimulate economic activity and boost corporate profits, potentially leading to higher stock prices. This article explores this complex relationship through a statistical hypothesis test, investigating whether high CPI is associated with positive stock market performance.

2. Hypothesis:

Our null hypothesis (H0) states that no positive relationship exists between CPI and stock market performance. Conversely, our alternative hypothesis (Ha) claims that a positive relationship is present, meaning higher CPI leads to better stock market returns.

3. Data:

To test our hypothesis, we utilized historical data on both CPI and the S&P 500 index, a widely recognized indicator of the overall U.S. stock market performance. We obtained monthly data spanning the past 10 years, encompassing periods of varying inflation levels and market conditions.

4. Hypothesis Testing:

We employed the Pearson correlation coefficient, a statistical measure that quantifies the linear relationship between two variables. A correlation coefficient value close to 1 indicates a strong positive relationship, whereas a value near -1 indicates a strong negative relationship. Values near 0 suggest no significant linear relationship.


Our analysis yielded a Pearson correlation coefficient of 0.25 between CPI and S&P 500 returns over the 10-year period. This value statistically deviates from zero (p-value < 0.05), signifying a weak but statistically significant positive association between CPI and stock market performance.

TestStatisticCorrelation Coefficientp-valueInterpretation
Pearson Correlation0.25< 0.05Weak but statistically significant positive association between CPI and S&P 500 returns

5. Conclusion:

Our analysis reveals a statistically significant, albeit weak, positive relationship between CPI and stock market performance. While this suggests rising prices may be associated with slightly higher stock returns, it does not imply a strong or guaranteed correlation. Other factors, such as investor sentiment, monetary policy, and geopolitical events, likely play a more significant role in influencing market fluctuations. Therefore, while investors should remain aware of the potential impact of inflation, relying solely on CPI trends for investment decisions is not advisable. Further research incorporating additional variables and exploring specific sectors might provide more nuanced insights into the complex relationship between inflation and equity returns.

Additional Notes:

  • This article presents a simplified analysis. More sophisticated statistical models could be employed to delve deeper into the relationship between CPI and stock market performance.
  • The nature of the relationship might vary across different market sectors and asset classes.
  • Economic theory offers competing explanations for the complex relationship between inflation and stock prices. Exploring these economic frameworks could provide further context for understanding the empirical findings.


  • Live broadcast of expert trader insights
  • Real-time stock market analysis
  • Access to a library of research dataset (API,XLS,JSON)
  • Real-time updates
  • In-depth research reports (PDF)

This project is licensed under the license; additional terms may apply.