Tutorials#

These tutorials walk you through using Pyriodic for circular data analysis, from getting started to phase diagnostics and circular statistics.

Overview of respiration data preprocessing and analysis
Overview of respiration data preprocessing and analysis

This tutorial covers a basic pipeline for preprocessing and analysis of respiration data collected during a experimental task. It introduces core `pyriodic` classes.

Methods for phase extraction from respiration data
Methods for phase extraction from respiration data

See notebook for details.

Descriptive statistics for circular data
Descriptive statistics for circular data

We will explore how to compute descriptive statistics for circular data using the Pyriodic package, and illustrate why we need special methods for circular data.

Permutation test against null distribution of respiratory phase angles
Permutation test against null distribution of respiratory phase angles

This notebook demonstrates how to make a permutation-based test to determine whether events (e.g., target stimuli) tend to occur at a specific phase of the respiratory cycle. As some phase angles are more common than others (exhalation tend to last longer than inspiration), we compare the observed phase angles at stimulus onset to a null distribution derived from the underlying respiratory signal.

Two sample permutation test of respiratory phase angles
Two sample permutation test of respiratory phase angles

This notebook runs permutation tests to compare two samples of respiratory phase angles. This is useful when you want to compare the phase angles of two different conditions or groups.

Why circular statistics matter - the case of respiratory signals
Why circular statistics matter - the case of respiratory signals

See notebook for details.

Test association with behavioural variable such as reaction time
Test association with behavioural variable such as reaction time

This notebook runs permutation tests to see whether there is a statistically significant relationship between the phase angle at which a target stimulus was presented and the response was given by the participant. The analysis is done for each participant separately, and the results are visualised in polar plots.

.. image:: /_images/01_intro.png :alt: preload .. image:: /_images/default.png :alt: preload .. image:: /_images/03_descriptive_stats.png :alt: preload .. image:: /_images/04_permutation_against_null.png :alt: preload .. image:: /_images/05_permutation_two_samples.png :alt: preload .. image:: /_images/06_why_circular_stats.png :alt: preload .. image:: /_images/07_association_with_behavioural_variable.png :alt: preload