top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S8-SA2-0201

What is Underfitting?

Grade Level:

Class 8

AI/ML, Data Science, Research, Journalism, Law, any domain requiring critical thinking

Definition
What is it?

Underfitting happens when a computer model is too simple to learn all the important details from the training data. It's like trying to explain a complicated cricket match using only the coin toss result – you miss most of the game's action.

Simple Example
Quick Example

Imagine you're trying to predict the price of a plate of samosas based only on the weather. If you just say 'samosas always cost Rs. 20,' you'll be wrong most of the time because you're ignoring other important factors like the shop's location or ingredients. Your simple rule (Rs. 20) is 'underfitting' the real price changes.

Worked Example
Step-by-Step

Let's say a coach wants to predict a student's final exam marks based on how many hours they study.

1. **Data Collected:** Students study 2 hours, get 40 marks; 5 hours, get 70 marks; 8 hours, get 90 marks.
---2. **Simple Model:** The coach tries a very simple rule: 'Marks = 50'. This model always predicts 50 marks, no matter how much a student studies.
---3. **Testing the Model:**
- For 2 hours study: Model predicts 50. Actual was 40. (Error = 10)
- For 5 hours study: Model predicts 50. Actual was 70. (Error = 20)
- For 8 hours study: Model predicts 50. Actual was 90. (Error = 40)
---4. **Observation:** The model 'Marks = 50' is clearly not capturing the idea that more study hours generally lead to higher marks. It's too simple.
---5. **Conclusion:** This simple 'Marks = 50' model is underfitting the data because it fails to learn the relationship between study hours and marks.

**Answer:** The simple model `Marks = 50` is underfitting because it doesn't reflect the clear trend in the data.

Why It Matters

Understanding underfitting is crucial for building smart systems in AI/ML, data science, and even in journalism when analyzing trends. It helps engineers create reliable apps, researchers draw correct conclusions, and journalists report accurate insights, ensuring the solutions we build are truly helpful and not misleading.

Common Mistakes

MISTAKE: Thinking underfitting means the model is completely broken. | CORRECTION: Underfitting means the model is too simple, not necessarily broken. It might work a little, but not well enough.

MISTAKE: Confusing underfitting with overfitting. | CORRECTION: Underfitting means the model *misses* the patterns. Overfitting means it learns *too much* detail, including noise, and struggles with new data.

MISTAKE: Believing more data will always fix underfitting. | CORRECTION: More data helps, but if the model itself is too simple (e.g., trying to fit a curved pattern with a straight line), it won't learn properly even with tons of data.

Practice Questions
Try It Yourself

QUESTION: A weather app predicts it will always be 'sunny' in Chennai, even when it rains. Is this underfitting or overfitting? | ANSWER: Underfitting, because the model is too simple to capture the possibility of rain.

QUESTION: You want to predict the number of auto-rickshaws needed in a locality. Your model only considers the time of day, ignoring festivals, school timings, and office rush hours. Will this model likely underfit or overfit? Explain why. | ANSWER: It will likely underfit because it's ignoring many important factors that influence auto-rickshaw demand, making it too simple to capture the real-world complexity.

QUESTION: A student tries to predict future mobile data usage based on previous months. Their model only looks at 'total GB used' and ignores 'number of apps installed' or 'hours spent streaming'. If their predictions are consistently far off, what problem might they be facing and what could be a solution? | ANSWER: They are likely facing underfitting. The model is too simple and ignores key factors. A solution could be to include more relevant features like 'number of apps installed', 'hours spent streaming', or 'type of phone' to make the model more capable of learning the complex patterns.

MCQ
Quick Quiz

Which of the following best describes underfitting?

The model is too complex and learns too much detail.

The model is too simple and fails to capture important patterns.

The model performs perfectly on new, unseen data.

The model is only suitable for small datasets.

The Correct Answer Is:

B

Underfitting means the model is too simple and cannot learn the underlying patterns from the data, leading to poor performance. Option A describes overfitting, while C and D are incorrect.

Real World Connection
In the Real World

Imagine a smart traffic light system in Bengaluru that uses AI to optimize signal timings. If this system only considers the total number of vehicles at an intersection and ignores factors like pedestrian crossings, bus routes, or emergency vehicle priority, it would be underfitting. It would fail to manage traffic efficiently, leading to more jams, because its understanding of traffic flow is too basic.

Key Vocabulary
Key Terms

MODEL: A simplified representation or system that tries to explain or predict something | DATA: Information collected for analysis, like cricket scores or exam marks | PATTERN: A regular, discernible arrangement or sequence in data | COMPLEXITY: The level of detail or number of factors a model considers | PREDICTION: A forecast or guess about a future event or outcome

What's Next
What to Learn Next

Now that you understand underfitting, the next important concept is 'Overfitting'. Learning about overfitting will help you see the other side of the coin – what happens when a model learns too much – and how to find the right balance for building effective AI systems.

bottom of page