How to calculate mad in excel
Introduction
Mean Absolute Deviation (MAD) is a commonly used measure of dispersion in statistics. It is a simple yet effective method to measure the spread of data points around the mean value. In this article, we will discuss how to calculate MAD in Microsoft Excel using two different approaches: using the AVERAGE and ABS functions, and using an Excel add-in called Data Analysis ToolPak.
Method 1: Using AVERAGE and ABS Functions
1. Arrange your data: Create a new Excel sheet and arrange your data in a single column (Column A, for instance). Make sure you have clean data without any missing values.
2. Calculate the mean: In an empty cell, type =AVERAGE(A:A) to find the average of the data set. This formula computes the mean of all non-empty cells in column A.
3. Subtract the mean from each value: In Column B, type =A1-$C$1 (assuming you have calculated the mean in cell C1). This will subtract the mean from each cell in Column A. Drag down this formula to apply it to all values in column B.
4. Calculate absolute deviations: In Column C, type =ABS(B1) to get absolute deviations. This function transforms negative values into positive ones while leaving positive values unchanged. Drag down this formula to apply it to all cells in Column B.
5. Calculate MAD: In an empty cell, type =AVERAGE(C:C) to compute the MAD for your dataset. This will give you the average of absolute deviations in Column C.
Method 2: Using Data Analysis ToolPak Add-in
1. Install Data Analysis ToolPak: If you haven’t already done so, install the Data Analysis ToolPak add-in by clicking on File > Options > Add-Ins > Excel Add-ins > Check “Analysis ToolPak” > OK.
2. Access the add-in: Click on the Data tab from the Excel ribbon and choose “Data Analysis” within the “Analysis” group.
3. Define your data: In the Data Analysis dialog box, choose “Descriptive Statistics” and click “OK”, then select your data set by clicking on the “Input Range” field and highlighting the range in which your data is located.
4. Check statistics options: Make sure to check both “Summary statistics” and “Output Range”, then indicate an empty cell where you want to display the results.
5. Calculate MAD: Scroll through the results to find the mean, copy it, and then subtract that mean from each data value, following steps 3 to 5 of Method 1 above.
Conclusion
Calculating MAD in Excel is a simple process that can be done using basic Excel functions like AVERAGE and ABS or with the help of an add-in like Data Analysis ToolPak. With this knowledge, you can easily analyze your dataset for dispersion and better understand the spread of values around their average.