autoregressive fit
Project description
arxette
autoregressive model with exogeneous variables
install
$ pip install arxette
how to use
import numpy as np
from arxette import ARX, GARCH
y = np.random.randn(20)
x = np.random.randn(20,5)
mod = ARX()
mod.fit(y,x)
The fit method minimize the nll. Alternative one could use the OLS estimator with
mod.fit_ols(y,x)
Once the model is fit, one can inspect the fitted parameters
mod.params # nll
mod.params_ols # ols
test
To run the tests, install pytest and run
pytest
which tests that the params fit by both methods are pretty close.
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
arxette-0.2.0.tar.gz
(4.3 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 arxette-0.2.0.tar.gz.
File metadata
- Download URL: arxette-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5315ed1f64e8682577ec79186377dbd59ed7266a5b07cc533297c3cde3fd74e2
|
|
| MD5 |
36fc57dd046f2bf5bf07b2c820ca3d27
|
|
| BLAKE2b-256 |
003ffcc3a16e8fcfd5257cc0eaac221c5dad3f17eb6a1badd0a12d2a97aa7d39
|
File details
Details for the file arxette-0.2.0-py3-none-any.whl.
File metadata
- Download URL: arxette-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8c10c312db8f5781e3adc64ff390285f9a82e1be286451661d24045cdfcebe8
|
|
| MD5 |
211e68de6e5f5eb509184b3998f5e8d4
|
|
| BLAKE2b-256 |
e03ecee1bd53d41874e1c302bf054cf9b61ad1d7767bbebac994ee35293dbb9c
|