Two quick tests of the goodness of fit of the model to the data — how well does the model describe the data, given a particular estimate of the uncertainty in each data point? — are calculations of the residuals and the reduced chi-square value.

residuals

The calculation of the residual errors is easy once the model is defined and the fitting parameters determined.  Here is an example: