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. Vladimir Filimonov & Didier Sornette, 2012. "Quantifying reflexivity in financial markets: towards a prediction of flash crashes," Papers 1201.3572, arXiv.org, revised Apr 2012.
    2. Jakob Gulddahl Rasmussen, 2013. "Bayesian Inference for Hawkes Processes," Methodology and Computing in Applied Probability, Springer, vol. 15(3), pages 623-642, September.
    3. 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.
    4. 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.
    5. 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.
    6. Azizpour, S & Giesecke, K. & Schwenkler, G., 2018. "Exploring the sources of default clustering," Journal of Financial Economics, Elsevier, vol. 129(1), pages 154-183.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    11. Frederic Paik Schoenberg, 2022. "Nonparametric estimation of variable productivity Hawkes processes," Environmetrics, John Wiley & Sons, Ltd., vol. 33(6), September.
    12. 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.
    13. 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.
    14. 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.
    15. 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.
    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. Tomlinson, Matthew F. & Greenwood, David & Mucha-Kruczyński, Marcin, 2024. "2T-POT Hawkes model for left- and right-tail conditional quantile forecasts of financial log returns: Out-of-sample comparison of conditional EVT models," International Journal of Forecasting, Elsevier, vol. 40(1), pages 324-347.
    2. Anatoliy Swishchuk & Aiden Huffman, 2020. "General Compound Hawkes Processes in Limit Order Books," Risks, MDPI, vol. 8(1), pages 1-25, March.
    3. Sobin Joseph & Shashi Jain, 2023. "A neural network based model for multi-dimensional nonlinear Hawkes processes," Papers 2303.03073, arXiv.org.
    4. 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.
    5. Mercuri, Lorenzo & Perchiazzo, Andrea & Rroji, Edit, 2024. "A Hawkes model with CARMA(p,q) intensity," Insurance: Mathematics and Economics, Elsevier, vol. 116(C), pages 1-26.
    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. 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.
    9. 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.
    10. Antoine Fosset & Jean-Philippe Bouchaud & Michael Benzaquen, 2020. "Non-parametric Estimation of Quadratic Hawkes Processes for Order Book Events," Papers 2005.05730, arXiv.org.
    11. 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.
    12. 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.
    13. Jacques Peeperkorn, 2014. "A Proposed Model to Behaviourally Pricing Risk," Journal of Economics and Behavioral Studies, AMH International, vol. 6(6), pages 477-487.
    14. Vipul Aggarwal & Elina H. Hwang & Yong Tan, 2021. "Learning to Be Creative: A Mutually Exciting Spatiotemporal Point Process Model for Idea Generation in Open Innovation," Information Systems Research, INFORMS, vol. 32(4), pages 1214-1235, December.
    15. Aleksy Leeuwenkamp & Wentao Hu, 2023. "New general dependence measures: construction, estimation and application to high-frequency stock returns," Papers 2309.00025, arXiv.org.
    16. Masatoshi Goda, 2021. "Hawkes process and Edgeworth expansion with application to maximum likelihood estimator," Statistical Inference for Stochastic Processes, Springer, vol. 24(2), pages 277-325, July.
    17. von der Becke Susanne & Sornette Didier, 2019. "An Asset-Based Framework of Credit Creation (applied to the Global Financial Crisis)," Accounting, Economics, and Law: A Convivium, De Gruyter, vol. 9(2), pages 1-21, July.
    18. Gresnigt, Francine & Kole, Erik & Franses, Philip Hans, 2015. "Interpreting financial market crashes as earthquakes: A new Early Warning System for medium term crashes," Journal of Banking & Finance, Elsevier, vol. 56(C), pages 123-139.
    19. D. Sornette, 2014. "Physics and Financial Economics (1776-2014): Puzzles, Ising and Agent-Based models," Papers 1404.0243, arXiv.org.
    20. Hyun Jin Jang & Kiseop Lee & Kyungsub Lee, 2020. "Systemic risk in market microstructure of crude oil and gasoline futures prices: A Hawkes flocking model approach," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(2), pages 247-275, February.
    21. Didier Sornette & Peter Cauwels, 2014. "A Creepy World," Papers 1401.3281, arXiv.org.

    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.