trial_totals function

Trial Probability and Expected Counts