Before performing classification, it is important to ensure that the dataset used does not contain missing data and imbalanced data. Missing data is a condition where some information or data from the dataset is not available. Imbalanced data is a condition where the number of observations in one class in a dataset is much greater than the number of observations in other classes. The purpose of…