Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions outlier_detection.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Outlier Detection Tutorial

This notebook explains what outliers are and how to detect them using simple methods.

An outlier is a data point that is very different from other values in a dataset.
Outliers can affect model performance and data analysis.

import numpy as np
import pandas as pd

data = pd.DataFrame({
"values": [10, 12, 13, 14, 15, 100]
})

from scipy import stats

data["z_score"] = stats.zscore(data["values"])
data

#Z-score measures how far a value is from the mean.