Skip to content

xkiwilabs/Linear-NonLinear-TSAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear and Non-Linear Time Series Analysis

Introduction

This tutorial provides examples of various linear and non-linear time series analyses for exploring the time-evolving nature of human behaviour in social and behavioural research. The goal of this tutorial is to give researchers the necessary tools and examples to perform comprehensive time series analysis using Python.

This tutorial is complemented by the following textbook chapter:

Macpherson, C., Richardson, M., & Kallen, R. W. (2024). Advanced quantitative approaches: Linear and non-linear time-series analyses. In Cambridge handbook of research methods and statistics for the social and behavioral sciences (Vol. 3). Cambridge University Press (CUP).

Tutorial Authors


Set-up Information

  • For novice users:
    • Please refer to the set up instructions for full details regarding how to set up the environment for this tutorial.
  • For users familiar with Python and Visual Studio Code:
    • VS Code is the recommended editor for this tutorial. To work with Jupyter notebooks in VS Code, ensure that the "Jupyter" extension has been installed.
    • The GitHub Repository can be cloned from here: https://github.com/xkiwilabs/Linear-NonLinear-TSAnalysis.git
    • To install the required dependencies, use:
      pip install -r requirements.txt 
    • This tutorial includes C++ extensions that need to be compiled before use. To compile the code, ensure you have a C++ compiler installed and then run:
      python setup.py build_ext --inplace

Content Overview

The tutorial is divided into the following sections:

  1. Recurrence Quantification Analysis
    • Categorical RQA: Learn about RQA for categorical data and its application in understanding the dynamics of categorical events.
    • Continuous RQA: Apply RQA to continuous time series data, providing insights into the temporal structure of continuous data.
    • Windowed (C)RQA: Understand how to apply RQA in a windowed manner to observe temporal changes in recurrence over time.
  2. Cross Recurrence Quantification Analysis
  3. Phase Space Reconstruction
  4. Fractal Analysis
    • Detrended Fluctuation Analysis (DFA): Learn about DFA, a method used to detect long-term statistical dependencies in time series data. DFA is particularly useful for analysing non-stationary processes where traditional methods may not apply.
    • Windowed DFA: Understand how to apply DFA in a windowed manner to assess how patterns of variability evolve over time.
    • Complexity Matching: Learn about various methods for capturing the alignment of variability across time series, also known as complexity matching.
  5. Linear Metrics: Examine the use of linear metrics to analyse and summarise time series characteristics.

We hope this tutorial serves as a helpful resource for delving into the world of using time series analysis in social and behavioural research. 


References

  • The code used to run RQA and CRQA in the tutorial can be found as a standalone Python package here: Recurrence Quantification Analysis.
  • To run MdRQA, this tutorial employs tools from PyRQA:
    • Rawald, T., Sips, M., & Marwan, N. (2017). PyRQA: Conducting recurrence quantification analysis on very long time series efficiently. Computers & Geosciences, 104, 101-108.

About

Examples of key analytical tools for exploring the time-evolving nature of human behavior in social and behavioral research.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors