Question: Regression and Data Fitting

I have something like this:

months := Vector([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
values:= Vector([45, 48, 53, 46, 41, 38, 35, 44, 50, 53, 55, 59]);
knots := ScatterPlot(months, values, style = point, symbol = asterisk, color = blue);
R:= LeastSquares(months, values, x);
curve1 := plot(R, x = 0 .. 12, y = 0 .. 70);
plots[display](knots, curve1);

 

R becomes

(459 / 11)  +  (243 / 286) * x
 

is it possible to work with the function R? I want to get the y value for specific x values.

For example:

x=1.5

(459/11)+(243/286)*1.5 = ?

Is it possible? If you need further information, please ask!!!

 

Thomas

Please Wait...