chi squared distribution

This is a computed quantity, which measures the goodness-of-fit of a fitting function f to data. For example, if we have a set of data yi corresponding to values xi of a variable C, the chi-square is given by 

where si is the standard deviation of yi and a is a parameter in the function f(xi; a) which is varied to optimise the fit.