utils functions `xy_fit` and `formula_fit` added