- Implemented chi-square as a function of a model parameter