liveBook · Manning

Error cost

As explained in Machine Learning System Design

The adverse value assigned to an incorrect prediction, which may differ according to the error's direction and magnitude.

Error cost is the adverse value assigned to an incorrect prediction. It depends not only on whether a prediction is wrong, but also on the error’s direction and magnitude. section 9.2.5

Use the cost of a mistake to decide which failure mode deserves priority:

  • Favor correctness when an inaccurate result is more dangerous than returning no result, as in medical or transport systems. section 2.4
  • Favor robustness when keeping the application running matters more than occasional inaccurate output, as with entertainment effects or consumer software. section 2.4
  • Treat overprediction and underprediction differently when their business consequences are unequal. section 9.2.5

Forecasting demand and creditworthiness

For demand forecasting, moderate overstocks may be preferable to missed profit, so underprediction deserves greater attention. For creditworthiness, underestimating a client may be safer than overestimating it. The preferred residual sign depends on the decision being supported. section 9.2.5

How Machine Learning System Design covers it

How deep it goes
Defines asymmetric costs and connects them to residual direction, magnitude, and correctness-versus-robustness choices.
Examples
Contrasts AR effects, medical and transport systems, demand forecasting, and creditworthiness decisions.
What you can do after
Evaluate predictions by direction and magnitude, then prioritize correctness or robustness according to real-world consequences.
How it connects
Connects error cost with correctness, robustness, regression, residuals, demand forecasting, and creditworthiness.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.