Let us try to understand the least square fitting method using an example:

Example

—Utpal Kumar (IES,  Academia Sinica)