All Projects → jrmontag → Stldecompose

jrmontag / Stldecompose

Licence: mit
A Python implementation of Seasonal and Trend decomposition using Loess (STL) for time series data.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects
python2
120 projects

Projects that are alternatives of or similar to Stldecompose

Choochoo
Training Diary
Stars: ✭ 186 (+43.08%)
Mutual labels:  jupyter-notebook, statistics, time-series
Geostatspy
GeostatsPy Python package for spatial data analytics and geostatistics. Mostly a reimplementation of GSLIB, Geostatistical Library (Deutsch and Journel, 1992) in Python. Geostatistics in a Python package. I hope this resources is helpful, Prof. Michael Pyrcz
Stars: ✭ 200 (+53.85%)
Mutual labels:  jupyter-notebook, statistics, modeling
Fecon235
Notebooks for financial economics. Keywords: Jupyter notebook pandas Federal Reserve FRED Ferbus GDP CPI PCE inflation unemployment wage income debt Case-Shiller housing asset portfolio equities SPX bonds TIPS rates currency FX euro EUR USD JPY yen XAU gold Brent WTI oil Holt-Winters time-series forecasting statistics econometrics
Stars: ✭ 708 (+444.62%)
Mutual labels:  jupyter-notebook, statistics, time-series
Btctrading
Time Series Forecast with Bitcoin value, to detect upward/down trends with Machine Learning Algorithms
Stars: ✭ 99 (-23.85%)
Mutual labels:  jupyter-notebook, time-series
Stingray
Anything can happen in the next half hour (including spectral timing made easy)!
Stars: ✭ 94 (-27.69%)
Mutual labels:  jupyter-notebook, time-series
Online Recurrent Extreme Learning Machine
Online-Recurrent-Extreme-Learning-Machine (OR-ELM) for time-series prediction, implemented in python
Stars: ✭ 95 (-26.92%)
Mutual labels:  jupyter-notebook, time-series
Hyperlearn
50% faster, 50% less RAM Machine Learning. Numba rewritten Sklearn. SVD, NNMF, PCA, LinearReg, RidgeReg, Randomized, Truncated SVD/PCA, CSR Matrices all 50+% faster
Stars: ✭ 1,204 (+826.15%)
Mutual labels:  jupyter-notebook, statistics
Time Series Forecasting With Python
A use-case focused tutorial for time series forecasting with python
Stars: ✭ 105 (-19.23%)
Mutual labels:  jupyter-notebook, time-series
Hackermath
Introduction to Statistics and Basics of Mathematics for Data Science - The Hacker's Way
Stars: ✭ 1,380 (+961.54%)
Mutual labels:  jupyter-notebook, statistics
Isl Python
Porting the R code in ISL to python. Labs and exercises
Stars: ✭ 108 (-16.92%)
Mutual labels:  jupyter-notebook, statistics
Ml Dl Scripts
The repository provides usefull python scripts for ML and data analysis
Stars: ✭ 119 (-8.46%)
Mutual labels:  jupyter-notebook, statistics
Bayesian Cognitive Modeling In Pymc3
PyMC3 codes of Lee and Wagenmakers' Bayesian Cognitive Modeling - A Pratical Course
Stars: ✭ 93 (-28.46%)
Mutual labels:  jupyter-notebook, statistics
Awesome time series in python
This curated list contains python packages for time series analysis
Stars: ✭ 1,245 (+857.69%)
Mutual labels:  statistics, time-series
Machinelearning
A repo with tutorials for algorithms from scratch
Stars: ✭ 96 (-26.15%)
Mutual labels:  jupyter-notebook, modeling
Openml R
R package to interface with OpenML
Stars: ✭ 81 (-37.69%)
Mutual labels:  jupyter-notebook, statistics
Dmm
Deep Markov Models
Stars: ✭ 103 (-20.77%)
Mutual labels:  jupyter-notebook, time-series
Statespacemodels.jl
StateSpaceModels.jl is a Julia package for time-series analysis using state-space models.
Stars: ✭ 116 (-10.77%)
Mutual labels:  statistics, time-series
Deeptime
Deep learning meets molecular dynamics.
Stars: ✭ 123 (-5.38%)
Mutual labels:  jupyter-notebook, time-series
Teaching Monolith
Data science teaching materials
Stars: ✭ 126 (-3.08%)
Mutual labels:  jupyter-notebook, statistics
Datacamp
🍧 A repository that contains courses I have taken on DataCamp
Stars: ✭ 69 (-46.92%)
Mutual labels:  jupyter-notebook, statistics

STL Decompose

This is a relatively naive Python implementation of a seasonal and trend decomposition using Loess smoothing. Commonly referred to as an "STL decomposition", Cleveland's 1990 paper is the canonical reference.

This implementation is a variation of (and takes inspiration from) the implementation of the seasonal_decompose method in statsmodels <http://www.statsmodels.org/stable/generated/statsmodels.tsa.seasonal.seasonal_decompose.html#statsmodels.tsa.seasonal.seasonal_decompose>. In this implementation, the trend component is calculated by substituting a configurable Loess regression <https://en.wikipedia.org/wiki/Local_regression> for the convolutional method used in seasonal_decompose. It also extends the existing DecomposeResult from statsmodels to allow for forecasting based on the calculated decomposition.

Usage

The stldecompose package is relatively lightweight. It uses pandas.Dataframe for inputs and outputs, and exposes only a couple of primary methods - decompose() and forecast() - as well as a handful of built-in forecasting functions.

See the included IPython notebook <https://github.com/jrmontag/STLDecompose/blob/master/STL-usage-example.ipynb>_ for more details and usage examples.

Installation

A Python 3 virtual environment is recommended.

The preferred method of installation is via pip::

(env) $ pip install stldecompose

If you'd like the bleeding-edge version, you can also install from this Github repo::

(env) $ git clone [email protected]:jrmontag/STLDecompose.git 
(env) $ cd STLDecompose; pip install . 

More Resources

  • statsmodels Time Series analysis <http://www.statsmodels.org/stable/tsa.html>_ package
  • Hyndman's OTexts reference on STL decomposition <https://www.otexts.org/fpp/6/5>_
  • Cleveland et al. 1990 [pdf <https://www.wessa.net/download/stl.pdf>_]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].