Calculating Line of Best Fit and Correlation from a Sample