Consider some rate, i.e. fail rate where f is the number of fails and n is the number of attempts.
$$failrate = \frac{f}{n}$$
$$failrate = \frac{100}{100} = 1$$
$$failrate = \frac{99}{100} = .99$$
$$failrate = \frac{1}{1} = 1$$
If I were to sort on fail rate (descending) 1/1 would sort before 99/100. The resulting sort order of the above would be (1, 1, .99).
What would be a good method to influence the sort order such that number of attempts is also considered. My desired sort result is (1, .99, 1) because there were many more attempts (99 vs 1) and I consider this to be a better reflection of the fail result.
I would be helped if someone could point me to some methods or reading material on the above.