Loss Fuction: by Fatema Khairunnasa Lecturer, Dept. of Statistics, Bsmrstu
Loss Fuction: by Fatema Khairunnasa Lecturer, Dept. of Statistics, Bsmrstu
By
Fatema Khairunnasa
Lecturer, Dept. of Statistics,
BSMRSTU
Loss Function
• In statistics, typically a loss function is used for parameter estimation, and the event
in question is some function of the difference between estimated and true values for
an instance of data. The concept, as old as Laplace, was reintroduced in statistics
by Abraham Wald in the middle of the 20th century.
• In the theory of point estimation, a loss function quantifies the losses associated to
the errors committed while estimating a parameter. Often the expected value of the
loss, called statistical risk, is used to compare two or more estimators: in such
comparisons, the estimator having the least expected loss is usually deemed
preferable.
• Definition: Let be an unknown parameter and an estimate of ..The
estimation error is the difference,
• Example: The loss function is a function mapping estimation errors to the set of real
numbers.
the absolute estimation error which coincides with the absolute value of
the error when the parameter is a scalar;
the squared estimation error which coincides with the square of the
error when the parameter is a scalar,
In both cases, the larger the estimation error is, the larger is the loss. The expected
value of the former is called mean absolute error (MAE), while the expectation of the
latter is known as mean squared error (MSE).
Lecture by Fatema Khairunnasa, Lecturer,
BSMRSTU
• Types of loss function
mean_squared_error, mean_absolute_error,
mean_absolute_percentage_error, mean_squared_logarithmic_error,
squared_hinge, Hinge, categorical_hinge, Logcosh,
categorical_crossentropy, sparse_categorical_crossentropy,
binary_crossentropy, kullback_leibler_divergence, Poisson,
cosine_proximity
• Symmetric vs. Asymmetric loss function: Symmetric
functions produce the same loss when underpredicting and
overpredicting of the same absolute error (i.e. amount of loss
same for the positive difference as well as negative diffrence).
However, an asymmetric loss function applies a different penalty
to the different directions of loss (i.e. for the positive difference
the amount of loss is totally different than that of negative
diffrence).