UnivariateRegressionResult
Fitted univariate least-squares regression y = slope * x + intercept. Carries the marginal x / y variances and the raw weighted cross-deviation sxy so the result round-trips losslessly under merge regardless of penalty.
Constructors
Properties
Pearson correlation derived from R^2 and the sign of sxy. Reuses sst/sse rather than storing the raw quantity.
Weighted covariance sxy / totalWeights.
Number of features in weights.
Mean squared error: sse / totalWeights. Zero on an empty stream.
Unbiased sample standard deviation: sqrt([sampleVariance]).
Unbiased sample variance: [sst] / ([totalWeights] - 1). Zero when totalWeights <= 1.
Cumulative weight of observations folded into this result.
Fitted weight per feature, indexed by the same i as the input x[i].
Marginal statistics of the x stream.
Marginal statistics of the y stream.
UnivariateRegressionResult
correlation
Pearson correlation derived from R^2 and the sign of sxy. Reuses sst/sse rather than storing the raw quantity.
covariance
Weighted covariance sxy / totalWeights.
intercept
penalty
slope
sse
sst
sxy
totalWeights
Cumulative weight of observations folded into this result.
x
Marginal statistics of the x stream.
y
Marginal statistics of the y stream.