Skip to main content

Estimate trend and seasonal effects in a timeseries

Project description

Robustly estimate and remove trend and periodicity in a timeseries.

Seasonal can recover sharp trend and period estimates from noisy timeseries data with only a few periods. It is intended for estimating season, trend, and level when initializing structural timeseries models like Holt-Winters. Input samples are assumed evenly-spaced from a continuous real-valued signal with noise but no anomalies.

The seasonal estimate will be a list of period-over-period averages at each seasonal offset. You may specify a period length, or have it estimated from the data. The latter is an interesting capability of this package.

Trend removal in this package is in service of isolating and estimating the periodic (non-trend) variation. A lowpass smoothing of the data is removed from the original series, preserving original seasonal variation. Detrending is accomplishd by a coarse fitted spline, mean or median filters, or a fitted line.

See https://github.com/welch/seasonal/README.md for details on installation, API, theory, and examples.

Dependencies

  • package: numpy, scipy

  • extras: pandas, matplotlib

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

seasonal-0.3.1-py2.py3-none-any.whl (18.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file seasonal-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for seasonal-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d96358c7e510926ebc11a72352d8dcf6d233256da9b796c3da028190616f1d26
MD5 cf7a535e866bcd22e63985cbf46b7aae
BLAKE2b-256 74ec1d6053a5bb05bf72a720772575b85a0a1599314e1ca2d6eba9000d75f4b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page