used numpy for stats required according to specs