Lineare Regression

Aus Augenbit

Ein Beispiel für lineare Regression mit Maple: > restart; > with(stats): > with(stats[statplots]): > with(plots): > x_values:=[30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52]; > y_values:=[60, 63, 59, 70, 79, 81, 83, 90, 95, 95, 99, 105]; > linear_regression:=fit[leastsquare[[x, y], y = a*x + b, {a, b}]]([x_values, y_values]); linear_regression := y = 1231/572*x-2854/429