scott wrote:
> The simplest form for you seems to be:
>
> b = (mean[x*y] - mean[x] * mean[y]) / ( mean[x^2] - mean[x]^2 )
>
> a = mean[y] - b * mean[x]
>
> then your line of best fit is:
>
> y = a + b*x
OK. I'll go see if I can get that to work...
Post a reply to this message
|