THE LARGE DEVIATIONS OF ESTIMATING RATE-FUNCTIONS