@adrn draft here: https://github.com/adrn/PrincetonStatsSeminar/blob/master/notebooks/Fitting%20a%20straight%20line%20to%20data%20-%20lecture%20notes.ipynb but it would need more astropy content.