Coverage for src / ts_stat_tests / correlation / __init__.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.13.2, created at 2026-02-01 09:48 +0000

1# ============================================================================ # 

2# # 

3# Title: Correlation Module # 

4# Purpose: Correlation algorithms and tests for time series analysis. # 

5# # 

6# ============================================================================ # 

7 

8 

9# ---------------------------------------------------------------------------- # 

10# # 

11# Overview #### 

12# # 

13# ---------------------------------------------------------------------------- # 

14 

15 

16# ---------------------------------------------------------------------------- # 

17# Description #### 

18# ---------------------------------------------------------------------------- # 

19 

20 

21""" 

22!!! note "Summary" 

23 This module provides a suite of algorithms and tests to assess correlation in time series data. It includes functions to compute the Autocorrelation Function (ACF), Partial Autocorrelation Function (PACF), Cross-Correlation Function (CCF), and various statistical tests such as the Ljung-Box test, Lagrange Multiplier test, and Breusch-Godfrey LM test. 

24 

25 The module is structured into two main submodules: 

26 - `algorithms`: Contains implementations of correlation algorithms. 

27 - `tests`: Contains statistical tests for evaluating correlation. 

28 

29 Each function is designed to handle time series data efficiently, providing insights into the correlation structure of the data. 

30""" 

31 

32 

33# ---------------------------------------------------------------------------- # 

34# # 

35# Setup #### 

36# # 

37# ---------------------------------------------------------------------------- # 

38 

39 

40# ---------------------------------------------------------------------------- # 

41# Imports #### 

42# ---------------------------------------------------------------------------- # 

43 

44 

45# ## Local First Party Imports ---- 

46from ts_stat_tests.correlation.algorithms import acf, bglm, ccf, lb, lm, pacf 

47from ts_stat_tests.correlation.tests import correlation, is_correlated 

48 

49 

50# ---------------------------------------------------------------------------- # 

51# Exports #### 

52# ---------------------------------------------------------------------------- # 

53 

54 

55__all__: list[str] = ["acf", "pacf", "ccf", "lb", "lm", "bglm", "correlation", "is_correlated"]