Added more numpy functions to calculate statistics