Can anyone point me to a simple linear regression algorithm. Nothing fancy, just best fit linear regression line for a set of X/Y coordinates using least squares. C# preferred, but I'll take what I can get.

Thanks in advance.

Sean