How to use this calculator
Summarize matched prediction errors with their median absolute magnitude, which is less dominated by one extreme miss than squared-error measures.
- Enter Observed values, Predicted values. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Median absolute error calculator works
Summarize matched prediction errors with their median absolute magnitude, which is less dominated by one extreme miss than squared-error measures.
Inputs and units
- Observed values: Enter measured outcomes in case order.
- Predicted values: Enter predictions for those same cases in the same order; both lists must have equal length.
Formula and method
median absolute error = median(|yᵢ − ŷᵢ|)
Worked example
Observed 3, 5, 8, 12 and predicted 2, 8, 5, 10 give absolute errors 1, 3, 3, 2. Sorted errors are 1, 2, 3, 3, so the even-count median is (2+3)/2 = 2.5.
Interpreting the result
A value of 2.5 means half the absolute errors are at or below 2.5 response units and half at or above it, subject to ties.
Assumptions and limits
The error keeps the response's original unit and ignores direction. It does not reveal bias; inspect signed residuals separately. The median is robust to isolated extremes but can hide tail failures.
Sources and method
- Definitions and scale behavior for regression error metrics. scikit-learn model evaluation
Frequently asked questions
Why is the result 2.5 for four errors?
For an even number of observations, this calculator averages the two central sorted absolute errors: 2 and 3.
Does median absolute error show whether predictions are too high?
No. Taking absolute values removes direction; compare signed residuals to assess bias.
How do I use the Median absolute error calculator?
Enter Observed values, Predicted values. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Median absolute error?
Observed 3, 5, 8, 12 and predicted 2, 8, 5, 10 give absolute errors 1, 3, 3, 2. Sorted errors are 1, 2, 3, 3, so the even-count median is (2+3)/2 = 2.5.
What does the Median absolute error calculator calculate?
Summarize matched prediction errors with their median absolute magnitude, which is less dominated by one extreme miss than squared-error measures.