LinearModelFit
LinearModelFit({{x1,y1},{x2,y2},...}, expr, symbol)Create a linear regression model from a matrix of observed value pairs
{x_i, y_i}.
LinearModelFit({y1,y2,y3,...}, expr, symbol)Create a linear regression model from a vector of observed value pairs
{{1.0, y1},{2.0, y2},{3.0, y3},...}.
See:
Examples
>> LinearModelFit({ { 1, 3 }, { 2, 5 }, { 3, 7 }, { 4, 14 }, { 5, 11 } },x,x) // Normal0.5+2.5*xRelated terms
Implementation status
- ✅ - full supported