A loss function maps outcomes (or variable values) to a real-valued cost; optimization usually minimizes it, while objective functions may be maximized if they are the negative of loss (reward/utility).
In mathematical optimization and decision theory, a loss (or cost/error) function is a real-valued function that assigns a βcostβ to an event or to values of one or more variables. Optimization typically aims to minimize this loss. An objective function is closely related: in many settings it is either the loss itself or its opposite (e.g., reward/profit/utility/fitness), in which case the objective is maximized. In statistics, loss functions are commonly used for parameter estimation, where the βeventβ reflects the discrepancy between estimated and true values for observed data. The expected loss leads to decision criteria: in the frequentist framework, the expected loss over the sampling distribution is the risk function; in the Bayesian framework, the expectation is taken using a prior over parameters, producing the Bayes risk, which is minimized by the Bayes decision rule. Common examples include squared error loss (used in least squares) and 0β1 loss (used in classification). Selecting an appropriate loss function depends on the practical consequences of being wrong and on desired mathematical properties (e.g., continuity/differentiability), with real-world costs often being asymmetric or non-smooth.
A loss function maps outcomes (or variable values) to a real-valued cost; optimization usually minimizes it, while objective functions may be maximized if they are the negative of loss (reward/utility).
Frequentist expected loss yields a risk function (expectation over data given parameters), while Bayesian expected loss yields Bayes risk (expectation over parameters using a prior), minimized by the Bayes decision rule.
Different loss functions (e.g., squared error, absolute error, 0β1 loss) encode different notions of error and can change which estimators/decision rules are optimal; practical cost considerations and mathematical tractability both influence the choice.
A function that maps an event or variable values to a real number representing the cost associated with that event.
A scalar function to optimize, which may be a loss function (minimize) or its opposite such as a reward/utility (maximize).
The expected value of the loss over the sampling distribution of the observed data given a parameter value.
The expected loss averaged over both the prior distribution of parameters and the distribution of data, minimized by the Bayes decision rule.
The action/decision that minimizes Bayes risk, equivalently minimizing posterior risk under the observed data.
A classification loss that is 0 when the prediction is correct and 1 when it is incorrect.
A loss proportional to the square of the difference between a target value and an estimate, commonly used in least squares.
βCan you explain what "A loss function maps outcomes (or variable values) to a real-valued cost; optimization usually minimizes it, while objective functions may be maximized if they are the negative of loss (reward/utility)." means in simple terms?β