In a little more detail, here’s how it works. For any given choice of the four parameters, we calculate the discrepancy (in other words, the error) between the sine-wave fit and the actual data at every one of the twenty-seven points recorded throughout the year.