forming module to perform stats fuctions and compare predictions