Explanation#

Explaining segmentations and states.

A change point is useful when the analyst understands what changed. The functions below attribute changes to variables and describe segments and states in tables and rules:

  • boundary_contributions() – contribution of every variable to the change at every boundary: standardized mean shift, change of variance, change of the correlation structure (the contribution-plot idea of multivariate statistical process control applied to segmentation);

  • describe_segments() – per-segment statistics and local PCA summary;

  • explain_states() – a shallow decision tree that separates the states by the variables, turned into readable rules (the decision-tree analysis of operating regimes of Varga, Szeifert, Réti and Abonyi, 2007);

  • transition_graph() – the regime transition network (states as nodes, observed transitions as edges, with durations).

Variable contributions, segment tables, rules for states and transition networks.

Functions#

boundary_contributions(X, segmentation[, ...])

Contribution of the variables to every change.

describe_segments(X, segmentation[, names, ...])

Per-segment table: start, stop, length, state, means, standard deviations, slopes and the variance explained by the first principal components of the segment.

explain_states(X, labels[, names, ...])

Decision-tree explanation of state labels.

transition_graph(segmentation[, sampling_period])

Regime transition network of a state-labelled segmentation.