this is an exceptionally optional note, added for completeness of discussion in other notes
Imagine you have a bunch of values of and which are related linearly, i.e. you want to find parameters and that would make as close to as possible.
You could do so using least squares method. In fact, this is exactly how Excel finds trend line for linear equations. Let’s denote individual data points , and there are such points. You can find optimal and as follows:
and