Git Product home page Git Product logo

python-time-series-handbook's Introduction

Time Series Analysis with Python


๐Ÿ“š Read it as a book

This is the collection of notebooks for the course Time Series Analysis with Python. You can view and execute the notebooks by clicking on the links below.

More info about the course is here.

๐Ÿ“‘ Content

  1. Introduction to time series analysis

    • Definition of time series data
    • Main applications of time series analysis
    • Statistical vs dynamical models perspective
    • Components of a time series
    • Additive vs multiplicative models
    • Time series decomposition techniques

    nbviewer or Open In Colab


  1. Stationarity in time series

    • Stationarity in time series
    • Weak vs strong stationarity
    • Autocorrelation and autocovariance
    • Common stationary and nonstationary time series
    • How to identify stationarity
    • Transformations to achieve stationarity

    nbviewer or Open In Colab


  1. Smoothing

    • Smoothing in time series data
    • The mean squared error
    • Simple average, moving average, and weighted moving average
    • Single, double, and triple exponential smoothing

    nbviewer or Open In Colab


  1. AR-MA

    • The autocorrelation function
    • The partial autocorrelation function
    • The Auto-Regressive model
    • The Moving-Average model
    • Reverting stationarity transformations in forecasting

    nbviewer or Open In Colab


  1. ARMA, ARIMA, SARIMA

    • Autoregressive Moving Average (ARMA) models
    • Autoregressive Integrated Moving Average (ARIMA) models
    • SARIMA models (ARIMA model for data with seasonality)
    • Automatic model selection with AutoARIMA
    • Model selection with exploratory data analysis

    nbviewer or Open In Colab


  1. Unit root test and Hurst exponent

    • Unit root test
    • Mean Reversion
    • The Hurst exponent
    • Geometric Brownian Motion
    • Applications in quantitative finance

    nbviewer or Open In Colab


  1. Kalman filter

    • Introduction to Kalman Filter
    • Model components and assumptions
    • The Kalman Filter algorithm
    • Application to static and dynamic one-dimensional data
    • Application to higher-dimensional data

    nbviewer or Open In Colab


  1. Signal transforms and filters

    • Introduction to Fourier Transform, Discrete Fourier Transform, and FFT
    • Fourier Transform of common signals
    • Properties of the Fourier Transform
    • Signal filtering with low-pass, high-pass, band-pass, and bass-stop filters
    • Application of Fourier Transform to time series forecasting

    nbviewer or Open In Colab


  1. Prophet

    • Introduction to Prophet for time series forecasting
    • Advanced modeling of trend, seasonality, and holidays components
    • The Prophet library in Python

    nbviewer or Open In Colab


  1. Neural networks and Reservoir Computing

    • Windowed approaches and Neural Networks for time series forecasting
    • Forecasting with a Multi Layer Perceptron
    • Recurrent Neural Networks: advantages and challenges
    • Reservoir Computing and the Echo State Network
    • Dimensionality reduction with Principal Component Analysis
    • Forecasting electricity consumption with Multi Layer Perceptron and Echo State Network

    nbviewer or Open In Colab


  1. Non-linear time series analysis

    • Dynamical systems and nonlinear dynamics
    • Bifurcation diagrams
    • Chaotic systems
    • High-dimensional continuous-time systems
    • Fractal dimensions
    • Phase space reconstruction and Taken's embedding theorem
    • Forecasting time series from nonlinear systems

    nbviewer or Open In Colab


  1. Time series classification and clustering

    • Multivariate time series
    • Time series similarities and dissimilarities
    • Dynamic Time Warping
    • Time series kernels
    • Embedding time series into vectors
    • Classification of time series
    • Clustering of time series
    • Visualize time series with kernel PCA

    nbviewer or Open In Colab


๐Ÿ’ป How to code locally

To run the notebooks locally the recommended steps are the following:

  1. Download and install Miniconda.

  2. Download the env.yml file.

  3. Open the shell and navigate to the location with the yml file you just downloaded.

    • If you are on Windows, open the Miniconda shell.
  4. Install the environment with

    > conda env create -f env.yml
    
  5. Activate your environment:

    > conda activate pytsa
    
  6. Go to the folder with the notebooks

  7. Launch Jupyter Lab with the command

    > jupyter lab
    

๐ŸŽฅ Notebook format and slides

The notebooks are structured as a sequence of slides to be presented using RISE. If you open a notebook you will see the following structure:

The top-right button indicates the type of slide, which is stored in the metadata of the cell. To enable the visualization of the slide type you must first install RISE and then on the top menu select View -> Cell Toolbar -> Slieshow. Also, to split the cells like in the example, you must enable Split Cells Notebook from the nbextensions.

By pressing the Enter\Exit RISE Slideshow button at the top you can enter the slideshow presentation.

See the RISE documentation for more info.

python-time-series-handbook's People

Contributors

filippomb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.