> For the complete documentation index, see [llms.txt](https://time-series-features.gitbook.io/pyspi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://time-series-features.gitbook.io/pyspi/welcome-to-pyspi.md).

# Welcome to pyspi

*pyspi (\`pie-spy\`)* is a comprehensive python library for computing hundreds of statistics of pairwise interactions (SPIs) directly from multivariate time series (MTS) data.

## *pyspi* features

* Easy access to over **250 statistics** for quantifying the relationship between a pair of time series.
* **Open source**, easy-to-use framework.
* **Comprehensive** across statistics for pairwise interactions, including information theoretic, causal inference, distance similarity, and spectral measures.
* Compute **hundreds** of SPIs on your multivariate time-series data in just a few **lines of code**.

## Getting Started

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Installation</strong></td><td align="center">Install <em>pyspi</em> on your system.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2FA4eFEFHy0kykFL2NRryO%2Finstall_light.png?alt=media&amp;token=53c64f2d-9c72-4619-9556-5c062a127920">install_light.png</a></td><td><a href="/pyspi/installing-and-using-pyspi/installation.md">Installation</a></td></tr><tr><td align="center"><strong>Start Here</strong></td><td align="center">Get started using <em>pyspi</em> quickly.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2FXHRXpyjHYK5JXL3fuR5I%2Fgetting_started_light.png?alt=media&amp;token=9a06e27b-f191-4323-9365-ba66e2c3805f">getting_started_light.png</a></td><td><a href="/pyspi/installing-and-using-pyspi/usage/walkthrough-tutorials/getting-started-a-simple-demonstration.md">Getting Started: A Simple Demonstration</a></td></tr><tr><td align="center"><strong>Examples</strong></td><td align="center"><em>pyspi</em> usage examples and tutorials.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2FFna7gvwPadZWqAPB3tXy%2Fexamples_light.png?alt=media&amp;token=7551a748-3fcc-4067-ad0e-17cc4e38200d">examples_light.png</a></td><td><a href="/pyspi/installing-and-using-pyspi/usage/walkthrough-tutorials.md">Walkthrough Tutorials</a></td></tr></tbody></table>

## SPI Descriptions

Want to know what each SPI in *pyspi* computes? Access a high level summary of SPIs with the summary table or delve into the specifics with detailed descriptions fo each.

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Summary Table</strong></td><td align="center">A table of SPIs included in <em>pyspi</em>.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2F1ambUsMQubpCbvigK87y%2Ftable_of_spis_light.png?alt=media&amp;token=bb8f44ef-2dbe-4ebd-814c-a52559949204">table_of_spis_light.png</a></td><td><a href="/pyspi/information-about-pyspi/spis/table-of-spis.md">Table of SPIs</a></td></tr><tr><td align="center"><strong>SPI Descriptions</strong></td><td align="center">Detailed descriptions of SPIs included in <em>pyspi</em>.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2F76XSpEgRLIh8X43yEkIg%2Fgot_light.png?alt=media&amp;token=eb21e79a-96f3-444f-992e-f7f3c2732d97">got_light.png</a></td><td><a href="/pyspi/information-about-pyspi/spis/spi-descriptions.md">SPI Descriptions</a></td></tr></tbody></table>

## Publications using *pyspi*

An ever-growing list of publications that use *pyspi.*

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>List of Publications</strong></td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2F49rxtR9XWTwONUm54cSV%2Fspi_descriptions_light.png?alt=media&amp;token=3ab75171-cc53-47d3-adc8-f3fed8767ab0">spi_descriptions_light.png</a></td><td><a href="/pyspi/information-about-pyspi/publications-using-pyspi.md">Publications using pyspi</a></td></tr></tbody></table>

***

## Additional Pages

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Advanced Usage</strong></td><td align="center">Advanced functionality in <em>pyspi.</em></td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2F0JhvQKE78RreySej26oP%2Fadv_usage_light.png?alt=media&amp;token=e9f3b942-f761-4357-bd73-1ad866e79e15">adv_usage_light.png</a></td><td><a href="/pyspi/installing-and-using-pyspi/usage/advanced-usage.md">Advanced Usage</a></td></tr><tr><td align="center"><strong>FAQ</strong></td><td align="center"><p>Frequently asked</p><p>questions.</p></td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2FHJwemK1ouwxtgW3FRaxL%2FFAQ_light.png?alt=media&amp;token=a743ce6c-7953-4900-a185-646ca87da9ff">FAQ_light.png</a></td><td><a href="/pyspi/installing-and-using-pyspi/usage/faq.md">FAQ</a></td></tr><tr><td align="center"><strong>Development</strong></td><td align="center">Developers guide and contributions.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2FBs64rVVnZi5KVRE8I6Jh%2Fdev_light.png?alt=media&amp;token=33ad453d-7d76-49c5-8d10-f658b23276ce">dev_light.png</a></td><td><a href="/pyspi/development/development.md">Development</a></td></tr><tr><td align="center"><strong>API</strong></td><td align="center">A technical manual for <em>pyspi</em> functions and classes.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2FfUS7GmMTNnBRqhWJRiuc%2FAPI_light.png?alt=media&amp;token=1124caae-ee52-40b6-b92b-fef7a65ef4e1">API_light.png</a></td><td><a href="/pyspi/information-about-pyspi/api-reference.md">API Reference</a></td></tr><tr><td align="center"><strong>Troubleshooting</strong></td><td align="center">Troubleshooting guide for <em>pyspi</em> installation.</td><td><a href="https://636746764-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIw3ORxNbDkeyBcdB5svU%2Fuploads%2F1w7aPmEDoHaEzIlf2jnL%2Ftroubleshooting_vector_icon.png?alt=media&amp;token=efa7387a-bae2-4ab1-8631-5dc1cc0deedc">troubleshooting_vector_icon.png</a></td><td><a href="/pyspi/installing-and-using-pyspi/installation/troubleshooting.md">Troubleshooting</a></td></tr></tbody></table>

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://time-series-features.gitbook.io/pyspi/welcome-to-pyspi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
