A package to simulate autocorrelated time series of signs
Project description
tradeflow : generate autocorrelated time series of signs
tradeflow
lets you generate autocorrelated time series of signs.
Installation
pip install tradeflow
How to use
You can create an autoregressive model from a training time series of signs time_series_signs
:
>>> import tradeflow
>>>
>>> ar_model = tradeflow.AR(signs=time_series_signs, max_order=50, order_selection_method='pacf', information_criterion=None)
To fit the model parameters, you have to call the fit
function:
>>> ar_model.fit(method='yule_walker')
You can then easily simulate an autocorrelated time series of signs by calling the simulate
function:
>>> simulated_signs = ar_model.simulate(size=15, seed=1)
>>> print(simulated_signs)
Documentation
Read the full documentation here.
License
Copyright (c) 2024 Martin Gangand
Distributed under the terms of the MIT license.
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
tradeflow-0.0.5.tar.gz
(14.6 kB
view details)
Built Distribution
tradeflow-0.0.5-py3-none-any.whl
(18.3 kB
view details)
File details
Details for the file tradeflow-0.0.5.tar.gz
.
File metadata
- Download URL: tradeflow-0.0.5.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53890108b32b7782cbaf009f990cde70f8cde988031e4cbe0e8859620f99afaf |
|
MD5 | c7d6d8a61d2578c9ba86572a32d2ddb4 |
|
BLAKE2b-256 | 6b9a3685dfc8e1274923b2cba6aaeda31ac38508e6c32205f04b7b4637fb4196 |
File details
Details for the file tradeflow-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: tradeflow-0.0.5-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698475240ef655a4e59d907a241d2dff96c333d840a9aa67ab109fee924a051d |
|
MD5 | cf3f39a166ae51f62000907a9d0f9874 |
|
BLAKE2b-256 | 4f7b8e62ec5ac3d193be4350dd14183d1e4db463b69c16c6f4a21379e74f83c2 |