Constructed by Thomas Mynors, based on AS S1 formulae

Online at __http://__

**Calculations:**

x y x ^{2}y ^{2}xy [] Totals:

Sxx = Σ(x ^{2}) - (Σx)^{2}/n- ^{2}/Syy = Σ(y ^{2}) - (Σy)^{2}/n- ^{2}/Sxy = Σ(xy) - ((Σx)(Σy))/n - ( x )/

r = Sxy = = () sqrt(SxxSyy) sqrt( x )

b = Sxy/Sxx = ' . $b . '

Further calculated values:

'; echo 'In the least squares regression line of y on x is y = a + bx,a = ' . (($sumy/$n)-($b*($sumx/$n))) . ''; } ?>