created a function which analyzes raw results produced from monte carlo wtih sgpData