MHP
Generation and MLE Estimation for Multivariate Hawkes Process
Install / Use
/learn @sandeepsoni/MHPREADME
MHP
This repository contains a light-weight python implementation for generating events and estimating the parameters using a Multivariate Hawkes Process. It contains the following code components:
HP/simulators: To generate a cascade with given parameters using the modified Ogata's thinning algorithm.HP/estimators: To estimate the parameters of multivariate hawkes process using maximum likelihood.
The simulation code is copied and modified slightly from Steve Morse's excellent implementation. The code is optimized to get runtime improvements compared to naive implementations.
If you happen to use this code, consider citing our paper. Here's the open-access version
@inproceedings{soni2019detecting,
title={Detecting Social Influence in Event Cascades by Comparing Discriminative Rankers},
author={Soni, Sandeep and Ramirez, Shawn Ling and Eisenstein, Jacob},
booktitle={The 2019 ACM SIGKDD Workshop on Causal Discovery},
pages={78--99},
year={2019}
}
If you discover any bug, please file an issue. For contributions, please make a pull request.
TODO
- Add Jupyter notebook demostrating how to use both the generation and estimation code
Other similar resources
- Scott Linderman provides code for bayesian inference on Hawkes processes.
- The Hawkes Process Toolkit by Hongteng Xu and Hongyuan Zha is a comprehensive toolkit for doing estimation and simulation using Hawkes process. It is writte in Matlab.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
