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.- window
int,optional Compare only
windowsamples on each side of the boundary (default: the whole adjacent segments).
- Returns:
pandas.DataFrameOne row per change point, one column per variable (rows sum to 1).