RK-SAVR estimator
Multi-scale Kolmogorov–Smirnov estimation for roughness.
Estimate the Hurst parameter directly in Node.js or the browser with a production-ready implementation of RK-SAVR.
Lower H means rougher, more anti-persistent motion. Higher H means smoother, more persistent motion.
Interactive playground
A real browser call to Hurstify. Generate a known path or paste your own time series.
Presets
Result
Run an estimate to see diagnostics.
Your generated path will appear here.
What does H mean?
H ≈ 0.1
rough / anti-persistent
H ≈ 0.5
Brownian-like
H ≈ 0.8
smooth / persistent
Minimal example
The demo uses the same public API you can import in your own app. The package is published from this repository with no runtime dependencies.
Open the full guideimport { Hurstify, generateFractionalBrownianMotion } from 'hurstify';
const path = generateFractionalBrownianMotion(2000, 0.1);
const result = new Hurstify({
scaleA1: 1, scaleA2: 25, sampleSize: 500, iterations: 16,
}).estimateSingleWithDiagnostics(path);
console.log(result.H);Why hurstify
Multi-scale Kolmogorov–Smirnov estimation for roughness.
Create reproducible fractional Brownian paths for experiments.
Diagnostics, confidence tools, and significance testing are available.
Pure JavaScript with ESM, CJS, IIFE, and TypeScript declarations.
Track H across windows without leaving your JavaScript workflow.
A small, auditable implementation with no production dependency tree.
How it works
RK-SAVR uses rescaling invariance and randomized Kolmogorov–Smirnov comparison to estimate H without asking the homepage to become a textbook.
Choose a stationary window.
Compare increments at two or more scales.
Reduce serial dependence with block randomization.
Draw manageable samples at each scale.
Apply the self-similar H scaling.
Find H at the smallest distributional distance.
Repeat and average for a steadier estimate.
Research provenance
Hurstify implements the RK-SAVR algorithm described by Angelini & Bianchi (2025). It is an independent open-source implementation; this project does not imply endorsement by the paper authors.