Discriminant analysis and applications