#!/usr/bin/awk -f

# Regression line: y = 1.087297381x + 171.260144376

{ xSum += $1; xSquaredSum += $1 * $1; xySum += $1 * $2; ySum += $2; ySquaredSum += $2 * $2 }
END { a = (xSum * ySum - NR * xySum) / (xSum * xSum - NR * xSquaredSum); print "y = " a "x + " (ySum - a * xSum) / NR }