Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Outliers, Anomalies, and Novelties: Key Differences | Foundations of Outlier and Novelty Detection
Outlier and Novelty Detection in Practice

bookOutliers, Anomalies, and Novelties: Key Differences

Understanding the differences between outliers, anomalies, and novelties is crucial for effective data-driven work. These terms are related but have distinct meanings that affect detection strategies:

  • Outlier: A data point that deviates sharply from the majority of the data, often due to measurement error or rare events within the existing data distribution. Example: In a dataset of human heights, a value of 2.5 meters is an outlier.
  • Anomaly: Any observation that does not fit expected patterns. This includes outliers but also unusual combinations or behaviors, such as a fraudulent transaction in banking data.
  • Novelty: A new or previously unseen pattern not present in the training data but appearing during deployment. Example: A sensor network trained on normal conditions detects a new type of failure—these readings are novelties.

Practical illustration:

  • In a manufacturing process, a single extreme temperature reading caused by a sensor glitch is an outlier;
  • A group of readings showing a new, never-seen failure mode are novelties;
  • A combination of pressure and temperature readings that never occurred together before is an anomaly.
Note
Note

Distinguishing outliers, anomalies, and novelties is crucial because each requires a different detection strategy and response. Outliers may indicate data quality issues or rare but valid events, anomalies can signal system malfunctions or security breaches, while novelties often point to emerging trends or previously unknown scenarios. Making the right distinction ensures you choose appropriate models and interpret results correctly in real-world applications.

1234567891011121314151617181920212223
import numpy as np import matplotlib.pyplot as plt # Generate normal data (blue dots) np.random.seed(42) normal_data = np.random.randn(100, 2) # Add outliers (red stars) outliers = np.array([[4, 4], [5, -3]]) # Add novelties (green triangles) - new pattern, far from normal data novelties = np.array([[-6, 6], [-7, 5]]) plt.figure(figsize=(7, 7)) plt.scatter(normal_data[:, 0], normal_data[:, 1], label="Normal", alpha=0.7) plt.scatter(outliers[:, 0], outliers[:, 1], color="red", marker="*", s=200, label="Outliers") plt.scatter(novelties[:, 0], novelties[:, 1], color="green", marker="^", s=150, label="Novelties") plt.legend() plt.title("Visualizing Outliers and Novelties in 2D Data") plt.xlabel("Feature 1") plt.ylabel("Feature 2") plt.grid(True) plt.show()
copy
question mark

A single transaction in a retail dataset has an amount 100 times larger than any previous transaction.

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 1

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Awesome!

Completion rate improved to 4.55

bookOutliers, Anomalies, and Novelties: Key Differences

Svep för att visa menyn

Understanding the differences between outliers, anomalies, and novelties is crucial for effective data-driven work. These terms are related but have distinct meanings that affect detection strategies:

  • Outlier: A data point that deviates sharply from the majority of the data, often due to measurement error or rare events within the existing data distribution. Example: In a dataset of human heights, a value of 2.5 meters is an outlier.
  • Anomaly: Any observation that does not fit expected patterns. This includes outliers but also unusual combinations or behaviors, such as a fraudulent transaction in banking data.
  • Novelty: A new or previously unseen pattern not present in the training data but appearing during deployment. Example: A sensor network trained on normal conditions detects a new type of failure—these readings are novelties.

Practical illustration:

  • In a manufacturing process, a single extreme temperature reading caused by a sensor glitch is an outlier;
  • A group of readings showing a new, never-seen failure mode are novelties;
  • A combination of pressure and temperature readings that never occurred together before is an anomaly.
Note
Note

Distinguishing outliers, anomalies, and novelties is crucial because each requires a different detection strategy and response. Outliers may indicate data quality issues or rare but valid events, anomalies can signal system malfunctions or security breaches, while novelties often point to emerging trends or previously unknown scenarios. Making the right distinction ensures you choose appropriate models and interpret results correctly in real-world applications.

1234567891011121314151617181920212223
import numpy as np import matplotlib.pyplot as plt # Generate normal data (blue dots) np.random.seed(42) normal_data = np.random.randn(100, 2) # Add outliers (red stars) outliers = np.array([[4, 4], [5, -3]]) # Add novelties (green triangles) - new pattern, far from normal data novelties = np.array([[-6, 6], [-7, 5]]) plt.figure(figsize=(7, 7)) plt.scatter(normal_data[:, 0], normal_data[:, 1], label="Normal", alpha=0.7) plt.scatter(outliers[:, 0], outliers[:, 1], color="red", marker="*", s=200, label="Outliers") plt.scatter(novelties[:, 0], novelties[:, 1], color="green", marker="^", s=150, label="Novelties") plt.legend() plt.title("Visualizing Outliers and Novelties in 2D Data") plt.xlabel("Feature 1") plt.ylabel("Feature 2") plt.grid(True) plt.show()
copy
question mark

A single transaction in a retail dataset has an amount 100 times larger than any previous transaction.

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 1
some-alt