Skip to main content
Machine Learning & Deep Learning

⏱ About 10 min10 XP

How Sure Is the Machine?

When you take a test and see a question you studied hard for, you probably write your answer feeling very confident — very sure. But when you see a question that surprises you, you might write an answer and then stare at it thinking, "Hmm, I am not really sure about this one." Machines do something similar when they make predictions. They do not just say what they think — they also figure out how sure they are.

What Confidence Means

Confidence is a measure of how sure a prediction is. When a machine looks at a new photo and predicts, "This is a cat," it also figures out a number that represents its confidence. For example: 95% confident — the machine is very sure this is a cat. 60% confident — the machine thinks it is probably a cat, but is not totally certain. 51% confident — the machine is barely leaning toward cat. It is almost as unsure as a coin flip. A high confidence number means the machine strongly believes its prediction. A low confidence number means the machine is hedging — it is giving its best guess but knows it might be wrong. This confidence number is sometimes called a probability or a score.

The Big Idea

Confidence tells us how sure a machine is about its prediction. A high confidence means the machine strongly believes its answer. A low confidence means it is not so sure.

Here is a story about confidence. A machine is looking at a photo of an animal. The animal is very clearly a golden retriever — fluffy, big, and sitting in front of a house. The machine says: Dog — 98% confident. Cat — 1% confident. Rabbit — 1% confident. That makes sense! The machine is almost certain it is a dog. Now the machine sees a blurry photo of a small furry animal in low light. The machine says: Cat — 45% confident. Small dog — 35% confident. Rabbit — 20% confident. This time the machine is much less sure. The blurry photo did not have enough clear clues.

Flashcards — click each card to reveal the answer

Why does confidence matter? If a machine is helping a doctor and it says, "I am 99% confident this scan is normal," the doctor feels reassured. But if it says, "I am 55% confident," the doctor knows to look more carefully. Confidence helps people decide when to trust the machine's prediction and when to double-check. A good prediction system is honest about its confidence. It does not pretend to be certain when it is not.

Overconfident Machines Can Cause Problems

If a machine always says it is 99% confident but is often wrong, that is dangerous. Good machines are honest — high confidence when evidence is strong, low confidence when evidence is weak.

A machine says it is 92% confident a photo shows a bicycle. What does that mean?

A machine is 52% confident a photo is a dog and 48% confident it is a cat. What should you do with this prediction?

Confidence Meter

  1. Draw a simple 'confidence meter' on paper — a bar from 0% on the left to 100% on the right.
  2. Now think of five predictions you might make today — like what you will have for dinner, or whether it will rain.
  3. For each prediction, draw an arrow on your confidence meter showing how sure you are.
  4. Write one sentence explaining WHY you are that confident. What clues do you have?
  5. Discuss with a classmate: do confident predictions use better clues than unsure ones?