← All tools
EDTOOLKITS GUIDES

Compare error objectives on the same residuals

By Team Edtoolkits · AI learning

Use absolute and squared error to see why a large miss can dominate a training objective.

Use the guide alongside the working tool.

Open Loss: Measuring Mistakes →

Explore the lesson

Watch the error bars shrink as the line improves.

Move the line yourself and watch the loss meter.

Flip the memory card and answer the quick check.

A comparison to try

For a hand-check, consider y equal to 2x through points 1,2; 2,4; 3,6. Raising the intercept to 3 gives mean absolute error 3 and mean squared error 9. In the lesson, compare these objectives on its fixed dataset.

Read the result

Squaring amplifies larger misses relative to smaller ones, while absolute loss grows linearly with error magnitude. The preferred fitted line can therefore depend on which errors the task considers costly.

A mistake to avoid

Loss values from different objectives have different units and scales. Do not compare 3 and 9 as though one run were automatically worse; compare models under the same objective and inspect unusual observations.

Teaching model and privacy

The data is ten invented dots and the model is a straight line, so you can see every error. Real losses work on millions of examples. Everything runs in your browser.

Ready to apply this workflow?

Try Loss: Measuring Mistakes →

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE