fit_by_horizon function

Helper function that fits its each column of the matrix (horizon) to an observation model.