Precision vs Recall: Predicted-Positive Accuracy vs Actual-Positive Coverage

Overview Precision and recall are two classification metrics computed from the same confusion matrix but answering different questions about a model’s positive predictions. Precision asks how many predicted positives were correct, while recall asks how many actual positives were found. Optimizing one in isolation almost always trades off against the other. Comparison Diagram Predicted PositiveActual PositiveFPTPFNwrong alarmsmissed casesPrecision = TP / (TP + FP)Recall = TP / (TP + FN) Comparison Table Aspect Precision Recall Question answered Of items predicted positive, how many actually are positive? Of items that are actually positive, how many did the model find? Formula TP / (TP + FP) TP / (TP + FN) Denominator basis Total predicted positive (TP + FP) Total actual positive (TP + FN) Error type penalized False positives (false alarms) False negatives (missed detections) Increases when Model makes fewer incorrect positive calls Model catches more of the true positive cases Threshold trade-off Raising the decision threshold typically raises precision Lowering the decision threshold typically raises recall Failure mode at extreme High precision, low recall: model is overly conservative and misses real cases High recall, low precision: model is overly liberal and floods results with false alarms Key Differences Precision’s denominator is predicted positives; recall’s denominator is actual positives, so they measure against different totals Precision is hurt by false positives; recall is hurt by false negatives Adjusting the classification threshold pushes precision and recall in opposite directions Neither metric alone summarizes model quality, which is why the F1 score combines them A model with 100% recall can trivially predict everyone positive, and a model with 100% precision can trivially predict almost no one positive When to Use Each Precision ...

August 3, 2026 · 2 min · 392 words · jeonck

Supervised vs Unsupervised Learning: Labeled Guidance vs Pattern Discovery

Overview Supervised learning trains a model on labeled data, teaching it to map inputs to known outputs it can later predict. Unsupervised learning works on raw, unlabeled data and instead performs pattern discovery, uncovering structure like clusters or reduced representations with no target to match against. The distinction matters because it determines what data you need, how you measure success, and which problems each approach can actually solve. Comparison Diagram Supervised LearningUnsupervised Learningyyyfeatures + known labelsModelPredicted labelchecked against true yfeatures only, no labelsModelDiscovered clustersno ground truth to check Comparison Table Aspect Supervised Learning Unsupervised Learning Input data Labeled examples: features paired with a known target value Unlabeled examples: features only, no target provided Learning objective Minimize the error between predicted and true labels Discover inherent structure, grouping, or compressed representation in the data Training signal Explicit feedback from a loss function computed against ground truth No explicit feedback; relies on similarity, density, or variance within the data itself Model output A predicted class label or continuous value Cluster assignments, reduced dimensions, or anomaly scores Evaluation Direct measurement on a held-out labeled test set (accuracy, F1, RMSE) Indirect measurement (silhouette score, reconstruction error) or human interpretation Common tasks Classification and regression Clustering, dimensionality reduction, and anomaly detection Data/labeling cost Requires a labeled dataset, often costly and time-consuming to build Uses raw data as-is, cheaper and faster to collect at scale Typical algorithms Logistic regression, random forests, gradient boosting, supervised neural nets k-means, PCA, DBSCAN, autoencoders Key Differences Supervised learning requires labeled data; unsupervised learning works directly on raw data. Supervised models are scored against ground truth; unsupervised models are judged by internal structure metrics instead. Supervised learning targets prediction of a known outcome; unsupervised learning targets discovery of unknown structure. Labeling is usually the bottleneck cost for supervised systems, while unsupervised systems scale with raw data volume. Supervised errors are measurable per-example; unsupervised quality is often assessed via proxy metrics or manual review. When to Use Each Supervised Learning ...

August 3, 2026 · 3 min · 429 words · jeonck