Python implementation of the Chow test (1960).
Project description
Chow Test
This project provides an implementation of the Chow break test.
The Chow test was initially developed by Gregory Chow in 1960 to test whether one regression or two or more regressions best characterise the data. As such, the Chow test is capable of detecting "structural breaks" within time-series. Additional information can be obtained from:
This implementation supports simple linear models, and finding breaks where k = 2.
Installation
This module requires Python 3.+ to run.
Clone this repository, move to the directory, and install with pip.
git clone https://github.com/David-Woroniuk/chowtest.git
cd chowtest
pip install .
The code can subsequently be imported by:
import chowtest
Input Arguments
The required input arguments are listed below:
Argument | Description |
---|---|
y | dependent variable (Pandas DataFrame Column) |
X | independent variable(s) (Pandas Dataframe Column(s) |
last_index_in_model_1 | index of final point prior to assumed structural break (str) |
first_index_in_model_2 | index of first point following structural break (str) |
significance_level | the significance level for hypothesis testing (float) |
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 chowtest-0.1.0.tar.gz
.
File metadata
- Download URL: chowtest-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fdf2284d0045dd7b8282a4aef8ac00ebe9d7377390603831b87ac6a6f4c9712 |
|
MD5 | 59528df524083932f5a04cd6dc5180c2 |
|
BLAKE2b-256 | ecf716d9b09dea8e5aeb4bc29af8ace8120432bc5ddc93d430b2d95681a0b98f |
File details
Details for the file chowtest-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: chowtest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc9b7f8b6da03f69350df12c6040437814a8be55566452d6c07f3633f5f2586 |
|
MD5 | 83031f2bf9b5bba0e3c2940499dc6baa |
|
BLAKE2b-256 | 81660d0e4f96f75bf1b1518e2a6559e48f3880a32b64ee5f9083a355e49a625c |