LearnViz CompSci
Home / Learn / Math for Computing / Mean, Median and Mode

Beginner Topic 14 of 51 Math for Computing

Mean, Median and Mode

Common measures of central tendency.

How it works

The mean is the arithmetic average, the sum of values divided by their count; the median is the middle value when sorted, or the average of the two middle ones, splitting the data in half; and the mode is the most frequent value. They describe the center of data in different ways: the mean uses all values and is sensitive to outliers, the median is robust and the mode suits categorical data. In skewed distributions, the mean is pulled toward the tail, so mean, median and mode differ.

Where it is used

Summarizing data in reports, income and house prices where medians are used, response times with percentiles, grading and statistics in data analysis use these measures.

Common pitfall

Using the mean for skewed data such as incomes gives a misleading sense of typical values. Averages of averages are wrong when group sizes differ, so weight them. Multiple modes or none can exist. Median needs sorting or selection algorithms. Choose the measure that fits the distribution and report spread alongside it.

Where it fits in the course

Mean, Median and Mode is topic 14 of 51 in Math for Computing, rated Beginner. It follows Expected Value. The next topic is Variance and Standard Deviation.

Practice and explore

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Math for Computing quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is Mean, Median and Mode?
Common measures of central tendency. It belongs to Math for Computing and is a beginner-level topic.
Where do people use Mean, Median and Mode?
Summarizing data in reports, income and house prices where medians are used, response times with percentiles, grading and statistics in data analysis use these measures.
What is the most common mistake with Mean, Median and Mode?
Using the mean for skewed data such as incomes gives a misleading sense of typical values.
What should I learn before this topic?
Start with Expected Value, the topic just before it in Math for Computing.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Math for Computing quiz.
Is Mean, Median and Mode hard to learn?
It is a Beginner topic, so it works as an entry point. If the terms are new, read the explanation twice and try the visualizer before the quiz.
How long does it take to learn Mean, Median and Mode?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Mean, Median and Mode?
Expected Value, Variance and Standard Deviation, Random Variables are closely connected. The full list is in the related topics section of this page.
What should I study after Mean, Median and Mode?
Continue with Variance and Standard Deviation, the next topic in Math for Computing.

Related topics