9 tutorials· Ordered reading path
Unsupervised learning finds patterns without labels. This path covers the major clustering and mixture model techniques, from hard K-means assignments to soft probabilistic models.
You will see how the EM algorithm unifies several methods, how hidden Markov models extend clustering with memory, and how dimensionality reduction helps visualise high-dimensional clusters.
K-Means from scratch and its connection to GMMs through EM. Hard vs soft assignments, the distortion objective, and when each approach wins.
Learn the Expectation-Maximisation algorithm through the classic two-coin problem. Understand soft assignments, weighted MLE, and why EM always converges.
Implement Gaussian Mixture Models from scratch using the EM algorithm. Cluster Old Faithful eruptions and understand responsibilities and convergence.
Hidden Markov Models via the weather-umbrella analogy. Forward and Viterbi algorithms from scratch, stock market regime detection, and HMM vs K-Means.
PCA vs Fisher's LDA on the Iris dataset. When unsupervised reduction fails, why labels matter, and the eigenvalue problem behind both methods.
Probabilistic PCA as a latent variable model. EM-PCA, Bayesian PCA with ARD that picks dimensionality automatically, and Factor Analysis. From scratch in NumPy.
Build a recommender from scratch with the SVD: factorise a user-item ratings matrix, tune the rank, and beat mean baselines on real Jester data.
Build a Metropolis-Hastings sampler from scratch to infer hidden regimes in earthquake data. Full posterior distributions instead of point estimates.
Build three unsupervised anomaly detectors from scratch: Isolation Forest, One-Class SVM and an autoencoder. See why ROC-AUC lies on imbalanced fraud data.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itConfusion matrix analysis: accuracy, precision, recall, F1 score, MCC, and Cohen's kappa. Visual heatmap and metric comparison charts.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about this topic