Skip to main content

tsqn (Python)

Python port of the original R package tsqn, providing robust time-series estimators based on the Qn scale estimator.

Features

  • Robust covariance and correlation:
    • covQn, corQn
    • covMatQn, corMatQn
  • Robust autocorrelation/autocovariance:
    • robacf
    • plot_robacf
  • Robust periodograms:
    • PerQn
    • PerioMrob
  • Long-memory estimation:
    • GPH_estimate

Install

pip install tsqn-python

Quick start

import numpy as np
from tsqn import covQn, corQn, robacf, GPH_estimate

rng = np.random.default_rng(42)
x = rng.normal(size=500)
y = 0.5 * x + rng.normal(size=500)

print(covQn(x, y))
print(corQn(x, y))

acf_out = robacf(np.column_stack([x, y]), lag_max=20, type="correlation", plot=False)
print(acf_out.acf.shape)  # (20, 2, 2)

print(GPH_estimate(x, method="GPH"))

Metadata

Release files for tsqn-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsqn-python 0.1.0
File Size Uploaded Provenance
tsqn_python-0.1.0.tar.gz 52.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tsqn-python 0.1.0
File Interpreter ABI Platform
tsqn_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 104.3 kB

Release files / tsqn_python-0.1.0.tar.gz

Download URL tsqn_python-0.1.0.tar.gz
Size 52.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f6f6eeda1f400b7d6b9948b42d91490cb09b675e0dd71206166edebe929c5be6
BLAKE2b-256 checksum
How to use checksums
b104ee9651b1a6b75263885116e25eb1c0c61e9d98827190d138880844f2527b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / tsqn_python-0.1.0-py3-none-any.whl

Download URL tsqn_python-0.1.0-py3-none-any.whl
Size 52.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fadb45c861ea25b206337fe438200e4f50a7358bcd21e4890f10c379d867b675
BLAKE2b-256 checksum
How to use checksums
24b0b42303e68f4b44cee4c2406f7f69fcf6b57874dc2230c3d30e3670d775c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for tsqn-python 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page