Python Code For Statistical Analysis