Create a question to test the understanding of a learner on the given topic.
Difference between Overfitting and Underfitting
Can you explain the main differences between overfitting and underfitting when building a statistical model, and how they can affect the accuracy of predictions made by the model?
Complete the following task based on the instruction and optional input provided.### Instruction:
Create a question to test the understanding of a learner on the given topic.

### Input:
Difference between Overfitting and Underfitting

### Output:
Can you explain the main differences between overfitting and underfitting when building a statistical model, and how they can affect the accuracy of predictions made by the model?