Challenge - 5 Problems
Anomaly Detection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:00remaining
What is the main goal of anomaly detection?
In simple terms, what does anomaly detection try to find in data?
Attempts:
2 left
❓ Predict Output
intermediate1:30remaining
Output of simple anomaly score calculation
Given the following Python code that calculates anomaly scores as the absolute difference from the mean, what is the output list?
ML Python
data = [10, 12, 10, 13, 100] mean = sum(data) / len(data) anomaly_scores = [abs(x - mean) for x in data] print([round(score, 2) for score in anomaly_scores])
Attempts:
2 left
❓ Model Choice
advanced1:30remaining
Best model choice for anomaly detection in high-dimensional data
You have a dataset with many features (dimensions) and want to detect anomalies. Which model is best suited?
Attempts:
2 left
❓ Metrics
advanced1:30remaining
Which metric is best to evaluate anomaly detection performance?
You have a model that flags anomalies. Which metric best measures how well it finds true anomalies without too many false alarms?
Attempts:
2 left
🔧 Debug
expert2:00remaining
Why does this Isolation Forest model fail to detect anomalies?
You trained an Isolation Forest model but it flags almost all points as normal. What is the most likely cause?
ML Python
from sklearn.ensemble import IsolationForest model = IsolationForest(contamination=0.1, max_samples=100) model.fit(data) preds = model.predict(data) print(sum(preds == -1)) # Count anomalies
Attempts:
2 left