These are some screenshots about how I create my linear regression.
You can do the same with your supernova or exoplanet downloading Rstudio clicking here.