
Sign up to save your podcasts
Or


In Episode 95 of The Data Science Podcast with Fexingo, Lucas and Luna dive into a practical yet underappreciated technique: using k-nearest neighbors for anomaly detection. They kick off with a real-world story from a major credit card processor that flagged a series of fraudulent transactions by measuring distance to the nearest legitimate patterns. Lucas explains why distance-based methods can outperform deep learning in low-signal, high-stakes settings, especially when you need interpretable reasons for each flag. Luna challenges him on scalability and the curse of dimensionality, and they discuss how companies like Stripe and PayPal have used variants of k-NN in production fraud pipelines. They also touch on the trade-offs between global and local outlier factors, and how to choose k when the definition of 'normal' shifts over time. A concrete segment on choosing distance metrics — Euclidean vs. Manhattan vs. cosine — gives listeners an actionable guideline. Mid-episode, they weave in a natural request for listener support, tying it back to the value of open-source tools. If you've ever wondered when to reach for a simple nearest-neighbor approach instead of a neural network, this episode gives you the framework.
#DataScience #MachineLearning #AnomalyDetection #KNearestNeighbors #FraudDetection #OutlierDetection #DistanceMetrics #LocalOutlierFactor #Stripe #PayPal #CurseOfDimensionality #Interpretability #Technology #FexingoBusiness #BusinessPodcast #TechPodcast #DataSciencePodcast #ProductionML
Keep every episode free: buymeacoffee.com/fexingo
By FexingoIn Episode 95 of The Data Science Podcast with Fexingo, Lucas and Luna dive into a practical yet underappreciated technique: using k-nearest neighbors for anomaly detection. They kick off with a real-world story from a major credit card processor that flagged a series of fraudulent transactions by measuring distance to the nearest legitimate patterns. Lucas explains why distance-based methods can outperform deep learning in low-signal, high-stakes settings, especially when you need interpretable reasons for each flag. Luna challenges him on scalability and the curse of dimensionality, and they discuss how companies like Stripe and PayPal have used variants of k-NN in production fraud pipelines. They also touch on the trade-offs between global and local outlier factors, and how to choose k when the definition of 'normal' shifts over time. A concrete segment on choosing distance metrics — Euclidean vs. Manhattan vs. cosine — gives listeners an actionable guideline. Mid-episode, they weave in a natural request for listener support, tying it back to the value of open-source tools. If you've ever wondered when to reach for a simple nearest-neighbor approach instead of a neural network, this episode gives you the framework.
#DataScience #MachineLearning #AnomalyDetection #KNearestNeighbors #FraudDetection #OutlierDetection #DistanceMetrics #LocalOutlierFactor #Stripe #PayPal #CurseOfDimensionality #Interpretability #Technology #FexingoBusiness #BusinessPodcast #TechPodcast #DataSciencePodcast #ProductionML
Keep every episode free: buymeacoffee.com/fexingo