IDEAS home Printed from https://ideas.repec.org/p/hal/wpaper/hal-02012471.html
   My bibliography  Save this paper

Kalman filter demystified: from intuition to probabilistic graphical model to real case in financial markets

Author

Listed:
  • Eric Benhamou

    (MILES - Machine Intelligence and Learning Systems - LAMSADE - Laboratoire d'analyse et modélisation de systèmes pour l'aide à la décision - Université Paris Dauphine-PSL - PSL - Université Paris Sciences et Lettres - CNRS - Centre National de la Recherche Scientifique, LAMSADE - Laboratoire d'analyse et modélisation de systèmes pour l'aide à la décision - Université Paris Dauphine-PSL - PSL - Université Paris Sciences et Lettres - CNRS - Centre National de la Recherche Scientifique)

Abstract

Affiliated researcher to LAMSADE (UMR CNRS 7243) and QMI (Quantitative Management Initiative) chair, Abstract: In this paper, we revisit the Kalman filter theory. After giving the intuition on a simplified financial markets example, we revisit the maths underlying it. We then show that Kalman filter can be presented in a very different fashion using graphical models. This enables us to establish the connection between Kalman filter and Hidden Markov Models. We then look at their application in financial markets and provide various intuitions in terms of their applicability for complex systems such as financial markets. Although this paper has been written more like a self contained work connecting Kalman filter to Hidden Markov Models and hence revisiting well known and establish results, it contains new results and brings additional contributions to the field. First, leveraging on the link between Kalman filter and HMM, it gives new algorithms for inference for extended Kalman filters. Second, it presents an alternative to the traditional estimation of parameters using EM algorithm thanks to the usage of CMA-ES optimization. Third, it examines the application of Kalman filter and its Hidden Markov models version to financial markets, providing various dynamics assumptions and tests. We conclude by connecting Kalman filter approach to trend following technical analysis system and showing their superior performances for trend following detection.

Suggested Citation

  • Eric Benhamou, 2019. "Kalman filter demystified: from intuition to probabilistic graphical model to real case in financial markets," Working Papers hal-02012471, HAL.
  • Handle: RePEc:hal:wpaper:hal-02012471
    Note: View the original document on HAL open archive server: https://hal.science/hal-02012471
    as

    Download full text from publisher

    File URL: https://hal.science/hal-02012471/document
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Delphine Lautier & Alain Galli, 2004. "Simple and extended Kalman filters: an application to term structures of commodity prices," Applied Financial Economics, Taylor & Francis Journals, vol. 14(13), pages 963-973.
    2. repec:dau:papers:123456789/871 is not listed on IDEAS
    3. Durbin, James & Koopman, Siem Jan, 2012. "Time Series Analysis by State Space Methods," OUP Catalogue, Oxford University Press, edition 2, number 9780199641178.
    4. repec:dau:papers:123456789/2437 is not listed on IDEAS
    5. Delphine Lautier, 2004. "Simple and extended Kalman filters : an application to term structures of commodity prices," Post-Print halshs-00152998, HAL.
    6. Delphine Lautier & Alireza Javaheri & Alain Galli, 2003. "Filtering in finance," Post-Print halshs-00153006, HAL.
    7. Delphine Lautier & A. Galli, 2004. "Simple and extended Kalman filters : an application to term structures of commodity prices," Post-Print halshs-00136139, HAL.
    8. Delphine Lautier & Alain Galli, 2004. "Simple and extended Kalman filters : an application to term structure of commodity prices," Post-Print halshs-00153042, HAL.
    9. repec:dau:papers:123456789/876 is not listed on IDEAS
    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. Michele Vodret & Iacopo Mastromatteo & Bence Tóth & Michael Benzaquen, 2020. "A Stationary Kyle Setup: Microfounding propagator models," Working Papers hal-03016486, HAL.
    2. Michele Vodret & Iacopo Mastromatteo & Bence Tóth & Michael Benzaquen, 2021. "A Stationary Kyle Setup: Microfounding propagator models," Post-Print hal-03016486, HAL.
    3. Michele Vodret & Iacopo Mastromatteo & Bence T'oth & Michael Benzaquen, 2020. "A Stationary Kyle Setup: Microfounding propagator models," Papers 2011.10242, arXiv.org, revised Feb 2021.

    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. Lubnau, Thorben & Todorova, Neda, 2015. "Trading on mean-reversion in energy futures markets," Energy Economics, Elsevier, vol. 51(C), pages 312-319.
    2. Thomas Aspinall & Adrian Gepp & Geoff Harris & Simone Kelly & Colette Southam & Bruce Vanstone, 2021. "Estimation of a term structure model of carbon prices through state space methods: The European Union emissions trading scheme," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 61(2), pages 3797-3819, June.
    3. Islyaev, Suren & Date, Paresh, 2015. "Electricity futures price models: Calibration and forecasting," European Journal of Operational Research, Elsevier, vol. 247(1), pages 144-154.
    4. Lubnau, Thorben, 2014. "Spread trading strategies in the crude oil futures market," Discussion Papers 353, European University Viadrina Frankfurt (Oder), Department of Business Administration and Economics.
    5. Fernando Antonio Lucena Aiube & Ariel Levy, 2019. "Recent movement of oil prices and future scenarios [Movimentos recentes dos preços do petróleo e os cenários futuros]," Nova Economia, Economics Department, Universidade Federal de Minas Gerais (Brazil), vol. 29(1), pages 223-248, January-A.
    6. Avanzi, Benjamin & Taylor, Greg & Vu, Phuong Anh & Wong, Bernard, 2020. "A multivariate evolutionary generalised linear model framework with adaptive estimation for claims reserving," Insurance: Mathematics and Economics, Elsevier, vol. 93(C), pages 50-71.
    7. François R. Velde, 2009. "Chronicle of a Deflation Unforetold," Journal of Political Economy, University of Chicago Press, vol. 117(4), pages 591-634, August.
    8. Wen Xu, 2016. "Estimation of Dynamic Panel Data Models with Stochastic Volatility Using Particle Filters," Econometrics, MDPI, vol. 4(4), pages 1-13, October.
    9. Alejandro Rodriguez & Esther Ruiz, 2009. "Bootstrap prediction intervals in state–space models," Journal of Time Series Analysis, Wiley Blackwell, vol. 30(2), pages 167-178, March.
    10. Parrini, Alessandro, 2013. "Importance Sampling for Portfolio Credit Risk in Factor Copula Models," MPRA Paper 103745, University Library of Munich, Germany.
    11. Salman Huseynov, 2021. "Long and short memory in dynamic term structure models," CREATES Research Papers 2021-15, Department of Economics and Business Economics, Aarhus University.
    12. Tsionas, Mike G., 2021. "Bayesian forecasting with the structural damped trend model," International Journal of Production Economics, Elsevier, vol. 234(C).
    13. Tommaso Proietti, 2002. "Some Reflections on Trend-Cycle Decompositions with Correlated Components," Econometrics 0209002, University Library of Munich, Germany.
    14. Tobias Hartl & Roland Jucknewitz, 2022. "Approximate state space modelling of unobserved fractional components," Econometric Reviews, Taylor & Francis Journals, vol. 41(1), pages 75-98, January.
    15. Broto Carmen & Ruiz Esther, 2009. "Testing for Conditional Heteroscedasticity in the Components of Inflation," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 13(2), pages 1-30, May.
    16. Marczak, Martyna & Proietti, Tommaso, 2016. "Outlier detection in structural time series models: The indicator saturation approach," International Journal of Forecasting, Elsevier, vol. 32(1), pages 180-202.
    17. Oreste Napolitano & Alberto Montagnoli, 2010. "The European Unemployment Gap and the Role of Monetary Policy," Economics Bulletin, AccessEcon, vol. 30(2), pages 1346-1358.
    18. Joshua Chan & Arnaud Doucet & Roberto León-González & Rodney W. Strachan, 2018. "Multivariate Stochastic Volatility with Co-Heteroscedasticity," Working Paper series 18-38, Rimini Centre for Economic Analysis.
    19. Siem Jan Koopman & Joao Valle e Azevedo, 2003. "Measuring Synchronisation and Convergence of Business Cycles," Tinbergen Institute Discussion Papers 03-052/4, Tinbergen Institute.
    20. Aruoba, S. BoraÄŸan & Diebold, Francis X. & Scotti, Chiara, 2009. "Real-Time Measurement of Business Conditions," Journal of Business & Economic Statistics, American Statistical Association, vol. 27(4), pages 417-427.

    More about this item

    Keywords

    and phrases: kalman filter; hidden markov models; graphical model; CMA ES; trend detection; systematic trading; LAMSADE; MILES;
    All these keywords.

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:hal:wpaper:hal-02012471. 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: CCSD (email available below). General contact details of provider: https://hal.archives-ouvertes.fr/ .

    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.