mvtsa.explain.boundary_contributions#

mvtsa.explain.boundary_contributions(X, segmentation, kind='mean', names=None, window=None)[source]#

Contribution of the variables to every change.

Parameters:
kind{“mean”, “variance”, “correlation”, “all”}

"mean": \(\lvert\bar x_{right}-\bar x_{left}\rvert/s\) per variable; "variance": \(\lvert\log(s_{right}^2/s_{left}^2)\rvert\); "correlation": the row norms of the difference of the correlation matrices; "all": the three normalized to unit sum and added.

windowint, optional

Compare only window samples on each side of the boundary (default: the whole adjacent segments).

Returns:
pandas.DataFrame

One row per change point, one column per variable (rows sum to 1).

Examples using mvtsa.explain.boundary_contributions#

A one-page segmentation report

A one-page segmentation report

Explaining operating regimes

Explaining operating regimes