Mathematical methods for knowledge discovery and data mining