How are Z-scores used to detect outliers, and what are their assumptions, limitations and the masking effect?

Quick Overview

Asks how z-scores are used to flag outliers and what the method assumes about the data. Tests understanding of normality, how extreme values distort the mean and standard deviation, the masking effect, and robust alternatives for outlier detection.

How are Z-scores used to detect outliers, and what are their assumptions, limitations and the masking effect?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

Explain the concept of a Z-score and how it is used to detect outliers, including its assumptions, limitations, and the masking effect. ```hint Where the mean and SD come from The mean and standard deviation in the formula are computed from the same data that may contain the outliers. Think about what extreme values do to them. ``` ```hint Small samples Ask how large |z| can possibly get in a sample of only ten points. ``` ### What a Strong Answer Covers - The definition of the z-score and how a threshold such as |z| > 3 turns it into an outlier rule - The assumptions behind that threshold and what goes wrong with skewed, heavy-tailed or small samples - Why extreme values distort the mean and standard deviation, and how that produces the masking effect - A robust alternative such as the modified z-score, and when to use it ### Follow-up Questions - With one million clean normal observations and a |z| > 3 rule, how many points would you expect to flag, and what does that mean for an alerting system? - How would you adapt the method for a daily metric with a trend and weekly seasonality? - How would you find points that look ordinary on every feature but are unusual in combination? - What is swamping, and how does it differ from masking?

Overview: Asks how z-scores are used to flag outliers and what the method assumes about the data. Tests understanding of normality, how extreme values distort the mean and standard deviation, the masking effect, and robust alternatives for outlier detection.

General logo
General
Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

Explain the concept of a Z-score and how it is used to detect outliers, including its assumptions, limitations, and the masking effect.

What a Strong Answer Covers Guidance

  • The definition of the z-score and how a threshold such as |z| > 3 turns it into an outlier rule
  • The assumptions behind that threshold and what goes wrong with skewed, heavy-tailed or small samples
  • Why extreme values distort the mean and standard deviation, and how that produces the masking effect
  • A robust alternative such as the modified z-score, and when to use it

Follow-up Questions Guidance

  • With one million clean normal observations and a |z| > 3 rule, how many points would you expect to flag, and what does that mean for an alerting system?
  • How would you adapt the method for a daily metric with a trend and weekly seasonality?
  • How would you find points that look ordinary on every feature but are unusual in combination?
  • What is swamping, and how does it differ from masking?