Robust time-series estimators based on the Qn scale estimator
Project description
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,corQncovMatQn,corMatQn
- Robust autocorrelation/autocovariance:
robacfplot_robacf
- Robust periodograms:
PerQnPerioMrob
- 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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tsqn_python-0.1.0.tar.gz
(52.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsqn_python-0.1.0.tar.gz.
File metadata
- Download URL: tsqn_python-0.1.0.tar.gz
- Upload date:
- Size: 52.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f6eeda1f400b7d6b9948b42d91490cb09b675e0dd71206166edebe929c5be6
|
|
| MD5 |
9c8716041a5da42080f917330fbf8ada
|
|
| BLAKE2b-256 |
b104ee9651b1a6b75263885116e25eb1c0c61e9d98827190d138880844f2527b
|
File details
Details for the file tsqn_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tsqn_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 52.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fadb45c861ea25b206337fe438200e4f50a7358bcd21e4890f10c379d867b675
|
|
| MD5 |
d8b81fc4d6088c0d474d39a1a9f656b7
|
|
| BLAKE2b-256 |
24b0b42303e68f4b44cee4c2406f7f69fcf6b57874dc2230c3d30e3670d775c8
|