LambdaLabTM
Artificial Intelligence · Class 10 · Unit 3 · Evaluating Models
class 10 aievaluation⏱️ 8 min read

Accuracy and Error

Model evaluation stands on two pillars. Every metric in the rest of this unit is built out of these two ideas, so it is worth being slow here.

1Bob, Billy and the concert

Bob and Billy went to a concert. Bob brought ₹300 and Billy brought ₹550. The entry fee was actually ₹500 per person.

Who was more accurate, and by how much was each of them out?

Work it out
Bob: |500 − 300| = 200 out.
Billy: |500 − 550| = 50 out.
Billy is more accurate, because his error is smaller. Notice that Billy guessed over and Bob guessed under, but that does not matter — we take the size of the gap, not its direction.

2The two definitions

Accuracy
Accuracy is an evaluation metric that lets you measure the total number of predictions a model gets right. The accuracy of a model and the performance of a model are directly proportional: the better the performance, the more accurate the predictions.
Error
An error is an action that is inaccurate or wrong. In machine learning, the error is the difference between a model’s prediction and the actual outcome — it quantifies how often, and by how much, the model makes mistakes. We choose the model that performs best on a particular dataset based on its error.

Two questions about the same throw

Accuracy asks: how often did the dart hit the board?
Error asks: when it missed, how far away did it land?
You need both. A player who hits the board half the time but is never far off is a very different player from one who hits half the time and otherwise misses the wall.
The goal
Minimise error and maximise accuracy. That single sentence has been an exam question.

3Working it out

For a model that predicts a number — a regression model, like a house price — accuracy is worked out per prediction and then averaged:

StepFormula
ErrorAbs(Actual − Predicted)
Error rateError / Actual
Accuracy1 − Error rate
Accuracy %Accuracy × 100
Model accuracyThe mean accuracy of all the samples
Why Abs, and why divide by Actual
Abs means the absolute value — the size of the difference with any minus sign dropped. Guessing 50 too high is as wrong as guessing 50 too low.
Dividing by the actual value turns the error into a proportion. Being 30k out on a 900k house is a small miss; being 30k out on a 97k house is an enormous one, and only the error rate shows that.
Find the accuracy of a house-price model

A regression model, so there is no confusion matrix — accuracy here means how close each prediction came.

PredictedActualError = |Actual − Predicted|Error rate = Error / ActualAccuracy = 1 − rateAccuracy %
391k402k|402k − 391k| = 11k11/402 = 0.02741 − 0.0274 = 0.972697.3%
Mean accuracy of 1 row: 97.26%

The accuracy of the model is the mean accuracy of all five samples — 86.60% once every row is in. Notice row 3: the model was only 28k out, but on a 97k house that is a much worse miss than being 36k out on a 907k one. That is why the error is divided by the actual value.

4Accuracy is not the whole story

Real-world data is messy, and even the best models make mistakes. Two warnings the handbook gives, both worth remembering:

  • Focusing only on accuracy can be a mistake. In medical diagnosis, a model with slightly lower accuracy but a strong focus on not calling a healthy person sick may well be preferable.
  • The right metric depends on the task. Choosing which error or accuracy measure to quote is part of the job, not a detail.
Where this is going
The next four lessons are all about doing better than a single accuracy figure, for models that predict a category rather than a number. They all start from one table: the confusion matrix.

5From the board papers

1
A teacher’s marks prediction system predicts a student’s marks as 75, but the actual marks obtained are 80. What is the absolute error in the prediction?Class X handbook, Test Yourself
1 mark
▶Show the answer

5. Abs(80 − 75) = 5. The word absolute is why the answer is not −5.

2
A student solved 90 out of 100 questions correctly. What is the error rate?Class X handbook, Test Yourself
1 mark
▶Show the answer

10%. 10 of the 100 were wrong, so the error rate is 10/100 = 0.1 = 10%. Accuracy and error rate always add up to 100%.

3
Assertion (A): In machine learning, a model with lower error is considered to perform better on a given dataset.
Reason (R): Error helps us evaluate how accurately a model can predict both training and unseen data, which is why it is used to select the best-performing model.CBSE sample paper 2025–26
1 mark
▶Show the answer

Both (A) and (R) are correct, and (R) is the correct explanation of (A). Lower error means better performance precisely because error is the measure we use to compare models and pick one.

4
“Understanding both error and accuracy is crucial for effectively evaluating and improving AI models.” Justify this statement.Class X handbook, Reflection Time
2 marks
▶Show the answer

Accuracy tells you how many predictions the model got right, and error tells you how far the wrong ones were from the truth. On their own neither is enough: a model can be accurate most of the time yet be badly wrong when it fails, and two models with the same accuracy can have very different errors. The goal of evaluation is to minimise error and maximise accuracy, so both have to be understood in order to compare models and improve them.

6Check yourself

Quick Check

The goal when evaluating an AI model is to:

Quick Check

A model predicts a house at 391k when it actually sold for 402k. What is the error?

Quick Check

Accuracy and model performance are: