## Why Accuracy Is a Misleading Metric for Most UK ML Problems
Accuracy is a misleading metric for most real-world UK ML problems. A fraud detection model predicting 'not fraud' for every single transaction achieves 99.9% accuracy on a 0.1% fraud rate dataset — yet catches nothing. A cancer screening model predicting 'no cancer' for every patient achieves 99% accuracy on a 1% prevalence dataset — catastrophically missing every case. UK regulated industries require careful metric selection aligned with business outcomes and regulatory requirements, not optimisation for the easiest-to-improve headline number. The root cause: accuracy assumes all errors are equally costly, which is almost never true in business contexts. In UK credit scoring, a false negative (approving a defaulter) costs the lender the loan principal; a false positive (rejecting a creditworthy applicant) costs a missed revenue opportunity — the FCA Consumer Duty requires lenders to consider both types of error. In NHS diagnostic ML, a false negative (missing a disease) may be life-threatening; a false positive (triggering unnecessary investigation) causes patient anxiety and NHS resource waste. The choice of evaluation metric must encode the relative cost of different error types before any model training begins.
## Classification Metrics: A Practical Guide for UK Business
Classification metrics guide for UK business practitioners: Precision (of all cases the model flagged as positive, what fraction truly are positive) — matters when false positives are costly: a UK email fraud detection system with low precision sends too many legitimate transactions to manual review, wasting operations team time and degrading customer experience. Recall (of all actual positive cases in the data, what fraction does the model catch) — matters when misses are costly: a UK AML transaction monitoring system with low recall misses money laundering events, creating regulatory exposure under the Proceeds of Crime Act 2002 and Terrorism Act 2000. F1 score (harmonic mean of precision and recall) — use when both precision and recall matter and their relative importance is approximately equal. ROC-AUC (area under the receiver operating characteristic curve, measuring the model's ability to discriminate between classes across all thresholds) — the standard metric for UK credit scorecard benchmarking; a score above 0.75 is considered acceptable for UK retail credit by most lenders. PR-AUC (area under the precision-recall curve) — more informative than ROC-AUC for severely imbalanced datasets such as UK insurance fraud (0.1% fraud rate) or rare disease diagnosis; PR-AUC is insensitive to the large number of true negatives that inflate ROC-AUC on imbalanced datasets. FCA Consumer Duty requires documenting the metric rationale in the model risk register — why this metric was chosen, what business outcome it proxies, and how it relates to fair consumer outcomes.
## Regression and Forecasting Metrics for UK Practitioners
Regression and forecasting metrics: MAE (mean absolute error — the average absolute difference between predicted and actual values, expressed in the original units of the target variable) — intuitive and easy to communicate to UK business stakeholders: 'our demand forecast is off by an average of 140 units per week'; robust to outliers. RMSE (root mean squared error — penalises large errors disproportionately because errors are squared before averaging) — use when large forecast errors are particularly damaging: a UK energy retailer's RMSE on daily demand forecasting translates directly to imbalance charge exposure on the Day-Ahead Market. MAPE (mean absolute percentage error — expresses error as a percentage of actual values, enabling comparison across different scales) — the standard metric for UK retail and energy demand forecasting; MAPE below 5% is the typical production threshold for UK commercial energy forecasting contracts. sMAPE (symmetric MAPE — avoids the asymmetry of MAPE where underestimates are penalised more than overestimates, and avoids division by zero when actual values are zero) — preferred for UK retail sales forecasting where zero-sales periods are common (seasonal products, new SKU launches). UK energy and retail forecasting typically targets MAPE below 5% as the contractual production threshold; UK financial time series (asset returns, credit default rates) use RMSE normalised by volatility.
## Model Calibration: Why It Matters for Regulated UK ML
Calibration matters for regulated UK ML: a model predicting 80% probability of default should, in a well-calibrated model, actually default 80% of the time in practice. Poor calibration means model probability outputs cannot be trusted for downstream decision-making — a credit model outputting 0.73 probability of default cannot be used for Expected Credit Loss calculations under IFRS 9 if the model is not calibrated. Brier Score measures calibration quality: it is the mean squared error of probability predictions, where 0 is perfect calibration and 0.25 is a random model on a balanced dataset; UK credit models typically target Brier Score below 0.15 in production. Calibration diagnosis: reliability diagrams (plotting mean predicted probability against observed frequency in bins — a perfectly calibrated model produces a 45-degree line); calibration error histogram. Calibration correction: isotonic regression post-processing (non-parametric calibration, fits a monotonic function to align predicted probabilities with observed frequencies); Platt scaling (logistic regression post-processing, works well when calibration error is primarily a slope/intercept issue). UK credit and insurance models require calibrated probabilities for pricing accuracy, capital adequacy calculations under IFRS 9 and Solvency II, and FCA-required explanation of individual loan or insurance decisions. Tools: scikit-learn CalibrationDisplay, sklearn.calibration.CalibratedClassifierCV. Codeworth delivers metric framework documentation as part of every FCA-compliant model delivery.
Related Codeworth Services
Need Help with Implementation?
The Codeworth team is ready to implement these ideas in your project. Free consultation.
Discuss the ProjectCodeworth team specialist.