Statistical algorithm used in common data mining course