4.2 C
London
Friday, December 20, 2024
HomeSoftware TutorialsExcelHow to Calculate Mean Absolute Error in Excel (Step-by-Step)

How to Calculate Mean Absolute Error in Excel (Step-by-Step)

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

In statistics, the mean absolute error (MAE) is a way to measure the accuracy of a given model. It is calculated as:

MAE = (1/n) * Σ|yi – xi|

where:

  • Σ: A Greek symbol that means “sum”
  • yi: The observed value for the ith observation
  • xi: The predicted value for the ith observation
  • n: The total number of observations

The following step-by-step example shows how to calculate the mean absolute error in Excel.

Step 1: Enter the Data

First, let’s enter a list of observed and predicted values in two separate columns:

Note: Use this tutorial to if you need to learn how to use a regression model to calculate predicted values.

Step 2: Calculate the Absolute Differences

Next, we’ll use the following formula to calculate the absolute differences between the observed and predicted values:

Step 3: Calculate MAE

Next, we’ll use the following formula to calculate the mean absolute error:

Mean absolute error in Excel

The mean absolute error (MAE) turns out to be 2.5625.

This tells us that the average absolute difference between the observed values and the predicted values is 2.5625.

In general, the lower the value for the MAE the better a model is able to fit a dataset. When comparing two different models, we can compare the MAE of each model to know which one offers a better fit to a dataset.

Bonus: Feel free to use this Mean Absolute Error Calculator to automatically calculate the MAE for a list of observed and predicted values.

Additional Resources

How to Calculate MAPE in Excel
How to Calculate SMAPE in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories