Skip to content
CampusEduX

Problem 4: Outlier Detector Using Standard Deviation

Easypython
Learn the Concept: Basic Statistics

Problem Description

Write a Python program that identifies "outliers" in a dataset — any value that is more than 2 standard deviations away from the mean — and prints them.

Input

A list of numbers.

Output

A list of values considered outliers (more than 2 standard deviations from the mean).

Constraints

  • The list will contain at least 5 numbers.

Example Input

text
[10, 12, 11, 13, 12, 100]

Example Output

text
Outliers: [100]

Concepts Covered

Mean, standard deviation, conditionals, loops.

Related Problems

  • Problem 1: Manual Mean and Median Calculator
    Easy · python
    Solve Problem
  • Problem 2: Variance and Standard Deviation Calculator
    Easy · python
    Solve Problem
  • Problem 3: Find the Mode Manually
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...