fuzzyclust.timeseries.fuzzy_variance#
- fuzzyclust.timeseries.fuzzy_variance(memberships, y)[source]#
Total fuzzy variance \(\sigma_t\) of
yover the fuzzy segments spanned by several inputs.The segments are the Cartesian product of the fuzzy sets of the chosen inputs; with the product conjunction the degree of a sample in segment \(i=(i_1,\dots,i_{n_i})\) is \(\beta_{ik}=\prod_j\mu^{j}_{i_j k}\) (already normalized, because the memberships of every input sum to one). Each segment is represented by the weighted mean \(b_i=\sum_k\beta_{ik}y_k/\sum_k\beta_{ik}\) and
\[\sigma_t=\sum_{k=1}^{N}\Big(y_k-\sum_{i}\beta_{ik}b_i\Big)^2,\]the squared error of the singleton fuzzy model defined by the segments.