Expected lengths of confidence intervals based on empirical discrepancy statistics