Sample questions
Question 1Easy
Which of the following generally helps reduce overfitting?
- Training for many more epochs
- Removing the validation set
- Collecting more training data
- Adding more parameters to the model
Answer: C. Collecting more training data
Explanation
More (representative) data makes it harder for a model to memorise noise. The other options tend to increase overfitting or hide it.
Step-by-step solution
- Overfitting happens when the model memorises a limited sample.
- More training data covers more variety, making memorisation harder.
- So the model is pushed towards general patterns.
Why the other options are wrong
- A. Many more epochs usually increases overfitting.
- B. Removing validation data only hides overfitting.
- D. More parameters increase capacity to memorise.
Question 2Easy
Early stopping prevents overfitting by:
- Using only the first half of the training data
- Stopping only once the training loss reaches exactly zero on every example
- Stopping training when validation performance stops improving
- Stopping training after exactly one epoch
Answer: C. Stopping training when validation performance stops improving
Explanation
Training loss keeps decreasing, but validation loss eventually rises as the model starts to memorise; early stopping keeps the best checkpoint.
Step-by-step solution
- Track validation loss after each epoch.
- When it stops improving for a set number of epochs (patience), stop.
- Keep the weights from the best validation epoch.
Why the other options are wrong
- A. Early stopping limits epochs, not data.
- B. Zero training loss usually means overfitting, the opposite of the goal.
- D. A fixed single epoch ignores validation performance.
Question 3Easy
A model has 99% training accuracy but only 70% test accuracy. This most likely indicates:
- A perfectly generalised model
- Overfitting
- Data that is too easy
- Underfitting
Answer: B. Overfitting
Explanation
A large gap between training and test performance means the model memorised training noise instead of general patterns.
Step-by-step solution
- Training accuracy is very high (99%).
- Test accuracy is much lower (70%).
- A large train-test gap means the model memorised training data: overfitting.
Why the other options are wrong
- A. A generalised model scores similarly on train and test.
- C. Easy data would give high test accuracy too.
- D. Underfitting shows poor training accuracy as well.
Tip: Big train-test gap = overfitting.
Question 4Easy
A model performs poorly on both training and test data. This usually indicates:
- Data leakage
- Underfitting (high bias)
- A perfect fit
- Overfitting (high variance)
Answer: B. Underfitting (high bias)
Explanation
The model is too simple to capture the underlying pattern. Use a more expressive model or better features.
Step-by-step solution
- Poor training performance means the model cannot even fit what it has seen.
- Poor test performance follows.
- That is underfitting, or high bias: the model is too simple.
Why the other options are wrong
- A. Leakage makes results look too good, not bad.
- C. A perfect fit would score well.
- D. Overfitting gives good training scores and poor test scores.
Question 5Medium
Which regularisation technique can shrink some coefficients exactly to zero, effectively performing feature selection?
- L2 (Ridge)
- Dropout
- L1 (Lasso)
- Batch normalisation
Answer: C. L1 (Lasso)
Explanation
The L1 penalty lambda x sum|w| has corners at zero, so optimal solutions are often sparse. L2 shrinks weights smoothly but rarely to exactly zero.
Step-by-step solution
- L1 adds lambda x sum of |w| to the loss.
- Its penalty has a sharp corner at zero, so the optimum often lands exactly at w = 0.
- Zeroed weights drop those features: built-in feature selection.
Why the other options are wrong
- A. L2 shrinks weights towards zero but rarely makes them exactly zero.
- B. Dropout disables neurons during training; it does not zero coefficients permanently.
- D. Batch normalisation rescales activations; it is not a coefficient penalty.
Question 6Medium
What does dropout do during neural network training?
- Permanently deletes the layers that contribute least to the model's accuracy
- Lowers the learning rate when validation loss rises
- Removes training examples with high loss
- Randomly disables a fraction of neurons on each training step
Answer: D. Randomly disables a fraction of neurons on each training step
Explanation
Dropout acts like training an ensemble of thinned networks. At inference all neurons are used, with activations scaled appropriately.
Step-by-step solution
- During each training step, each neuron is switched off with probability p.
- The network cannot rely on any single neuron, so it learns redundant features.
- At inference time all neurons are used (with scaling).
Why the other options are wrong
- A. Dropout is random and temporary, not permanent deletion.
- B. Lowering the learning rate is a scheduler, not dropout.
- C. Dropout drops neurons, not training examples.
Question 7Medium
In the bias-variance trade-off, increasing model complexity typically:
- Decreases bias and increases variance
- Decreases both bias and variance
- Increases both bias and variance
- Increases bias and decreases variance
Answer: A. Decreases bias and increases variance
Explanation
Complex models fit training data more closely (lower bias) but are more sensitive to the particular training sample (higher variance).
Step-by-step solution
- A more complex model can fit the training data more closely, so bias falls.
- It also reacts more to the particular training sample, so variance rises.
- The best model balances the two.
Why the other options are wrong
- B. Usually one goes down while the other goes up.
- C. Complexity reduces bias.
- D. This is the effect of reducing complexity.
Tip: More complex: bias down, variance up.
Question 8Hard
In Ridge regression, what happens as the regularisation strength lambda is increased towards a very large value?
- Exactly half of the coefficients become zero
- Coefficients shrink towards zero and the model underfits
- The model becomes identical to ordinary least squares
- Coefficients grow without limit and the model overfits the training data
Answer: B. Coefficients shrink towards zero and the model underfits
Explanation
The loss is MSE + lambda x sum(w^2).
A huge lambda makes the penalty dominate, pushing weights close to zero; lambda = 0 gives ordinary least squares.
Step-by-step solution
- Ridge loss = squared error + lambda x sum of w squared.
- Larger lambda makes big weights more costly.
- As lambda grows very large, weights shrink towards zero and the model underfits.
Why the other options are wrong
- A. Ridge shrinks all weights smoothly; it does not zero exactly half.
- C. OLS is what you get when lambda = 0, not when it is large.
- D. Regularisation shrinks weights; it does not make them grow.
Tip: lambda = 0 -> plain regression; lambda huge -> flat model.
Practise all 8 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →