IDEAS home Printed from https://ideas.repec.org/a/wly/envmet/v34y2023i5ne2798.html
   My bibliography  Save this article

Approximation of Bayesian Hawkes process with inlabru

Author

Listed:
  • Francesco Serafini
  • Finn Lindgren
  • Mark Naylor

Abstract

Hawkes process are very popular mathematical tools for modeling phenomena exhibiting a self‐exciting or self‐correcting behavior. Typical examples are earthquakes occurrence, wild‐fires, drought, capture‐recapture, crime violence, trade exchange, and social network activity. The widespread use of Hawkes process in different fields calls for fast, reproducible, reliable, easy‐to‐code techniques to implement such models. We offer a technique to perform approximate Bayesian inference of Hawkes process parameters based on the use of the R‐package inlabru . The inlabru R‐package, in turn, relies on the INLA methodology to approximate the posterior of the parameters. Our Hawkes process approximation is based on a decomposition of the log‐likelihood in three parts, which are linearly approximated separately. The linear approximation is performed with respect to the mode of the parameters' posterior distribution, which is determined with an iterative gradient‐based method. The approximation of the posterior parameters is therefore deterministic, ensuring full reproducibility of the results. The proposed technique only requires the user to provide the functions to calculate the different parts of the decomposed likelihood, which are internally linearly approximated by the R‐package inlabru . We provide a comparison with the bayesianETAS R‐package which is based on an MCMC method. The two techniques provide similar results but our approach requires two to ten times less computational time to converge, depending on the amount of data.

Suggested Citation

  • Francesco Serafini & Finn Lindgren & Mark Naylor, 2023. "Approximation of Bayesian Hawkes process with inlabru," Environmetrics, John Wiley & Sons, Ltd., vol. 34(5), August.
  • Handle: RePEc:wly:envmet:v:34:y:2023:i:5:n:e2798
    DOI: 10.1002/env.2798
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/env.2798
    Download Restriction: no

    File URL: https://libkey.io/10.1002/env.2798?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. Jakob Gulddahl Rasmussen, 2013. "Bayesian Inference for Hawkes Processes," Methodology and Computing in Applied Probability, Springer, vol. 15(3), pages 623-642, September.
    2. A. Smit & A. Stein & A. Kijko, 2019. "Bayesian inference in natural hazard analysis for incomplete and uncertain data," Environmetrics, John Wiley & Sons, Ltd., vol. 30(6), September.
    3. Azizpour, S & Giesecke, K. & Schwenkler, G., 2018. "Exploring the sources of default clustering," Journal of Financial Economics, Elsevier, vol. 129(1), pages 154-183.
    4. Vladimir Filimonov & Didier Sornette, 2012. "Quantifying Reflexivity in Financial Markets: Towards a Prediction of Flash Crashes," Swiss Finance Institute Research Paper Series 12-02, Swiss Finance Institute.
    5. Frederic Paik Schoenberg, 2022. "Nonparametric estimation of variable productivity Hawkes processes," Environmetrics, John Wiley & Sons, Ltd., vol. 33(6), September.
    6. Earvin Balderama & Frederic Paik Schoenberg & Erin Murray & Philip W. Rundel, 2012. "Application of Branching Models in the Study of Invasive Species," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 107(498), pages 467-476, June.
    7. Mohler, George & Carter, Jeremy & Raje, Rajeev, 2018. "Improving social harm indices with a modulated Hawkes process," International Journal of Forecasting, Elsevier, vol. 34(3), pages 431-439.
    8. Finn Lindgren & Håvard Rue & Johan Lindström, 2011. "An explicit link between Gaussian fields and Gaussian Markov random fields: the stochastic partial differential equation approach," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 73(4), pages 423-498, September.
    9. Vladimir Filimonov & Didier Sornette, 2012. "Quantifying reflexivity in financial markets: towards a prediction of flash crashes," Papers 1201.3572, arXiv.org, revised Apr 2012.
    10. Zachary D. Weller & Jennifer A. Hoeting & Joseph C. von Fischer, 2018. "A calibration capture–recapture model for inferring natural gas leak population characteristics using data from Google Street View cars," Environmetrics, John Wiley & Sons, Ltd., vol. 29(7), November.
    11. Alan G. Hawkes, 2018. "Hawkes processes and their applications to finance: a review," Quantitative Finance, Taylor & Francis Journals, vol. 18(2), pages 193-198, February.
    12. Veen, Alejandro & Schoenberg, Frederic P., 2008. "Estimation of SpaceTime Branching Process Models in Seismology Using an EMType Algorithm," Journal of the American Statistical Association, American Statistical Association, vol. 103, pages 614-624, June.
    13. Birgit Schrödle & Leonhard Held, 2011. "A primer on disease mapping and ecological regression using $${\texttt{INLA}}$$," Computational Statistics, Springer, vol. 26(2), pages 241-258, June.
    14. Roger D. Peng & Frederic Paik Schoenberg & James A. Woods, 2005. "A Space-Time Conditional Intensity Model for Evaluating a Wildfire Hazard Index," Journal of the American Statistical Association, American Statistical Association, vol. 100, pages 26-35, March.
    15. Chiang, Wen-Hao & Liu, Xueying & Mohler, George, 2022. "Hawkes process modeling of COVID-19 with mobility leading indicators and spatial covariates," International Journal of Forecasting, Elsevier, vol. 38(2), pages 505-520.
    Full references (including those not matched with items on IDEAS)

    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. Anatoliy Swishchuk & Aiden Huffman, 2020. "General Compound Hawkes Processes in Limit Order Books," Risks, MDPI, vol. 8(1), pages 1-25, March.
    2. Sobin Joseph & Shashi Jain, 2023. "A neural network based model for multi-dimensional nonlinear Hawkes processes," Papers 2303.03073, arXiv.org.
    3. Hai-Chuan Xu & Wei-Xing Zhou, 2020. "Modeling aggressive market order placements with Hawkes factor models," PLOS ONE, Public Library of Science, vol. 15(1), pages 1-12, January.
    4. Mathieu Rosenbaum & Jianfei Zhang, 2022. "On the universality of the volatility formation process: when machine learning and rough volatility agree," Papers 2206.14114, arXiv.org.
    5. Chiang, Wen-Hao & Liu, Xueying & Mohler, George, 2022. "Hawkes process modeling of COVID-19 with mobility leading indicators and spatial covariates," International Journal of Forecasting, Elsevier, vol. 38(2), pages 505-520.
    6. Swishchuk, Anatoliy & Zagst, Rudi & Zeller, Gabriela, 2021. "Hawkes processes in insurance: Risk model, application to empirical data and optimal investment," Insurance: Mathematics and Economics, Elsevier, vol. 101(PA), pages 107-124.
    7. repec:wsi:acsxxx:v:21:y:2018:i:08:n:s0219525918500194 is not listed on IDEAS
    8. Yonatan Berman & Yoash Shapira & Eshel Ben-Jacob, 2014. "Unraveling Hidden Order in the Dynamics of Developed and Emerging Markets," PLOS ONE, Public Library of Science, vol. 9(11), pages 1-10, November.
    9. Wheatley, Spencer & Filimonov, Vladimir & Sornette, Didier, 2016. "The Hawkes process with renewal immigration & its estimation with an EM algorithm," Computational Statistics & Data Analysis, Elsevier, vol. 94(C), pages 120-135.
    10. Fry, John & Cheah, Eng-Tuck, 2016. "Negative bubbles and shocks in cryptocurrency markets," International Review of Financial Analysis, Elsevier, vol. 47(C), pages 343-352.
    11. Didier Sornette & Peter Cauwels, 2014. "1980–2008: The Illusion of the Perpetual Money Machine and What It Bodes for the Future," Risks, MDPI, vol. 2(2), pages 1-29, April.
    12. Maillart, Thomas & Sornette, Didier, 2019. "Aristotle vs. Ringelmann: On superlinear production in open source software," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 523(C), pages 964-972.
    13. Antoine Fosset & Jean-Philippe Bouchaud & Michael Benzaquen, 2020. "Non-parametric Estimation of Quadratic Hawkes Processes for Order Book Events," Papers 2005.05730, arXiv.org.
    14. Didier Sornette & Thomas Maillart & Giacomo Ghezzi, 2014. "How Much Is the Whole Really More than the Sum of Its Parts? 1 ⊞ 1 = 2.5: Superlinear Productivity in Collective Group Actions," PLOS ONE, Public Library of Science, vol. 9(8), pages 1-15, August.
    15. Didier SORNETTE, 2014. "Physics and Financial Economics (1776-2014): Puzzles, Ising and Agent-Based Models," Swiss Finance Institute Research Paper Series 14-25, Swiss Finance Institute.
    16. V. Filimonov & D. Sornette, 2015. "Apparent criticality and calibration issues in the Hawkes self-excited point process model: application to high-frequency financial data," Quantitative Finance, Taylor & Francis Journals, vol. 15(8), pages 1293-1314, August.
    17. Tobias Braun & Jonas A Fiegen & Daniel C Wagner & Sebastian M Krause & Thomas Guhr, 2018. "Impact and recovery process of mini flash crashes: An empirical study," PLOS ONE, Public Library of Science, vol. 13(5), pages 1-11, May.
    18. Paulin, James & Calinescu, Anisoara & Wooldridge, Michael, 2019. "Understanding flash crash contagion and systemic risk: A micro–macro agent-based approach," Journal of Economic Dynamics and Control, Elsevier, vol. 100(C), pages 200-229.
    19. Jacques Peeperkorn, 2014. "A Proposed Model to Behaviourally Pricing Risk," Journal of Economics and Behavioral Studies, AMH International, vol. 6(6), pages 477-487.
    20. Aditi Dandapani & Paul Jusselin & Mathieu Rosenbaum, 2019. "From quadratic Hawkes processes to super-Heston rough volatility models with Zumbach effect," Papers 1907.06151, arXiv.org, revised Jan 2021.
    21. Kramer, Anke & Kiesel, Rüdiger, 2021. "Exogenous factors for order arrivals on the intraday electricity market," Energy Economics, Elsevier, vol. 97(C).

    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:wly:envmet:v:34:y:2023:i:5:n:e2798. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www.interscience.wiley.com/jpages/1180-4009/ .

    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.