One of the most common questions I get in my Linear Regression class is, "What if we use the absolute error instead of the squared error?"

The answer is: this is entirely possible, but it requires an entirely different solution method.

These techniques are not usually taught in machine learning, yet they are essential to many fields such as operations research, quantitative finance, engineering, manufacturing, logistics, and more.

The main technique we will learn how to apply is called Linear Programming.

We will study several alternative loss functions for linear models, such as the L1 (absolute) loss, maximum absolute deviation (MAD), and the exponential loss for when you want your error to be positive-only or negative-only.

These techniques are part of a broader field of study known as**convex optimization**.

I hope you will join me in learning this essential skill for today's data science and quantitative professionals.

See you in class!

Suggested Prerequisites:

The answer is: this is entirely possible, but it requires an entirely different solution method.

These techniques are not usually taught in machine learning, yet they are essential to many fields such as operations research, quantitative finance, engineering, manufacturing, logistics, and more.

The main technique we will learn how to apply is called Linear Programming.

We will study several alternative loss functions for linear models, such as the L1 (absolute) loss, maximum absolute deviation (MAD), and the exponential loss for when you want your error to be positive-only or negative-only.

These techniques are part of a broader field of study known as

I hope you will join me in learning this essential skill for today's data science and quantitative professionals.

See you in class!

Suggested Prerequisites:

- calculus
- matrix arithmetic (adding, multiplying)
- probability
- be able to derive linear regression on paper and code linear regression in Python
- Python coding: if/else, loops, lists, dicts, sets
- Numpy coding: matrix and vector operations, loading a CSV file

- Introduction and Outline (03:59) (FREE preview available)
- Least Squares Review (09:00)

- Linear Programming Example (08:21)
- Linear Programming Example in Code (04:57)
- Absolute Error (L1 Loss) Maximum Likelihood (03:02)
- Absolute Error (L1 Loss) Linear Program (08:03)
- Absolute Error (L1 Loss) Code (06:01)
- Maximum Absolute Deviation Theory (05:05)
- Maximum Absolute Deviation Code (02:45)
- Exponential Maximum Likelihood (04:39)
- Exponential Linear Program (07:32)
- Exponential Code (04:03)

- Linear Programming Example Notebook
- Linear Programming Linear Regression Notebook