calculatePvalue function

p-value calculation.