Statistics for Planning and data analysis system using machine learning algorithms