Statistical learning algorithm (Li Hang)