Bad data such as outliers, noise, or drift can affect regression results. It is preferable to remove the bad data, but it is challenging to remove all bad data. This exercise demonstrates how to use an l1-norm objective to minimize the effect of a few outliers in the data with Python Gekko.
Source code: https://apmonitor.com/do/index.php/Ma...