streaming#simpleLinearRegression

Parsed documentation:
View on GitHub
/**
*
* Linear Regression is determined incrementally with arrival of each pair of `x`
* and `y` values from the data stream.
*
* The [`compute()`](http://winkjs.org/wink-statistics/Stream.html#compute) requires
* two numeric arguments viz. `x` — independant variable and `y` — dependant variable.
*
* The [`result()`](http://winkjs.org/wink-statistics/Stream.html#result) returns
* an object containing `slope`, `intercept`, `r`, `r2`, `se` along with
* the `size` of data i.e. number of x & y pairs. It has an alias
* [`value()`](http://winkjs.org/wink-statistics/Stream.html#value).
*
* *In case of any error such as no
* input data or zero variance, correlation object will be an empty one*.
*
* @memberof streaming#
* @return {Stream} Object containing methods such as `compute()`, `result()` & `reset()`.
* @example
* var regression = simpleLinearRegression();
* regression.compute( 10, 80 );
* regression.compute( 15, 75 );
* regression.compute( 16, 65 );
* regression.compute( 18, 50 );
* regression.compute( 21, 45 );
* regression.compute( 30, 30 );
* regression.compute( 36, 18 );
* regression.compute( 40, 9 );
* regression.result();
* // returns { slope: -2.3621,
* //   intercept: 101.4188,
* //   r: -0.9766,
* //   r2: 0.9537,
* //   se: 5.624,
* //   size: 8
* // }
*/
No suggestions.
Please help! Open an issue on GitHub if this assessment is incorrect.