Calculating probability with sample proportions