Skip to main content
QUICK REVIEW

[Paper Review] Tick: a Python library for statistical learning, with a particular emphasis on time-dependent modelling

Emmanuel Bacry, Martin Bompaire|arXiv (Cornell University)|Jul 10, 2017
Point processes and geometric inequalitiesMathematics11 references27 citations
TL;DR

tick is a high-performance Python library for statistical learning with a focus on time-dependent models such as Hawkes processes, generalized linear models, and survival analysis. It leverages C++-accelerated, modular optimization algorithms—including SVRG, SDCA, and proximal solvers—enabling fast, scalable inference on multi-core systems, outperforming existing libraries like PtPack and hawkes R by several orders of magnitude in computational speed.

ABSTRACT

Tick is a statistical learning library for Python~3, with a particular emphasis on time-dependent models, such as point processes, and tools for generalized linear models and survival analysis. The core of the library is an optimization module providing model computational classes, solvers and proximal operators for regularization. tick relies on a C++ implementation and state-of-the-art optimization algorithms to provide very fast computations in a single node multi-core setting. Source code and documentation can be downloaded from https://github.com/X-DataInitiative/tick

Motivation & Objective

  • To address the lack of comprehensive, high-performance open-source tools for time-dependent statistical models in Python.
  • To provide a modular, extensible optimization framework that supports a wide range of models beyond just point processes.
  • To make advanced inference algorithms for Hawkes processes—such as nonparametric and parametric estimators—accessible and efficient for researchers and practitioners.
  • To outperform existing libraries like PtPack and hawkes R in both simulation and fitting speed, especially for large-scale datasets.
  • To integrate state-of-the-art optimization techniques (e.g., SVRG, SDCA) into a scikit-learn-compatible API for ease of use and extensibility.

Proposed method

  • The library is built on a modular optimization core using C++ for performance, with solvers and proximal operators exposed via a Python API.
  • It implements advanced optimization algorithms such as Stochastic Variance Reduced Gradient (SVRG) and Stochastic Dual Coordinate Ascent (SDCA) for scalable training.
  • The framework supports a wide range of models through composable proximal operators (e.g., L2, L1, group L1, total variation) and solvers.
  • It provides simulation and inference tools for Hawkes processes with various kernel types, including exponential, Gaussian, and basis-function kernels.
  • The library follows the scikit-learn API for consistency and usability, enabling seamless integration into existing ML workflows.
  • Benchmarking is conducted on multi-core systems using synthetic and real-world datasets, including high-frequency financial data and earthquake aftershock records.

Experimental results

Research questions

  • RQ1Can a Python library achieve high-performance inference for time-dependent models like Hawkes processes while maintaining usability and modularity?
  • RQ2How does tick's optimization stack compare in speed and scalability to existing libraries such as PtPack and hawkes R?
  • RQ3To what extent can modular proximal optimization and advanced solvers improve inference efficiency across diverse statistical models?
  • RQ4Can nonparametric and parametric estimation algorithms for Hawkes processes be unified under a single, accessible, and efficient framework?
  • RQ5How well does tick scale across multiple CPU cores for large-scale time-series modeling tasks?

Key findings

  • tick outperforms hawkes R and PtPack by several orders of magnitude in both simulation and fitting of Hawkes processes, especially on large datasets with up to 5×10^7 events.
  • On 16-core systems, tick demonstrates strong scalability, significantly reducing computational time for large-scale inference tasks.
  • The library successfully implements a comprehensive suite of Hawkes process estimation algorithms, including EM, basis kernels, Wiener-Hopf, and NPHC, with high accuracy and performance.
  • Benchmarking against scikit-learn shows that tick’s solvers are competitive for logistic regression, confirming its broader applicability beyond time-dependent models.
  • The use of C++-accelerated solvers and proximal operators enables efficient training of models such as Cox regression and Poisson regression with regularization.
  • Real-world applications, including high-frequency finance and earthquake aftershock analysis, demonstrate tick’s practical utility and robustness on complex, real datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.