TECHNOLOGIESTieInn Technologies

Distributions, skew, and outliers

Statistics · 13 questions

Short notes

Key idea

A distribution is the shape of the data: where values bunch up and how the tails stretch. Shape decides which summary to trust and how to spot values that don't belong.

Syntax

  • Histogram to see the shape; box plot to see median, IQR and outliers.
  • Normal: symmetric bell; about 68% within 1 SD, 95% within 2, 99.7% within 3.
  • Right skew: long tail to the right, mean > median (income, order values).
  • Left skew: long tail to the left, mean < median (exam marks in an easy test).
  • IQR rule for outliers: below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
  • z-score = (x − mean) / SD; |z| > 3 is unusual.

Example

Order values: Q1 = ₹400, Q3 = ₹1,200, IQR = 800. The upper fence is 1,200 + 1,200 = ₹2,400; an order of ₹9,000 is flagged as an outlier to check.

Traps

  • An outlier isn't automatically an error. A bulk order is real; a negative age is not. Investigate before deleting.
  • z-scores assume a roughly normal shape; use the IQR rule for skewed data.
  • Bin width changes how a histogram looks; try a few.

Want the full lesson with step-by-step examples, a project and a certificate? Statistics course, ₹120 →

Questions

Open in Code Lab5 free questions
5 questions

    Distributions, skew, and outliers

  1. Question 1easy

    Order values have a long tail of a few very large orders. Which is true?

  2. Distributions, skew, and outliers

  3. Question 2easy

    In normally distributed data, roughly what share of values lie within 2 standard deviations of the mean?

  4. Distributions, skew, and outliers

  5. Question 3medium

    You find one order worth 20 times the median. What should you do first?

  6. Distributions, skew, and outliers

  7. Question 4medium

    What does this print?

    p = products["price"]
    q1, q3 = p.quantile(0.25), p.quantile(0.75)
    iqr = q3 - q1
    print(((p < q1 - 1.5 * iqr) | (p > q3 + 1.5 * iqr)).sum())
  8. Distributions, skew, and outliers

  9. Question 5hard

    On order amounts, the IQR rule flags 7 outliers but |z| > 3 flags only 1. Why?

8 more questions on this topic, with hints, and tests

Sign up free for 21 days of every question and test.