Selectivity estimates are produced that meet a desired confidence
threshold. To determine the confidence level of a given selectivity
estimate for a query expression, the query expression is evaluated on a
sample tuples. A probability density function is derived based on the
number of tuples in the sample that satisfy the query expression. The
cumulative distribution for the probability density function is solved
for the given threshold to determine a selectivity estimate at the given
confidence value.