Software Open Access

# Nonlinear measures for dynamical systems

Schölzel, Christopher

### Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<dc:creator>Schölzel, Christopher</dc:creator>
<dc:date>2019-06-16</dc:date>
<dc:description>NOnLinear measures for Dynamical Systems (nolds)

Nolds is a small numpy-based library that provides an implementation and a learning resource for nonlinear measures for dynamical systems based on one-dimensional time series. Currently the following measures are implemented:

sample entropy (sampen)

Measures the complexity of a time-series, based on approximate entropy

correlation dimension (corr_dim)

A measure of the fractal dimension of a time series which is also related to complexity.

Lyapunov exponent (lyap_r, lyap_e)

Positive Lyapunov exponents indicate chaos and unpredictability. Nolds provides the algorithm of Rosenstein et al. (lyap_r) to estimate the largest Lyapunov exponent and the algorithm of Eckmann et al. (lyap_e) to estimate the whole spectrum of Lyapunov exponents.

Hurst exponent (hurst_rs)

The hurst exponent is a measure of the "long-term memory" of a time series. It can be used to determine whether the time series is more, less, or equally likely to increase if it has increased in previous steps. This property makes the Hurst exponent especially interesting for the analysis of stock data.

detrended fluctuation analysis (DFA) (dfa)

DFA measures the Hurst parameter H, which is very similar to the Hurst exponent. The main difference is that DFA can be used for non-stationary processes (whose mean and/or variance change over time).

Example

import nolds
import numpy as np

rwalk = np.cumsum(np.random.random(1000))
h = nolds.dfa(rwalk)

Requirements

Nolds supports Python 2 (&gt;= 2.7) and 3 (&gt;= 3.4) from one code source. It requires the package numpy.

These are the only hard requirements, but some functions will need other packages:

If you want to use the RANSAC algorithm for line fitting, you will also need the package sklearn.
For the true random numbers generated by nolds.qrandom you need the package quantumrandom.
The plotting functions in nolds.examples require the package matplotlib.

Installation

Nolds is available through PyPI and can be installed using pip:

pip install nolds

You can test your installation by running some sample code with:

python -m nolds.examples lyapunov-logistic

Alternatively, if you do not have matplotlib installed, you can run the unittests with:

python -m unittest nolds.test_measures

If you only have the download from this Zenodo publication available, you can unzip the archive and run the following command inside the folder:

python setup.py install

Documentation

Nolds is designed as a learning resource for the measures mentioned above. Therefore the corresponding functions feature extensive documentation that not only explains the interface but also the algorithm used and points the user to additional reference code and papers. The documentation can be found in the code, but it is also available as HTML-Version and on Read the Docs.

The relevant measures can be found in the file nolds/measures.py.

Contact information

If you have any questions, suggestions or corrections, you can find my current email address in my ORCID record.</dc:description>
<dc:identifier>https://zenodo.org/record/3814723</dc:identifier>
<dc:identifier>10.5281/zenodo.3814723</dc:identifier>
<dc:identifier>oai:zenodo.org:3814723</dc:identifier>
<dc:language>eng</dc:language>
<dc:relation>info:eu-repo/semantics/altIdentifier/url/https://github.com/CSchoel/nolds/releases/tag/0.5.2</dc:relation>
<dc:relation>doi:10.5281/zenodo.3814722</dc:relation>
<dc:rights>info:eu-repo/semantics/openAccess</dc:rights>
<dc:subject>dynamical systems</dc:subject>
<dc:subject>entropy</dc:subject>
<dc:subject>chaos</dc:subject>
<dc:subject>fractal dimension</dc:subject>
<dc:subject>lyapunov exponent</dc:subject>
<dc:subject>hurst exponent</dc:subject>
<dc:subject>detrended fluctuation analysis</dc:subject>
<dc:subject>sample entropy</dc:subject>
<dc:subject>correlation dimension</dc:subject>
<dc:subject>python</dc:subject>
<dc:title>Nonlinear measures for dynamical systems</dc:title>
<dc:type>info:eu-repo/semantics/other</dc:type>
<dc:type>software</dc:type>
</oai_dc:dc>

500
14
views