Using Machine Learning- based Linear Regression to Analyze the Impact of M2 on the Stock Market Index from China

Authors

  • Baicheng He

DOI:

https://doi.org/10.61173/p35nv078

Keywords:

Money Supply, Shanghai Composite Index, Linear Regression, Policy Intervention

Abstract

This paper investigates whether money supply (M2), as published by the People’s Bank of China, can significantly explain or predict fluctuations in China’s stock market, represented by the Shanghai Stock Exchange Composite Index. Using monthly data from June 2015 to June 2025, the research constructs a regression model with Python’s scikit-learn Linear Regression tool. Both variables are log-transformed, and the dataset is divided into training and testing sets to evaluate predictive performance. The model results indicate a positive correlation between log(M2) and log(SSE), but the explanatory power is extremely limited, with R² values close to zero and even negative in the testing set. Error metrics such as MSE, MAE, and RMSE further reveal that prediction accuracy is weak and unstable, with results often distorted by policy interventions and institutional frictions. These findings suggest that while M2 has some influence through the liquidity channel, its role is indirect and fragile in China’s policy-sensitive market. By integrating traditional financial theory with machine learning validation techniques, this study provides transparent visualization, predictive testing, and policy insights, offering quantitative evidence for understanding the complex interaction between monetary policy and the Chinese capital market.

References

[1] KEYNES J M. The general theory of employment, interest and money[M]. London: Palgrave Macmillan, 1936.

[2] KALDOR N. Marginal productivity and the macroeconomic theories of distribution: Comment on Samuelson and Modigliani[J]. The Review of Economic Studies, 1966, 33(4): 309-319. DOI: 10.2307/2974428.

[3] BERNANKE B, GERTLER M, GILCHRIST S. The financial accelerator and the flight to quality[J]. The Review of Economics and Statistics, 1996, 78(1): 1-15. DOI: 10.2307/2109844.

[4] ALAM A, MA J, HUSSAIN I, et al. An analysis of the impact of China’s macroeconomic performance on its trade partners: Evidence based on the GVAR model[J]. PLoS ONE, 2023, 18(1): e0275859. DOI: 10.1371/journal.pone.0275859.

[5] LINGNAN L. An analysis of the impacts of macroeconomic fluctuations on China’s stock market[J]. Journal of Governance and Regulation, 2019, 8(2): 49-60. DOI: 10.22495/jgr_v8_i2_ p5.

[6] ISAAC D, DOE A. Assessing the dynamic relationship between macroeconomic factors and stock market movement: Evidence from China[J]. Research Journal of Finance and Accounting, 2021, 12(6): 15-26. DOI: 10.7176/RJFA/12-6-02.

[7] XIONG M. Uncertainty in the pandemic and the energy stock market: Evidence from China[J]. Energy Research Letters, 2021, 2(3): 27021. DOI: 10.46557/001c.27021.

[8] CHENG M, JIN L, LI Z, et al. The effectiveness of government stock purchase during market crash: Evidence from China[J]. Pacific-Basin Finance Journal, 2022, 71: 101706. DOI: 10.1016/j.pacfin.2022.101706.

[9] LU D, TANG H, ZHANG C. China’s monetary policy surprises and corporate real investment[J]. China Economic Review, 2022, 77: 101893. DOI: 10.1016/j.chieco.2022.101893.

[10] LI X L, LIU J, NI P. The time-frequency impact of monetary policy on China’s stock market: Evidence from the MF-VAR model[J]. Emerging Markets Finance and Trade, 2020, 56(11): 2603-2617. DOI: 10.1080/1540496X.2019.1577324.

Downloads

Published

2025-10-23