hawkes-engine
Multivariate Hawkes processes with exponential kernels for Python: a compiled likelihood and gradient, a maximum-likelihood fit with standard errors, two independent exact simulators, time-rescaling diagnostics, and a lookup of what a pre-registered simulation study measured about the fit's standard errors in a given regime.
Status
Pre-alpha. Not on PyPI. Gates H0 to H8 of nine are complete; H9 is the first release. The wheel matrix is CPython 3.10 to 3.12 on Linux x86-64, macOS (x86-64 and arm64) and Windows AMD64, built by CI and not yet published.
A fit in a few lines
import numpy as np
import hawkes_engine as he
mu = np.array([0.6, 0.9])
alpha = np.array([[0.10, 0.35], [0.20, 0.05]]) # row = target, column = source
beta = np.array([[1.30, 1.70], [1.30, 1.70]])
times, types = he.simulate(mu, alpha, beta, T=20000.0, seed=1)
fit = he.fit(times, types, M=2, T=20000.0, seed=1)
print(fit)
print(fit.alpha.round(3).tolist(), fit.se["alpha"].round(3).tolist())
print(he.trust_lookup(N=len(times), rho_hat=fit.rho, beta=fit.beta.min(), T=20000.0).status)
Rows are targets and columns are sources: alpha[i, j] is the excitation a type-j
event applies to type i.
What was measured
Over 128 simulation cells with 2000 replications each, the standard errors the fit reports were smaller than the spread of its estimates: the ratio of mean reported standard error to empirical standard deviation is 0.779 +/- 0.011 pooled over the 12 cells of two types with at least 2000 events, and 0.61 for the decay block. The estimator is undefined where the observation window holds only a fraction of one decay time.
What is not established
- Two of the six pre-registered hypotheses, H6.3 and H6.4, were not confirmed. H6.6
was confirmed but is mostly mechanical: 96.4 percent of
unreliablefits have no standard error to begin with. FitResult.reliableis a conditioning report, not a statement about bias or coverage. It labelled fitsreliablewhose decay estimate was more than ten times the truth.- Nothing above one million events was timed, every timing is from one machine, and only two types (and a four-type satellite) were calibrated.
- No comparison with any other library has been made.
Each item, with its evidence, is on the Limits page.
Installation
Not on PyPI. Build from source (a C++20 compiler and CMake 3.24 are required) or install a wheel from the Actions tab:
git clone https://github.com/freddysccheung-067/hawkes-engine.git
cd hawkes-engine
python -m venv .venv
.venv/bin/python -m pip install -e ".[test]" # .venv\Scripts\ on Windows
.venv/bin/python examples/01_simulate_and_fit.py
docs/install.md has the commands for each operating system.
Where the evidence is
| Question | File |
|---|---|
| What the fit's standard errors were measured to do | studies/results/analysis/hypotheses.json, paper/draft.md |
| How the study was designed, before it ran | docs/preregistration.md at the tag H6-preregistration |
| What each gate established, and what is open | docs/STATE.md |
| How long a fit takes, and how much memory | benchmarks/results/capability_2026-10-21.md |
| The mathematics the code implements | docs/spec/mathematics.md |
| Why the reference implementation is frozen | docs/verification-rule.md |
Documentation: https://freddysccheung-067.github.io/hawkes-engine/. The
examples/ directory has five scripts that run in CI. See also
CONTRIBUTING.md, SECURITY.md and
CHANGELOG.md.
License
MIT: see LICENSE.
Metadata
Release files for hawkes-engine 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hawkes_engine-0.1.0.tar.gz | 761.6 kB | With provenance | Details |
Built distributions (wheels)
Total release size: 3.9 MB
Release files / hawkes_engine-0.1.0.tar.gz
| Download URL | hawkes_engine-0.1.0.tar.gz |
|---|---|
| Size | 761.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b7d1e296ccb257339206957970f0b912ec8c39aff9bdc3a0a8bcc3dc34ff7ac
|
|
BLAKE2b-256 checksum How to use checksums |
d3f532c91e22e6f658e7f7249fc1749a0ba508a56c8b2ddcfbf43f8663620bd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | hawkes_engine-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 402.2 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
758ad38a1b4bcbf49322755c7ce30983d1f73004b3e08460c81e093bec173f33
|
|
BLAKE2b-256 checksum How to use checksums |
8533297859e3b2d69ed6b9b1ce2ff54e419ccb0daf1f99c8e58cdb95e55851b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | hawkes_engine-0.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 234.9 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fd78d359452c04424e8537dc52c0d74ed41574b052618089dc1abedd39ff43ff
|
|
BLAKE2b-256 checksum How to use checksums |
ba65babd60565f0cce8d0a5b0a105f7afbf3d771fdcf8275bf7b9b2d5767ce2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | hawkes_engine-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 195.5 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e57bc5c8df3688cead5b5d4b490ea295db287a9b74af81b85f1e403f678302d7
|
|
BLAKE2b-256 checksum How to use checksums |
f1b1de5477ed3d18a35c994e65ef076f75eb7540fc925a0ef77d48c3e181730c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp312-cp312-macosx_10_15_x86_64.whl
| Download URL | hawkes_engine-0.1.0-cp312-cp312-macosx_10_15_x86_64.whl |
|---|---|
| Size | 203.5 kB |
| Tags | CPython 3.12 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
9e13f1096c255ee49e7d39b1a447508e0db4e5e987b3696508e1ac821bf206e3
|
|
BLAKE2b-256 checksum How to use checksums |
917d3a1a0d7782cbf8fd01104cc106d3e2e5d8c9aeb727dbd1eb91047cbe4f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp311-cp311-win_amd64.whl
| Download URL | hawkes_engine-0.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 400.1 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
76297e1bbe50dd144628c1ea0f9e0d3fffe04971518b6043893ee8b648254434
|
|
BLAKE2b-256 checksum How to use checksums |
cfe343979cc0ec4fadb45dc0e04278eebdb51df9daf5c8b8f5e8b6c51a3d9cf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | hawkes_engine-0.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 234.2 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1f0b0fa337e08e3ac57e799db638a69b1af4ef1f286249da8e994e2656ad20d7
|
|
BLAKE2b-256 checksum How to use checksums |
8a46473d26729b89aaca678dc9e4c1e7411db8b0e5baf31859f592cb82580693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | hawkes_engine-0.1.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 193.9 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a93c2dc80fe5b0ab99a24fd7b7368ff3ef6ddb36bd0d82465efec0572d27fec3
|
|
BLAKE2b-256 checksum How to use checksums |
f22d8ef1a96164f652bc05d69e9f03660bf898d568103c65cc03fa2b9aab1a29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp311-cp311-macosx_10_15_x86_64.whl
| Download URL | hawkes_engine-0.1.0-cp311-cp311-macosx_10_15_x86_64.whl |
|---|---|
| Size | 201.2 kB |
| Tags | CPython 3.11 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
f20d732399cf55eee6fe1449e11383c7c2b932dc1d6f40f3f49e50e36c8550e1
|
|
BLAKE2b-256 checksum How to use checksums |
2a4e37e087f398867383ece1b81f495224cbbb8935d9ab903703473004fff649
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp310-cp310-win_amd64.whl
| Download URL | hawkes_engine-0.1.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 399.1 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
340b675764727f3f8898dd5a403842f0bfb89647c2f8a1b111802b17039d2d66
|
|
BLAKE2b-256 checksum How to use checksums |
0ce31ee9570e5a0fd08f8f2ca56ec939e78298c915efb4f66b1de4464ee323f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | hawkes_engine-0.1.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 233.2 kB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c19539de12f36594229a09edd7454c05910a71552f5ce8cd98719bee2ade39de
|
|
BLAKE2b-256 checksum How to use checksums |
e2393d189912b0136c22beda3100c1b277b32bf5d108056cb94aa45a442c8479
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | hawkes_engine-0.1.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 192.0 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8e67011968f8e33b5eed7696fa41f7b5bad8629eee4027b13c5849eb07c4b2e9
|
|
BLAKE2b-256 checksum How to use checksums |
c2a5b90494f2987359c376bb4b3f88c9349053f065eeb873f711a913e567dff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / hawkes_engine-0.1.0-cp310-cp310-macosx_10_15_x86_64.whl
| Download URL | hawkes_engine-0.1.0-cp310-cp310-macosx_10_15_x86_64.whl |
|---|---|
| Size | 199.9 kB |
| Tags | CPython 3.10 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
e55ec45d087694d28fa171722cdf9d5306877a29063d9bbfca3a89c7201b3934
|
|
BLAKE2b-256 checksum How to use checksums |
106b3004de561db104b26219273278595a34df8cbc25f8e8e0d0b635e068c429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for hawkes-engine 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 13 files in this release have been uploaded with provenance metadata.
Attestation for hawkes_engine-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.