top of page

Why 95% Accuracy Was a Terrible Model: Picking the Right Metric

5 minutes ago
10 min read






A model that is right 95 percent of the time sounds excellent, and it is one of the most misleading numbers in machine learning. If only five percent of transactions are fraud, a model that labels every transaction as legitimate is 95 percent accurate and catches nothing. The score looks great while the model is worthless.


This blog explains why accuracy fails on many business problems, which metrics to use instead, and how to choose one that reflects the real cost of mistakes. It reflects how the CodersArts approaches evaluation, so that a model is judged by the outcomes the business cares about and not by a flattering headline number.




Why a High Accuracy Number Can Hide a Failing Model




What Is Accuracy?


Accuracy is the share of predictions that are correct. It is simple to compute and easy to explain, which is why it is the default metric in many projects.




How Class Imbalance Breaks It


Many real problems are heavily imbalanced: fraud, equipment failure, churn, rare disease, security incidents. When one class is rare, a model can score high accuracy by always predicting the common class, without finding a single case that matters.




A Simple Illustration


Imagine 1,000 loan applications in which 50 will default. A model that approves everyone is 95 percent accurate. It also misses every default. Accuracy says the model is excellent, and the lender loses money.




Other Ways Accuracy Misleads


Accuracy treats every mistake as equal, ignores the confidence of predictions, and hides differences between groups. A model can be accurate overall and poor for a particular customer segment or region.


Reporting a single accuracy number to your leadership? 

CodersArts can review your evaluation and recommend measures that match the business. Write to contact@codersarts.com.





The Metrics That Tell You More


Each of these answers a different question. Choosing among them starts with asking which mistake hurts more.




Precision: When the Model Raises an Alert, Is It Right?


Precision is the share of positive predictions that are truly positive. It matters when false alarms are costly, such as blocking legitimate customers or sending technicians to healthy machines.




Recall: How Many Real Cases Did the Model Catch?


Recall is the share of actual positives the model finds. It matters when missing a case is costly, such as undetected fraud, a missed safety fault, or an overlooked disease.



F1 Score and Its Limits


F1 combines precision and recall into one number. It is useful for a balanced view, but it treats the two as equally important, which is rarely true in business.




Precision-Recall Curves and PR-AUC


These show how precision and recall trade off across all thresholds, and they are far more informative than accuracy or ROC curves when positives are rare.




ROC-AUC and When It Misleads


ROC-AUC measures how well a model ranks positives above negatives. It is popular and useful, but with severe imbalance it can look strong while precision at useful thresholds is poor.




Calibration: Can You Trust the Probabilities?


A calibrated model's stated confidence matches reality, so that cases scored at 80 percent are positive about 80 percent of the time. Calibration matters when scores drive decisions, pricing, or prioritization.




Cost-Based Metrics and Expected Value


The most business-relevant approach assigns a cost to each type of mistake and benefit to each correct decision, then picks the model and threshold that maximize expected value.




Quick Reference: Which Metric for Which Situation


Situation

Metric to Prioritize

Rare event, missing it is costly

Recall, PR-AUC, and cost-based measures

False alarms are costly

Precision at the operating threshold

Balanced classes, equal costs

Accuracy can be fine, with F1 as a check

Scores drive prioritization or pricing

Calibration and ranking measures

Decisions with known dollar impact

Expected value or cost per decision

Continuous predictions, such as forecasts

Error measures such as MAE or RMSE, chosen by cost of large errors






How to Choose the Right Metric for Your Problem


A good choice comes from the business, not from the library defaults.




Start With the Decision the Model Supports


Ask what happens when the model says yes and when it says no, and who acts on it.




Put a Cost on Each Kind of Mistake


Estimate what a false alarm costs and what a missed case costs, even roughly. The ratio often decides the metric and the threshold.




Check the Class Balance and the Base Rate


If the event is rare, avoid accuracy as the headline and compare against a simple baseline, such as always predicting the majority class.




Choose the Threshold, Not Only the Model


A model outputs scores, and the threshold turns them into decisions. Pick it using the costs, capacity, and review workload, and revisit it as conditions change.




Evaluate Across Segments and Over Time


Check results by customer group, region, and period. Performance that is good on average can fail for a segment or decay as data changes.


Not sure which metric fits your model? 

Our data scientists can map your decision and costs to the right measures. Email contact@codersarts.com.






Why Choosing the Right Metric Matters for Your AI Investment




Models Optimize What You Measure


If you train and tune for accuracy, you get a model that is good at the common case. The metric shapes what the model learns to do.




Honest Numbers Build Trust


Leaders who learn that a celebrated model missed most real cases lose confidence in the whole program. Clear, relevant metrics protect credibility.




Business Value Comes From Decisions


A model creates value when it improves decisions. Metrics tied to cost and benefit show whether it does, and by how much.






Bringing Better Evaluation Into Your Organization




Agree on the Decision and Its Costs


Bring business and technical people together to define the action, the cost of each error, and the target outcome.




Set a Baseline


Measure a trivial model, current rules, and human performance so improvement has a reference.




Select Primary and Guardrail Metrics


Choose one main metric tied to value and a few checks, such as precision, calibration, and segment performance.




Test on Realistic, Time-Based Splits


Evaluate on data that mirrors the future, with a time-based split where relevant, and avoid leakage from information the model would not have at decision time.




Report Results in Business Terms


Translate scores into cases caught, false alarms per day, and dollars saved or lost.




How Does Monitoring Work After Launch?


Track the chosen metrics on live data, watch for drift in inputs and outcomes, check calibration, and retrain or reset thresholds when performance shifts.


Actual implementation varies depending on your data, your decision process, and how quickly outcomes become known.






Common Mistakes When Evaluating Models




Reporting Accuracy on Imbalanced Data


This is the classic mistake and the reason many models fail after launch.




Tuning on the Test Set


Repeatedly adjusting a model against the same test data inflates results and hides overfitting.




Leaking Future Information


Features that would not be available at decision time make the model look far better than it will be.




Ignoring the Threshold


A good model with a poor threshold can still produce bad decisions.




Looking Only at the Average


Averages hide failures in segments, regions, and periods.




Skipping the Baseline


Without a simple comparison, a 95 percent score means nothing.






Advantages and Limitations of Business-Aligned Metrics




Where Better Metrics Deliver the Most Value


Advantage

Details

Models that find what matters

Optimizing the right target catches the rare cases that drive value.

Clear communication

Results expressed as cases and dollars are easier for leaders to act on.

Better thresholds

Decisions reflect real costs and capacity.

Early warning of problems

Segment and calibration checks reveal hidden failures.

Fairer model comparison

Models are judged on the same business-relevant basis.




What Are the Trade-Offs of Business-Aligned Metrics?


Limitation

Details

Need for cost estimates

Costs of errors can be hard to estimate and may change.

More complexity to explain

Several metrics take more effort to explain than one number.

Delayed outcomes

Some outcomes, such as defaults, take months to observe.

Metrics can still be gamed

Any single target can be over-optimized, so guardrail metrics remain necessary.






How Much Does Proper Model Evaluation Cost?


Costs depend on how much labeled data exists, how quickly outcomes are known, the number of segments and models to compare, and the effort needed to estimate error costs with the business.


A focused evaluation review is a small part of a model's total cost and often prevents far larger losses later. Ongoing monitoring adds recurring but modest costs. The practical way to plan is to begin with the highest-impact model and build a reusable evaluation template.






Tools and Approaches Compared


Most teams combine standard libraries with business-specific analysis.




Standard Evaluation Libraries


Libraries such as scikit-learn provide precision, recall, F1, ROC-AUC, PR-AUC, calibration curves, and cost-sensitive tools, which cover most technical needs.




Experiment Tracking and Monitoring Platforms


Tracking tools record metrics across experiments, and monitoring platforms watch live performance and drift.




Cost-Sensitive Training and Threshold Optimization


Techniques such as class weights, resampling, and threshold selection by expected value help models focus on rare, costly cases.




Human Review and Business Validation


Pilots and reviews with domain experts confirm that metrics reflect real outcomes.



Which Organizations Get the Most Value From Better Evaluation?


Better evaluation tends to help organizations that want to:


  • Detect rare, high-impact events such as fraud or failures

  • Use model scores for pricing, prioritization, or approvals

  • Report credible results to leaders and regulators

  • Compare vendor or in-house models fairly

  • Catch performance decay before customers do






Does Picking the Right Metric Actually Improve Business Outcomes?


Often it does, because the model is tuned for what the business values and the threshold reflects real costs. It does not make a weak signal strong, and some problems are simply hard.


The benefit is honesty and direction: you learn early whether a model is useful, you tune it toward the right target, and you set decisions on evidence. That alone prevents many failed deployments. Our machine learning team can review how your models are measured.






How CodersArts Helps You Evaluate and Improve Models


CodersArts helps businesses measure models by the outcomes that matter and build ones that perform in production.




Evaluation Reviews and Metric Design


We review how your models are measured and design metrics, baselines, and thresholds tied to your costs. See our AI consulting services.




Imbalanced and High-Stakes Modeling


We build and tune models for rare-event problems using appropriate techniques, through our machine learning services.




Calibration, Fairness, and Segment Analysis


We test calibration and performance across groups and time periods, using our LLM development and data science expertise.




Monitoring and Retraining


We set up live tracking of the chosen metrics and drift, as part of our AI agent development and platform work.




Team Support and Training


We support your team and extend it with dedicated AI and machine learning engineers.






How Does a CodersArts Model Evaluation Engagement Work?


Most engagements follow four stages. A discovery session maps the decision, the data, and the costs of errors. A review stage tests current models against baselines and business-relevant metrics. An improvement stage adjusts features, training, and thresholds toward the chosen target. A rollout stage sets up monitoring and reporting.

Each stage ends with a clear deliverable, so you can decide whether to continue before committing further.






Frequently Asked Questions




Why Is 95% Accuracy Sometimes a Bad Result?


When one class is rare, a model can reach 95 percent by always predicting the common class, missing every case that matters.




What Metric Should I Use Instead of Accuracy?


It depends on which mistake costs more. Recall suits costly misses, precision suits costly false alarms, PR-AUC suits rare events, and cost-based measures suit decisions with known dollar impact.




What Is the Difference Between Precision and Recall?


Precision asks how many of the model's alerts were right. Recall asks how many of the real cases the model found.




Is ROC-AUC Enough?


Not always. With rare positives it can look strong while precision at useful thresholds is poor, so check precision-recall measures too.




How Do I Pick a Threshold?


Use the costs of each error type, your review capacity, and the score distribution, then revisit it as conditions change.




How Do I Know a Good Number Is Not a Leak?


Check that every feature would be available at decision time, use time-based splits, and test on data the model never touched during tuning.




What Should a Business Evaluate Before Starting?


Evaluate the decision, the cost of each error, the base rate, how fast outcomes arrive, and whether your team can run the evaluation or needs a partner.






What Services Does CodersArts Offer?


Beyond machine learning evaluation and development and other AI and RAG specific delivery and partnership work, CodersArts offers a wider range of services that agencies, businesses, and individual developers regularly rely on, whether as part of a partnership or on their own.




AI and RAG Development


Custom AI and RAG development, starting from proof of concept through to full production builds, along with broader LLM and generative AI development for businesses building AI-powered products and internal tools.




Consultation


Project consultation for businesses and agencies evaluating an AI or machine learning initiative, helping assess feasibility, recommend the right technical approach, and scope a project before committing to full development.




One-on-One Mentorship


Personalized, expert-led mentorship for developers and teams looking to build hands-on AI, machine learning, or AI engineering skills, with guidance tailored to individual or team goals and current experience level.




Dedicated Team and Team Augmentation


Dedicated AI and machine learning engineering teams, or engineers who work as an extension of an existing in-house or agency team, scaling up or down based on project needs.




Ongoing Support and Maintenance


Post-launch monitoring, optimization, and maintenance for AI and machine learning systems already in production, helping ensure performance and reliability do not degrade over time.




Job Support Services


Remote job support for developers and engineers working on live AI, machine learning, or LLM projects, including pair programming, code reviews, workflow setup, debugging, and help meeting sprint deadlines under expert guidance.




Corporate and Team Training


Structured training and workshops for teams looking to build internal AI and machine learning capability, covering hands-on implementation as well as best practices for evaluation and production readiness.




White-Label and Partnership Delivery


CodersArts also partners with agencies, consultancies, and technology companies to deliver AI and machine learning development on their behalf, whether white-label, co-branded, or embedded alongside an existing team.


Whether you are a business building your first predictive model, an agency looking for a delivery partner, or a developer seeking hands-on mentorship, CodersArts offers services to support your AI journey.


Reach out at contact@codersarts.com or visit www.codersarts.com to discuss your machine learning evaluation and development or broader AI project.






Continue Exploring Enterprise Resources


If you found this blog helpful, explore more AI, RAG, and enterprise AI resources from CodersArts AI to see how organizations are applying these systems to real world applications.











Comments


bottom of page