Accuracy: How often a model's predictions are correct, usually given as a percentage of all predictions it made.
Example
A spam filter checks 1,000 emails and gets 950 right. Its accuracy is 95%. But if only 20 of those emails were spam and it missed 15 of them, the 95% hides a real problem.
How Accuracy is Calculated
Accuracy = correct predictions ÷ total predictions. If a model makes 200 predictions and 170 are correct, accuracy is 85%. It is measured on test data the model has not seen during training. See testing in data and AI.
When Accuracy Misleads
If one outcome is rare, a model can look accurate while being useless. If only 1% of transactions are fraud, a model that always says "not fraud" is 99% accurate and catches nothing. That is why teams also look at other measures:
| Measure | Question it answers |
|---|---|
| Precision | Of the items the model flagged, how many were really positive? |
| Recall | Of all the real positives, how many did the model find? |
| F1 score | A balance of precision and recall |
| Confusion matrix | A table of correct and wrong predictions for each class |
Reporting Accuracy as an Intern
Always say what data the number was measured on, how balanced the classes were, and what other measures show. "95% accuracy on a held-out test set of 2,000 emails, with 80% recall on spam" is far more useful than "95% accuracy".
Related terms
- Model: what accuracy measures.
- Prediction: accuracy counts how many are correct.
- Testing (in Data & AI): how accuracy is measured fairly.
- Machine Learning (ML): the field where accuracy is used most.
Previous term: Accountability | Next term: Action Item
Related guides
- AI/ML vs Software Development
- Python Interview Questions Test
- Technical Interview Questions for Freshers
Frequently asked questions
What is accuracy in machine learning?
Accuracy is the percentage of a model's predictions that are correct.
Why is accuracy not always a good measure?
When one class is rare, a model can score high accuracy while missing almost all the important cases.
What is the difference between precision and recall?
Precision is how many flagged items were truly positive. Recall is how many real positives the model found.
What is a good accuracy score?
It depends on the problem and the data. Compare against a simple baseline and look at precision and recall too.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms