Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
incline
incline

Contents:

  • Installation
  • Quickstart
  • Uncertainty
  • API reference
    • incline.naive_trend
    • incline.sgolay_trend
    • incline.smoothing_spline_trend
    • incline.loess_trend
    • incline.local_polynomial_trend
    • incline.l1_trend_filter
    • incline.gp_trend
    • incline.kalman_trend
    • incline.estimate_trend
    • incline.estimate
    • incline.Smoother
    • incline.SavitzkyGolay
    • incline.NaiveDifference
    • incline.LocalPolynomial
    • incline.Loess
    • incline.SmoothingSpline
    • incline.L1TrendFilter
    • incline.GaussianProcess
    • incline.StateSpace
    • incline.build
    • incline.NoiseModel
    • incline.IID
    • incline.AR1
    • incline.Heteroskedastic
    • incline.Given
    • incline.local_sigma
    • incline.TrendEstimate
    • incline.TimeAxis
    • incline.SiZer
    • incline.SiZerMap
    • incline.sizer_analysis
    • incline.trend_with_sizer
    • incline.deseasonalize
    • incline.detect_seasonality
    • incline.stl_decompose
    • incline.moving_average_decompose
    • incline.trend_with_deseasonalization
    • incline.Seasonality
    • incline.trending
    • incline.generate_time_series
    • incline.standard_test_functions
  • Executable examples
    • Basic usage examples
    • Advanced methods
  • Limitations
Back to top
View this page

incline.trending¶

incline.trending(estimates, window_length=5, aggregation='mean', weighting='uniform', half_life=None, confidence_level=0.95, ids=None)[source]¶

Rank series by recent trend strength.

Parameters:
  • estimates (Mapping[str, TrendEstimate] | Sequence[TrendEstimate]) – Estimates to rank, either as a mapping from identifier to estimate or as a sequence alongside ids.

  • window_length (int) – How many of the most recent observations to summarize.

  • aggregation (Aggregation) – 'mean', 'max', 'median' or 'last'. The last value preserves its pointwise uncertainty exactly; the mean uses a conservative bound because the covariance is unavailable.

  • weighting (Weighting) – Weighting across the window for 'mean'.

  • half_life (float | None) – Observations required for exponential weights to halve. Required when weighting='exponential' and unavailable otherwise.

  • confidence_level (float) – Confidence level for the reported interval.

  • ids (Sequence[str] | None) – Identifiers, when estimates is a sequence.

Returns:

One row per series with columns id, trend, trend_standard_error, ci_lower, ci_upper, significant, uncertainty_exact, rank, sorted strongest first. The schema does not change when the input is empty.

Raises:
  • TypeError – If ids is supplied with mapping input.

  • ValueError – If an argument is outside its domain or identifiers cannot be determined.

Return type:

pd.DataFrame

Next
incline.generate_time_series
Previous
incline.Seasonality
Copyright © 2026, Suriyan Laohaprapanon, Gaurav Sood
Made with Sphinx and @pradyunsg's Furo
On this page
  • incline.trending
    • trending()