Linear regression, inferring parameters from data

If trying to build a model for a line to divide two different population clusters given by one data set of x and y.

I’ve already fitted a line to one of the populations given the dividing line parameters but my next task is to instead, infer these parameters from only the data.

If this is easy enough to be done (I’m completely new to PYMC so I’m not sure how complex this will get) , I’m also wanting to, using that inferred dividing line, to fit lines to the now separated populations.

Thank you!

1 Like

Sounds like a 2-step process (at least). For the “dividing” part, I might suggest checking out this notebook.