Linear Module
Simple linear regression using straight lines: f(x) = a + bx.
Functions and values
| Function or value | Description |
Full Usage:
predict coef x
Parameters:
Coefficients
-
vector of coefficients, sorted as [intercept;slope]
x : float
-
x value of which the corresponding y value should be predicted
Returns: float
predicted y value with given coefficients at X=x
|
Equal to OLS.Linear.Univariable.predict!
Example
val xData: obj
val yData: obj
|
Full Usage:
theilEstimator xData yData
Parameters:
Vector<float>
-
vector of x values
yData : Vector<float>
-
vector of y values
Returns: Coefficients
vector of polynomial coefficients sorted as [intercept;constant;quadratic;...]
|
Not robust if data count is low! http://195.134.76.37/applets/AppletTheil/Appl_Theil2.html
Example
val xData: obj
val yData: obj
|
Full Usage:
theilSenEstimator xData yData
Parameters:
Vector<float>
-
vector of x values
yData : Vector<float>
-
vector of y values
Returns: Coefficients
vector of polynomial coefficients sorted as [intercept;constant;quadratic;...]
|
Not robust if data count is low!
Example
val xData: obj
val yData: obj
|
FSharp.Stats