Quadratic Discriminant Analysis. Discriminant analysis encompasses methods that can be used for both classification and…