Skip to main content

skaters

Home of Laplace, a light, fast, automatic distributional univariate time-series prediction algorithm. It also improves other time-series models, including Prophet. Recommended for non-price economic time series.

One call, zero dependencies, every prediction a full probability distribution computed online in O(1).

Documentation, live demos and results: skaters.microprediction.org

Documentation and live demos Python, JavaScript, R, Julia and Rust

Quick start

pip install skaters
from skaters import laplace

f = laplace(k=3)
state = None
forecast = None            # the fan issued LAST tick, aimed at this y
for y in observations:
    if forecast is not None:
        forecast[0].logpdf(y)          # one-step-ahead log score
        forecast[0].cdf(y)             # one-step-ahead PIT
    forecast, state = f(y, state)
    forecast[0].mean                   # point forecast for the NEXT tick
    forecast[0].std                    # uncertainty
    forecast[0].quantile(0.975)        # upper edge of the central 95% band
  • Each call takes one observation and returns a predictive distribution (Dist) per horizon, h = 1, ..., k.
  • A Dist carries the mean, spread, quantiles and density at once.
  • Score a forecast only against values that arrive after it was issued.
  • state["pit"] and state["z"] give a calibrated surprise for every point.

For the Rust-backed version at about 20x the step rate, pip install "skaters[fast]" and import skaters_fast.

Laplace and foundational models

Laplace was written to monitor hundreds of thousands of private and public economic series, because we couldn't find anything better. It is tiny, dependency-free and takes microseconds per update. Some foundational models are slightly better on monthly, weekly and hourly series, but far less usable at present. It leads on daily economic series. Where each is better →

A cyclist pops a wheelie on a mountain bike alongside a professional peloton; the peloton is labelled Foundational Models and the wheelie rider Laplace.

One general forecaster?

what it is
laplace(k) the general forecaster, fully autonomous: no training, no tuning; multi-step to k=12
granger(frequency=...) laplace with hyperparameters trained per frequency (monthly, weekly, hourly), never more than log 4 behind it
flesaker(lower=0) experimental: laplace on log(y - lower), for series with a known bound

Everything else is a building block you can compose: transforms, leaves and ensembles (methodology).

Documentation

Demos the forecaster running live in your browser
FAQ what it is for, how not to use it
Examples runnable recipes
Methodology how laplace and granger are built
Scope prior knowledge, horizons, units
Metrics why log likelihood is the default score
Skills copyable instructions for AI assistants
Primer paste into any chat assistant to discuss your series
Implementations Python, torch, Rust, JavaScript, R, Julia, parity-checked to 1e-6
Papers the methods paper, the benchmark paper and technical notes
Leaderboards paired results against foundational models
REFERENCE.md the detailed reference: architecture, Dist, transforms, ensembles, specs, skaters.torch

Cite

Please cite the first paper listed, Transforms all the way down (SSRN 7220478), as it explains the methodology.

@misc{cotton2026skaters,
  title  = {Transforms All the Way Down --- Automatic Online Distributional
            Forecasting by Conjugation},
  author = {Cotton, Peter},
  year   = {2026},
  note   = {SSRN 7220478, https://skaters.microprediction.org}
}

Heritage

skaters distils ideas from timemachines, which gave dozens of time-series packages a common interface. It is a from-scratch rewrite for speed, distributional prediction and the browser.

Metadata

Release files for skaters 0.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skaters 0.17.0
File Size Uploaded Provenance Actions
skaters-0.17.0.tar.gz 273.1 kB Without provenance Details for skaters-0.17.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skaters 0.17.0
File Interpreter ABI Platform Actions
skaters-0.17.0-py3-none-any.whl Python 3 none any Details for skaters-0.17.0-py3-none-any.whl

Total release size: 574.9 kB

Release files / skaters-0.17.0.tar.gz

Download URL skaters-0.17.0.tar.gz
Size 273.1 kB
Tags Source
SHA-256 checksum
How to use checksums
739a4b48f81bcb2f7549fbfa9418cdcfa9ac33bab355858b77133d2e55b4dd12
BLAKE2b-256 checksum
How to use checksums
76003ccab63cd1583f9d9385ea9d0399555fd61ce0e3f668e49e54e9746946b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / skaters-0.17.0-py3-none-any.whl

Download URL skaters-0.17.0-py3-none-any.whl
Size 301.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
579ac99cf306c0e84165b5c550a7150775a8884bdfdd1a66cb042591688a177c
BLAKE2b-256 checksum
How to use checksums
85021606123c2872d2715bebcc6c6c3c2e7763f3028ab0df7331eab9bff1f373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for skaters 0.17.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page