As the name suggests, underfitting means when the model doesn’t fit or in other words, is unable to predict the data accurately. Overfitting or underfitting does depend on the value of ‘K’ that you choose. Choosing a small values of ‘K’ in case of a large data set increases the chance of overfitting.