Navigation
Synopsis Predict a value.
Function num predict(lrel[num,num] values, num x) throws IllegalArgument(value v, str message)
Usage import analysis::statistics::SimpleRegression;
Description Returns the "predicted" y value associated with the supplied x value, based on regression model derived from the provided data values:

predict(x) = intercept + slope * x
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.