arx model fit with ols and nll
Project description
arxette
autoregressive model with exogeneous variables
install
$ pip install arxette
how to use
import numpy as np
from arx import ARX
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
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.1.1.tar.gz.
File metadata
- Download URL: arxette-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bb115d6784d4b47ec5d2ccc08240f1cafae73431dfa70082b7161777551d1e5
|
|
| MD5 |
b9f2fcf9bb5c70f4b6139384ba27305a
|
|
| BLAKE2b-256 |
9d4d4109787c94f0d62dc0ec935a0614dab40b14e059aba878f2fbd4ca118cb2
|
File details
Details for the file arxette-0.1.1-py3-none-any.whl.
File metadata
- Download URL: arxette-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b67f77057165432c5aa5cfec3f3cd126ca5ca446ce818794d022072a8a954cb0
|
|
| MD5 |
e08eb8e40b6fa0f886f4845695f30c59
|
|
| BLAKE2b-256 |
ee5c0970cfd2653b8f1758a1e61baaa3c3ad103624b3834f6963a0cba301cb6c
|