Test and Convert non-stationary time-series to stationary
Project description
StationarityToolkit
The StationarityToolkit is a Python class designed to help you analyze and prepare time series data for stationarity. It offers a set of powerful tools for dealing with both trend and variance non-stationarity in your time series data. Below, we'll describe its key features and how to use them:
Features:
1. Test for Variance Non-Stationarity
- Use the Phillips-Perron test to assess variance non-stationarity in your time series data.
2. Test for Trend Non-Stationarity
- Employ the Augmented Dickey-Fuller (ADF) and Kwiatkowski-Phillips-Schmidt-Shin (KPSS) tests to identify trend non-stationarity.
3. Remove Trend Non-Stationarity
- Choose from various methods to eliminate trend non-stationarity, including trend differencing, seasonal differencing, or a combination of both.
4. Remove Variance Non-Stationarity
- Apply data transformations such as logarithm, square, or Box-Cox to address variance non-stationarity.
5. Remove Both Trend and Variance Non-Stationarity
- Combine the trend and variance non-stationarity removal techniques to make your time series data stationary.
How to Use:
-
Import the StationarityToolkit:
- Import the StationarityToolkit class in your Python script or Jupyter Notebook.
from StationarityToolkit import StationarityToolkit
-
Initialize the Toolkit:
-
Begin by creating an instance of the StationarityToolkit class, passing your time series data as an argument.
from StationarityToolkit import StationarityToolkit # Replace `your_time_series_data` with your actual time series data toolkit = StationarityToolkit(alpha)
- Test for Stationarity:
-
Utilize the toolkit's methods to assess stationarity in your time series data. The toolkit offers the following testing options:
toolkit.perform_pp_test() # Phillips-Perron Test for variance non-stationarity toolkit.adf_test() # Test for trend non-stationarity using ADF toolkit.kpss_test() # Test for trend non-stationarity using KPSS
These steps will help you get started with the StationarityToolkit and analyze your time series data for stationarity.
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
File details
Details for the file stationarityToolkit-0.0.1.tar.gz
.
File metadata
- Download URL: stationarityToolkit-0.0.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07627f187cbaeaab3d24d617a5280c2141794777f8625ae8c52eb74ae599d5dc |
|
MD5 | 61c976fb380e05f03704e003371e3a63 |
|
BLAKE2b-256 | 0bb6189dc2dc667e79e8c2fdadd16842b07b56d9a7ced84ad0133718525a2ca6 |
File details
Details for the file stationarityToolkit-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: stationarityToolkit-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58cff70a1c2f1896198652f4292fa8c5c749cee16844dafc90f60f7e259a893e |
|
MD5 | da0ea53e60ba4bc577961b547266fa85 |
|
BLAKE2b-256 | cd311ec874bbcd1869e35b61b673f0945b23ab83aaf65a8f9447197297c41d43 |