Phase 2 — Classical ML
June 1, 2026
Continue the course 3 of the Machine Learning Specialization(Anomaly Detection)
What I Did
Implemented a anomaly detection algorithm
What I Learned
Anomaly detection looks at unlabeled dataset of normal examples, learns what normal looks like, then flags new examples that looks different
We basically use density estimation to figure out which ones are anomalous and which ones are not
To do density estimation, we use the Gaussian distribution where the probability is:
For the anomaly detection algorithm, we do the following:
- Choose n features, each one where
- Fit parameters
- Given a new example x, we compute:
- Flag as anomalous if
We can evaluate the anomaly detection using a cross validation and testing set with labeled examples
We can also choose to use anomaly detection or supervised learning based on the problem we are trying to solve and what they of dataset is available to use.
Anomaly detection works best for fraud detection, manufacturing defects detection and monitoring machines in a data center while supervised learning works well for spam classification, weather prediction and disease classification
Bugs & Blockers
N/A
Concepts That Need More Time
N/A
Tomorrow
Continue the course 3 of the Machine Learning Specialization(Recommenders)
Wins
Implemented a anomaly detection algorithm