fit_CM function

Fit conditioning model to historical data