Skip to content
C

Problem 4: Visualize Outliers with a Boxplot

Easypython

Problem Description

Write a Python program that creates a boxplot for a given list of numbers using Matplotlib, to visually display the presence of any outliers.

Input

A list of numbers containing at least one clear outlier.

Output

A displayed boxplot showing the data's distribution and any outlier points.

Constraints

  • The list will contain at least 6 numbers.

Example Input

text
[15, 18, 16, 17, 19, 90]

Example Output

text
(A boxplot window showing most values clustered together, with 90 marked as an outlier point)

Concepts Covered

plt.boxplot(), visual outlier detection.

Input (stdin)

Output

Run your code to see output here...