Skip to main content

Stock Price Prediction Using Grammatical Evolution

  • Conference paper
  • First Online:
Advanced Computing Technologies and Applications

Part of the book series: Algorithms for Intelligent Systems ((AIS))

  • 920 Accesses

Abstract

Grammatical evolution is an evolutionary method that is used for the automated generation of programs. Over the years, different studies have proven the relevance and efficiency of this method in a wide array of fields. This method can substitute various other machine learning algorithms and older architectures to provide good efficiency and performance for optimization of algorithms. The paper aims to apply GE to predict the price of various stock market indices. An open source implementation PonyGE2 that was developed by the Natural Computing and Applications group at UCD has been employed in this paper. With the help of an objective function and a search space defined by the grammar, the evolutionary computation of the optimum solution is achieved. The effect of tweaking the grammar rules to provide different production options helped visualize the difference in the fitness of the functions generated and the consequential effect on the output produced.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. O’Neill M, Ryan C (2001) Grammatical evolution. IEEE Trans Evol Comput 5(4):349–358

    Article  Google Scholar 

  2. Motsinger AA, Reif DM, Dudek SM, Ritchie MD (2006) Understanding the evolutionary process of grammatical evolution neural networks for feature selection in genetic epidemiology. Proc IEEE Symp Comput Intell Bioinforma Comput Biol. 2006:1–8. https://doi.org/10.1109/CIBCB.2006.330945

    Article  Google Scholar 

  3. Brabazon A, O’Neill M, Dempsey I (2008) An introduction to evolutionary computation in finance. Comput Intell Mag IEEE 3:42–55. https://doi.org/10.1109/MCI.2008.929841

    Book  Google Scholar 

  4. O’Neill M, Ryan C (2003) Grammatical evolution: evolutionary automatic programming in an arbitrary language. Kluwer Academic Publishers, Norwell, MA, USA

    Google Scholar 

  5. Whigham PA (1995, July) Grammatically-based genetic programming. In: Proceedings of the workshop on genetic programming: from theory to real-world applications, vol 16, No. 3. pp 33–41

    Google Scholar 

  6. Kita E, Sugiura H, Zuo Y, Mizuno T (2017) Application of grammatical evolution to stock price prediction. Comput Assist Methods Eng Sci 24(1):67–81

    Google Scholar 

  7. Neill M, Ryan C (1999) Under the hood of grammatical evolution

    Google Scholar 

  8. McCracken DD, Reilly ED (2013) Backus-naur form (bnf). 129–131

    Google Scholar 

  9. Dempsey I, O’Neill M, Brabazon A (2009) Foundations in grammatical evolution for dynamic environments. Stud Comput Intell

    Google Scholar 

  10. Yang, C-X, Tham GL, Feng X-T, Wang YJ, Lee PKK (2004) Two-stepped evolutionary algorithm and its application to stability analysis of slopes. J Comput Civil Eng 18(2):145–153. https://doi.org/10.1061/(ASCE)0887-3801(2004)18:2(145)

    Article  Google Scholar 

  11. Fenton M, McDermott J, Fagan D, Forstenlechner S, O’Neill M, Hemberg E (2017) PonyGE2: grammatical evolution in Python. ArXiv, abs/1703.08535

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aditya Jeswani .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

D’Mello, L., Jeswani, A., Johnson, J. (2020). Stock Price Prediction Using Grammatical Evolution. In: Vasudevan, H., Michalas, A., Shekokar, N., Narvekar, M. (eds) Advanced Computing Technologies and Applications. Algorithms for Intelligent Systems. Springer, Singapore. https://doi.org/10.1007/978-981-15-3242-9_36

Download citation

  • DOI: https://doi.org/10.1007/978-981-15-3242-9_36

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-15-3241-2

  • Online ISBN: 978-981-15-3242-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics