Skip to main content

A Python package for Quandt-Likelihood Ratio (QLR) structural break tests.

Project description

pyqlrtest

PyPI version License: MIT CI pyqlrtest is a Python package for performing Quandt-Likelihood Ratio (QLR) tests, also known as sup-F tests, to detect structural breaks in time series regression models. This test is crucial for identifying points in time where the parameters of a model may have changed.

The implementation calculates F-statistics across a trimmed range of potential breakpoints and uses Hansen's (1997, 2000) approximations for asymptotic p-values.

Features

  • Calculation of QLR (sup-F) statistic.
  • Estimation of the most likely breakpoint.
  • Asymptotic p-value calculation using Hansen's (1997, 2000) method.
  • Approximated critical values based on Andrews (2003) for 15% trimming.
  • Supports numpy arrays and pandas Series/DataFrames as input.
  • Flexible trimming parameter.

Installation

You can install pyqlrtest using pip (once it's published to PyPI):

pip install pyqlrtest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqlrtest-0.1.1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyqlrtest-0.1.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file pyqlrtest-0.1.1.tar.gz.

File metadata

  • Download URL: pyqlrtest-0.1.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqlrtest-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8b7447cfe4d3529602d0d56aa4e1129e8c95e6e4ba8a4675687a8fc8598e593e
MD5 a968311804231de74420d0558f8b0842
BLAKE2b-256 1158d0d516b294e828d45f63524d8190b08ab1d66c7e60067996e8c82e2fe4a6

See more details on using hashes here.

File details

Details for the file pyqlrtest-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyqlrtest-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyqlrtest-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 741925f215d8df0dc6de7f1afad4f19701ae808438141e2aeacedd7dff46137f
MD5 2191db7aba4d732249f1976720b4d8eb
BLAKE2b-256 73e905ff6d5508d850e77e99728c3922afbeee67140eb258cb979e39df56c136

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page