Calculate confidence level of data