Diagnostics (tsbootstrap.diagnostics)
diagnose(X): inspect a series and recommend bootstrap methods.
A lightweight, honest advisor, it measures serial dependence and stationarity
and maps them to suitable method specs. It does not choose for you; it explains
what it sees and what fits.
-
class tsbootstrap.diagnostics.Diagnosis(n_obs: int, n_series: int, lag1_autocorr: float, dependent: bool, nonstationary: bool, recommended_methods: tuple[str, ...], notes: tuple[str, ...])[source]
Bases: object
What diagnose found and what it recommends.
-
tsbootstrap.diagnostics.diagnose(X: object) → Diagnosis[source]
Inspect X and recommend bootstrap methods for it.