Section B, Problem 2

Wrote out a series of functions to calculate errors and fit statistics.