c********r 发帖数: 36 | 1 Dear all,
I have a vector X and want to calculate the sum of squared residuals (SSR)
at each data point.
SSR at data point m consists of two parts. The first part is the sum of
squared residuals for all data points before m, and the second part is the
sum of squared residuals for all data points after m (see below formula).
SSR(m) = sum_i (X_i - X1_bar)^2 + sum_j (X_j - X2_bar)^2, where i is from 0
to m and j is from m+1 to n. X1_bar and X2_bar are the means for each
segment.
I will get one SSR |
|