Effects of outliers on mean vs median

    Understanding Measures of Center

    When analyzing a dataset, measures of center help us understand the typical value. The two most common measures are the mean and the median. Understanding how each is calculated and, more importantly, how they respond to extreme values is crucial for AP Statistics.

    The Mean (Arithmetic Average)

    • The mean is calculated by summing all values in a dataset and dividing by the number of values.
    • Formula for sample mean (x̄): x̄ = (Σxᵢ) / n, where Σxᵢ is the sum of all observations and n is the number of observations.
    • The mean is often referred to as the "balancing point" of a distribution.

    The Median

    • The median is the middle value of a dataset when it is ordered from least to greatest.
    • If the number of observations (n) is odd, the median is the value at the ((n+1)/2)-th position.
    • If the number of observations (n) is even, the median is the average of the two middle values (at the n/2 and (n/2 + 1) positions).
    • The median divides the dataset into two equal halves, meaning 50% of the data falls below it and 50% falls above it.

    The Impact of Outliers

    An outlier is an observation point that is distant from other observations. In AP Statistics, outliers are typically defined as values that fall more than 1.5 times the Interquartile Range (IQR) below the first quartile (Q1) or above the third quartile (Q3).

    Effects on the Mean

    • The mean is sensitive to outliers. Because it incorporates every value in its calculation, a single extremely large or small value can pull the mean significantly in its direction.
    • Consider a dataset of salaries: $30k, $35k, $40k, $45k, $200k. The mean is $70k. If the $200k outlier were removed, the mean would drop significantly.
    • Due to this sensitivity, the mean is not a robust measure of center for skewed distributions or distributions with prominent outliers.

    Effects on the Median

    • The median is resistant to outliers. Its value depends only on the order of the data and the values of the middle one or two observations.
    • Using the same salary dataset: $30k, $35k, $40k, $45k, $200k. The ordered list is already given, and the median is $40k.
    • If the $200k were replaced by $500k, the median would still be $40k. Only if the outlier were so extreme as to change the ranking of the middle values would the median shift, and even then, only slightly.
    • Therefore, the median is a more appropriate measure of center for skewed distributions or distributions with outliers, as it provides a better sense of the typical value.

    Choosing the Right Measure

    The choice between the mean and the median depends on the shape of the distribution:

    • For symmetric distributions without outliers (e.g., a perfectly normal distribution), the mean and median will be approximately equal, and either can be used. The mean is generally preferred due to its greater statistical efficiency.
    • For skewed distributions (either left-skewed or right-skewed) or distributions with significant outliers, the median is the preferred measure of center because of its resistance to extreme values.

    Practice questions

    1

    Which measure of center is most affected by extreme values or outliers?

    2

    A dataset contains the values [10, 12, 15, 18, 100]. What happens to the median if 100 is changed to 1000?

    3

    In a right-skewed distribution, how does the mean typically relate to the median?

    4

    Why is the median often preferred over the mean for income data in highly unequal societies?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-1-exploring-one-variable-data/effects-of-outliers-on-mean-vs-median