If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Mean absolute deviation (MAD) review

Mean absolute deviation

The mean absolute deviation of a dataset is the average distance between each data point and the mean. It gives us an idea about the variability in a dataset.
Here's how to calculate the mean absolute deviation.
Step 1: Calculate the mean.
Step 2: Calculate how far away each data point is from the mean using positive distances. These are called absolute deviations.
Step 3: Add those deviations together.
Step 4: Divide the sum by the number of data points.
Following these steps in the example below is probably the best way to learn about mean absolute deviation, but here is a more formal way to write the steps in a formula:
MAD=|xix¯|n

Example

Erica enjoys posting pictures of her cat online. Here's how many "likes" the past 6 pictures each received:
10, 15, 15, 17, 18, 21
Find the mean absolute deviation.
Step 1: Calculate the mean.
The sum of the data is 96 total "likes" and there are 6 pictures.
mean=966=16
The mean is 16.
Step 2: Calculate the distance between each data point and the mean.
Data pointDistance from mean
10|1016|=6
15|1516|=1
15|1516|=1
17|1716|=1
18|1816|=2
21|2116|=5
Step 3: Add the distances together.
6+1+1+1+2+5=16
Step 4: Divide the sum by the number of data points.
MAD=1662.67 likes
On average, each picture was about 3 likes away from the mean.
Want to learn more about mean absolute deviation? Check out this video.

Practice problem

The following table shows the number of lemons that grew on Mary's lemon tree each season.
SeasonNumber of lemons
Winter3
Spring15
Summer21
Fall13
Find the mean absolute deviation (MAD) of the data set.
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi
lemons

Want to practice more problems like these? Check out this exercise.

Want to join the conversation?

  • leaf red style avatar for user Hann
    I've learned how to find out the answers of variances, deviations, MADs. But, I don't understand what are these answers "saying", they're meaningless to me. Can anyone tell me what are these answers about?
    (10 votes)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user Greg
      Range, MAD, variance, and standard deviation are all measures of spread. They tell you how spread out the data are. Data that are very similar will have a small spread, whereas data that are wildly different from each other will have a large spread.

      Range and MAD are very basic measures. Since the variance takes the square of each deviation, large deviations (>1) will cause the variance to become very large indeed.
      (11 votes)
  • starky tree style avatar for user Carlos Kieliszewski
    Why is the MAD a part of so many everyday activities (Grocery store sales, average daily likes for a clip, etc.), but it isn't actually used everyday?
    (3 votes)
    Default Khan Academy avatar avatar for user
    • primosaur tree style avatar for user h.khanacademy.user
      It is so you can relate to what happens and aren't drowning in aerospace technicalities while learning statistics. While you would not actually calculate the MAD for fun, it is just so you have a bit more interest, as just having a set like Data Set A: [#, #, #, #]
      would make people even more bored than how often the likes on a cat video differ.
      (6 votes)
  • aqualine sapling style avatar for user Rajat
    What is Sample MAD
    Should we use the concept of dividing by n-1 for calculating the Mean Absolute Deviation of a Sample Data too? Why in the formula above in this article divides the sum of differences of individual data points from the sample mean by n, not n-1?
    (4 votes)
    Default Khan Academy avatar avatar for user
  • eggleston blue style avatar for user dena escot
    what is the difference between mean absolute deviation and variance?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • starky sapling style avatar for user Juliepotatoe83
    How can you tell if a data set is more widespread or clustered based off of the MAD?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • mr pants orange style avatar for user OJBear
    Ok, I'm a pretty fast learner and I even answer questions, but what is the formula in plain English? I always write formulas on sticky notes so I understand and remember them but I can't find a way to simplify the formula! HALP

    Thank you in advance

    ~Green Bear
    (1 vote)
    Default Khan Academy avatar avatar for user
  • aqualine ultimate style avatar for user Aditi
    Hey um I had this question in class and I had no idea how to do it: For which class would mean be a better indicator of a test score in the class

    Class A, Mean: 85.2%, MAD: 14
    Class B, Mean: 85.2%, MAD: 2

    pls help
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Marvin M. M. Museum
    i used to think MAD was the same as the mean... i was probably getting many questions incorrect haha
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user gheed msw
    what does the like E shaped symbol means in the above rule?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • starky seed style avatar for user Jonathan
    what sort of situations could we use mad in?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • boggle purple style avatar for user Simran
      The mean absolute deviation (MAD) is the mean (average) distance between each data value and the mean of the data set. It can be used to quantify the spread in the data set and also be helpful in answering statistical questions in the real world.
      Many professionals use mean in their everyday lives. Teachers give tests to students and then average the results to see if the average score was high, in between, or too low. Each average tells a story. Absolute deviation can further help to see the distance between each of the scores and the beginning average scores, since A small mean absolute deviation tells us that most of the data values are very close to the mean (since the expected distance from each data value to the mean is small).
      Got from Google. I am no expert.
      But I hope this helps!
      (1 vote)