Collection of basic stats functions and graph generation using matplotlib