Memuat
Memuat
Outlier Detection (IQR and Isolation Forest) for Informatics and Information Systems
0 views
Inspect and improve the quality of sensor temperature data with sensor humidity and battery voltage using Outlier Detection (IQR and Isolation Forest), then assess the impact on analysis. Outlier detection with the IQR rule flags values beyond the quartile fences, while Isolation Forest isolates anomalous points in multivariate data. It is used to find extreme data before further analysis and decide how to treat them.

Inspect and improve the quality of sensor temperature data with sensor humidity and battery voltage using Outlier Detection (IQR and Isolation Forest), then assess the impact on analysis.
| Role | Variable | Unit |
|---|---|---|
| Main | Sensor temperature | °C |
| Supporting 1 | Sensor humidity | % |
| Supporting 2 | Battery voltage | V |
Of 230 observations, the IQR rule flags 18 and Isolation Forest flags 12 outliers in Sensor temperature; the two methods agree with a Jaccard index of 0.250.
Computed from illustrative synthetic data, not from a real study.
Outlier detection with the IQR rule flags values beyond the quartile fences, while Isolation Forest isolates anomalous points in multivariate data. It is used to find extreme data before further analysis and decide how to treat them.
Report the count and percentage of outliers per method with the reason for the chosen treatment. Show results with and without outliers when they matter.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
from sklearn.ensemble import IsolationForest
rng = np.random.default_rng(36)
n = 300
sensor_humidity = rng.normal(50, 5, n)
battery_voltage = 0.8 * sensor_humidity + rng.normal(0, 3, n)
sensor_humidity[:5] += 30 # inject univariate outliers
battery_voltage[5:8] -= 25 # inject multivariate outliers
sensor_temperature = np.column_stack([sensor_humidity, battery_voltage])
q1, q3 = np.percentile(sensor_humidity, [25, 75])
iqr = q3 - q1
lo, hi = q1 - 1.5 * iqr, q3 + 1.5 * iqr
mask_iqr = (sensor_humidity < lo) | (sensor_humidity > hi)
print("IQR fences:", round(lo, 2), round(hi, 2), "outliers:", int(mask_iqr.sum()))
iso = IsolationForest(contamination=0.03, random_state=36).fit(sensor_temperature)
mask_if = iso.predict(sensor_temperature) == -1
print("Isolation Forest outliers:", int(mask_if.sum()))
fig, ax = plt.subplots(1, 2, figsize=(10, 4))
ax[0].boxplot(sensor_humidity, vert=False); ax[0].set_title("x1 boxplot")
ax[1].scatter(sensor_humidity[~mask_if], battery_voltage[~mask_if], s=10, label="Normal")
ax[1].scatter(sensor_humidity[mask_if], battery_voltage[mask_if], c="r", s=25, label="Outlier")
ax[1].legend()
plt.tight_layout()
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$34
excl. 11% VAT
Duration: 7 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$97
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$216
excl. 11% VAT
Duration: 18-21 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Outlier Detection (IQR and Isolation Forest) is commonly used at this level in Informatics and Information Systems. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$34, Package 2 (your data analysis and interpretation) US$97 and Package 3 (full guidance) US$216, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio