IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0230124.html
   My bibliography  Save this article

Stock price prediction using principal components

Author

Listed:
  • Mahsa Ghorbani
  • Edwin K P Chong

Abstract

The literature provides strong evidence that stock price values can be predicted from past price data. Principal component analysis (PCA) identifies a small number of principle components that explain most of the variation in a data set. This method is often used for dimensionality reduction and analysis of the data. In this paper, we develop a general method for stock price prediction using time-varying covariance information. To address the time-varying nature of financial time series, we assign exponential weights to the price data so that recent data points are weighted more heavily. Our proposed method involves a dimension-reduction operation constructed based on principle components. Projecting the noisy observation onto a principle subspace results in a well-conditioned problem. We illustrate our results based on historical daily price data for 150 companies from different market-capitalization categories. We compare the performance of our method to two other methods: Gauss-Bayes, which is numerically demanding, and moving average, a simple method often used by technical traders and researchers. We investigate the results based on mean squared error and directional change statistic of prediction, as measures of performance, and volatility of prediction as a measure of risk.

Suggested Citation

  • Mahsa Ghorbani & Edwin K P Chong, 2020. "Stock price prediction using principal components," PLOS ONE, Public Library of Science, vol. 15(3), pages 1-20, March.
  • Handle: RePEc:plo:pone00:0230124
    DOI: 10.1371/journal.pone.0230124
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0230124
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0230124&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0230124?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Shukla, Ravi & Trzcinka, Charles, 1990. "Sequential Tests of the Arbitrage Pricing Theory: A Comparison of Principal Components and Maximum Likelihood Factors," Journal of Finance, American Finance Association, vol. 45(5), pages 1541-1564, December.
    2. Ledoit, Olivier & Wolf, Michael, 2004. "A well-conditioned estimator for large-dimensional covariance matrices," Journal of Multivariate Analysis, Elsevier, vol. 88(2), pages 365-411, February.
    3. K. J. Hong & S. Satchell, 2015. "Time series momentum trading strategy and autocorrelation amplification," Quantitative Finance, Taylor & Francis Journals, vol. 15(9), pages 1471-1487, September.
    4. Fama, Eugene F & French, Kenneth R, 1988. "Permanent and Temporary Components of Stock Prices," Journal of Political Economy, University of Chicago Press, vol. 96(2), pages 246-273, April.
    5. Xue, Wen-Jun & Zhang, Li-Wen, 2017. "Stock return autocorrelations and predictability in the Chinese stock market—Evidence from threshold quantile autoregressive models," Economic Modelling, Elsevier, vol. 60(C), pages 391-401.
    6. Vincent Bogousslavsky, 2016. "Infrequent Rebalancing, Return Autocorrelation, and Seasonality," Journal of Finance, American Finance Association, vol. 71(6), pages 2967-3006, December.
    7. Dennis, Patrick & Mayhew, Stewart & Stivers, Chris, 2006. "Stock Returns, Implied Volatility Innovations, and the Asymmetric Volatility Phenomenon," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 41(2), pages 381-406, June.
    8. Han, Liyan & Lv, Qiuna & Yin, Libo, 2019. "The effect of oil returns on the stock markets network," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 533(C).
    9. De Bondt, Werner F M & Thaler, Richard, 1985. "Does the Stock Market Overreact?," Journal of Finance, American Finance Association, vol. 40(3), pages 793-805, July.
    10. French, Kenneth R. & Roll, Richard, 1986. "Stock return variances : The arrival of information and the reaction of traders," Journal of Financial Economics, Elsevier, vol. 17(1), pages 5-26, September.
    11. Dimic, Nebojsa & Kiviaho, Jarno & Piljak, Vanja & Äijö, Janne, 2016. "Impact of financial market uncertainty and macroeconomic factors on stock–bond correlation in emerging markets," Research in International Business and Finance, Elsevier, vol. 36(C), pages 41-51.
    12. Eom, Cheoljun & Park, Jong Won, 2017. "Effects of common factors on stock correlation networks and portfolio diversification," International Review of Financial Analysis, Elsevier, vol. 49(C), pages 1-11.
    13. Taylor, Mark P. & Allen, Helen, 1992. "The use of technical analysis in the foreign exchange market," Journal of International Money and Finance, Elsevier, vol. 11(3), pages 304-314, June.
    14. Ledoit, Olivier & Wolf, Michael, 2003. "Improved estimation of the covariance matrix of stock returns with an application to portfolio selection," Journal of Empirical Finance, Elsevier, vol. 10(5), pages 603-621, December.
    15. Andrew W. Lo, A. Craig MacKinlay, 1988. "Stock Market Prices do not Follow Random Walks: Evidence from a Simple Specification Test," The Review of Financial Studies, Society for Financial Studies, vol. 1(1), pages 41-66.
    16. Augustyniak, Maciej, 2014. "Maximum likelihood estimation of the Markov-switching GARCH model," Computational Statistics & Data Analysis, Elsevier, vol. 76(C), pages 61-75.
    17. Narayan, Paresh Kumar & Narayan, Seema & Thuraisamy, Kannan Sivananthan, 2014. "Can institutions and macroeconomic factors predict stock returns in emerging markets?," Emerging Markets Review, Elsevier, vol. 19(C), pages 77-95.
    18. Saburo Ohno & Tomohiro Ando, 2018. "Stock return predictability: A factor-augmented predictive regression system with shrinkage method," Econometric Reviews, Taylor & Francis Journals, vol. 37(1), pages 29-60, January.
    19. repec:bla:jfinan:v:44:y:1989:i:1:p:135-48 is not listed on IDEAS
    20. Brock, William & Lakonishok, Josef & LeBaron, Blake, 1992. "Simple Technical Trading Rules and the Stochastic Properties of Stock Returns," Journal of Finance, American Finance Association, vol. 47(5), pages 1731-1764, December.
    21. Fama, Eugene F & French, Kenneth R, 1992. "The Cross-Section of Expected Stock Returns," Journal of Finance, American Finance Association, vol. 47(2), pages 427-465, June.
    22. Szilard Pafka & Marc Potters & Imre Kondor, 2004. "Exponential Weighting and Random-Matrix-Theory-Based Filtering of Financial Covariance Matrices for Portfolio Optimization," Papers cond-mat/0402573, arXiv.org.
    23. Shah Saeed Hassan Chowdhury & M. Arifur Rahman & M. Shibley Sadique, 2015. "Behaviour of Stock Return Autocorrelation in the GCC Stock Markets," Global Business Review, International Management Institute, vol. 16(5), pages 737-746, October.
    24. Fung, William & Hsieh, David A, 1997. "Empirical Characteristics of Dynamic Trading Strategies: The Case of Hedge Funds," The Review of Financial Studies, Society for Financial Studies, vol. 10(2), pages 275-302.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Michael Greenacre & Patrick J. F Groenen & Trevor Hastie & Alfonso Iodice d’Enza & Angelos Markos & Elena Tuzhilina, 2023. "Principal component analysis," Economics Working Papers 1856, Department of Economics and Business, Universitat Pompeu Fabra.
    2. Vrinda Dhingra & Amita Sharma & Shiv K. Gupta, 2021. "Sectoral portfolio optimization by judicious selection of financial ratios via PCA," Papers 2106.11484, arXiv.org, revised Jan 2023.
    3. Mahsa Ghorbani & Edwin K. P. Chong, 2022. "A dimension reduction method for stock-price prediction using multiple predictors," Operational Research, Springer, vol. 22(3), pages 2859-2878, July.
    4. Pierre Renucci, 2023. "Optimal Linear Signal: An Unsupervised Machine Learning Framework to Optimize PnL with Linear Signals," Papers 2401.05337, arXiv.org.
    5. Xia, Min & Shao, Haidong & Williams, Darren & Lu, Siliang & Shu, Lei & de Silva, Clarence W., 2021. "Intelligent fault diagnosis of machinery using digital twin-assisted deep transfer learning," Reliability Engineering and System Safety, Elsevier, vol. 215(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Mahsa Ghorbani & Edwin K. P. Chong, 2018. "Stock Price Prediction using Principle Components," Papers 1803.05075, arXiv.org.
    2. Mahsa Ghorbani & Edwin K. P. Chong, 2022. "A dimension reduction method for stock-price prediction using multiple predictors," Operational Research, Springer, vol. 22(3), pages 2859-2878, July.
    3. Fernando Rubio, 2005. "Eficiencia De Mercado, Administracion De Carteras De Fondos Y Behavioural Finance," Finance 0503028, University Library of Munich, Germany, revised 23 Jul 2005.
    4. Committee, Nobel Prize, 2013. "Understanding Asset Prices," Nobel Prize in Economics documents 2013-1, Nobel Prize Committee.
    5. Wang, Yuming & Ma, Jinpeng, 2014. "Excess volatility and the cross-section of stock returns," The North American Journal of Economics and Finance, Elsevier, vol. 27(C), pages 1-16.
    6. Minardi, A., 2001. "Preços Passados prevendo Desempenho de Ações Brasileiras," Finance Lab Working Papers flwp_43, Finance Lab, Insper Instituto de Ensino e Pesquisa.
    7. Khim-Sen Liew & Kian-Ping Lim & Chee-Keong Choong, 2003. "On The Forecastability Of Asean-5 Stock Markets Returns Using Time Series Models," Finance 0307012, University Library of Munich, Germany.
    8. Christopher J. Neely & Paul A. Weller, 2011. "Technical analysis in the foreign exchange market," Working Papers 2011-001, Federal Reserve Bank of St. Louis.
    9. Adrian Buckley, 1999. "An introduction to security returns," The European Journal of Finance, Taylor & Francis Journals, vol. 5(3), pages 165-180.
    10. Osman Kilic & Joseph M. Marks & Kiseok Nam, 2022. "Predictable asset price dynamics, risk-return tradeoff, and investor behavior," Review of Quantitative Finance and Accounting, Springer, vol. 59(2), pages 749-791, August.
    11. Robert D. Arnott & Jason C. Hsu & Jun Liu & Harry Markowitz, 2015. "Can Noise Create the Size and Value Effects?," Management Science, INFORMS, vol. 61(11), pages 2569-2579, November.
    12. Fernando F. Ferreira & A. Christian Silva & Ju-Yi Yen, 2014. "Information ratio analysis of momentum strategies," Papers 1402.3030, arXiv.org, revised Jul 2014.
    13. Leković Miljan, 2018. "Evidence for and Against the Validity of Efficient Market Hypothesis," Economic Themes, Sciendo, vol. 56(3), pages 369-387, September.
    14. Leung, Mark T. & Daouk, Hazem & Chen, An-Sing, 2000. "Forecasting stock indices: a comparison of classification and level estimation models," International Journal of Forecasting, Elsevier, vol. 16(2), pages 173-190.
    15. Mirzaee Ghazani, Majid & Khalili Araghi, Mansour, 2014. "Evaluation of the adaptive market hypothesis as an evolutionary perspective on market efficiency: Evidence from the Tehran stock exchange," Research in International Business and Finance, Elsevier, vol. 32(C), pages 50-59.
    16. Gencay, Ramazan, 1998. "The predictability of security returns with simple technical trading rules," Journal of Empirical Finance, Elsevier, vol. 5(4), pages 347-359, October.
    17. John Hatgioannides & Spiros Mesomeris, 2005. "Mean Reversion in Equity Prices: the G-7 Evidence," Money Macro and Finance (MMF) Research Group Conference 2005 64, Money Macro and Finance Research Group.
    18. Fernando F. Ferreira & A. Christian Silva & Ju-Yi Yen, 2019. "Detailed study of a moving average trading rule," Papers 1907.00212, arXiv.org.
    19. Goodhart, Charles A. E. & O'Hara, Maureen, 1997. "High frequency data in financial markets: Issues and applications," Journal of Empirical Finance, Elsevier, vol. 4(2-3), pages 73-114, June.
    20. Stephen A. Gorman & Frank J. Fabozzi, 2021. "The ABC’s of the alternative risk premium: academic roots," Journal of Asset Management, Palgrave Macmillan, vol. 22(6), pages 405-436, October.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0230124. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.