Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
TipBox
Logo
TipBox
GitHub ↗

Getting started

  • Quickstart
  • Simulation

Reference

  • System catalog
    • May harvesting
    • Rosenzweig–MacArthur consumer-resource model
    • SEIRx disease and vaccination behaviour
    • Rate-induced saddle-node normal form
    • Rate-induced Bautin normal form
    • Compost-bomb instability
    • Atlantic meridional overturning circulation
    • Stochastic Ricker population map
    • Thermoacoustic subcritical Hopf oscillator
  • Early-warning indicators
  • Benchmarking
  • API reference

Reproduction

  • Reproduce the figures
  • Citations
Back to top
View this page

Early-warning indicators¶

Function

Measures

rolling_ar1()

Lagged regression slope

rolling_acf()

Lagged Pearson correlation

rolling_variance()

Variance

rolling_skewness()

Asymmetry

rolling_kurtosis()

Tail weight

Example¶

Continuing the Quickstart:

from tipbox.indicators import rolling_variance

variance = rolling_variance(signal, window=200, detrend="linear")
AR1 and variance for May harvesting, a rate-driven saddle-node, and microcosm observations.

See the API reference for window options, defaults, and definitions. Figure settings and data credits are in Reproduce the figures.

Next
Benchmarking
Previous
Thermoacoustic subcritical Hopf oscillator
Copyright © 2026, Juan Nathaniel
Made with Sphinx and @pradyunsg's Furo
On this page
  • Early-warning indicators
    • Example