Use the positive-integer geometric distribution, for , initially with . Put . The precise good rate function on is
The large-deviation speed is . We prove both bounds of the large deviation principle for .
For , the geometric tail gives the exact expression
Let be a closed set. If it does not meet its probability is zero. If it contains zero, . Otherwise, if it meets the nonnegative half-line, its least possible nonnegative value is positive: a sequence in approaching zero would force zero into the closed set. Its event is contained in , giving
For an open set containing , choose positive integers with . Eventually , and
If , the event alone gives lower exponential rate zero; alternatively the probability of a neighborhood of zero tends to one. Optimizing over proves the open-set lower bound. Sets containing no nonnegative point require only the trivial lower bound .
The rate function is lower semicontinuous at zero as well as elsewhere, and for finite is compact. Hence the large deviation principle has a good rate function. This establishes the large deviations of a scaled geometric random variable. For , deterministically and the rate instead is zero at and infinite elsewhere; the displayed logarithmic coefficient must not be treated as an ordinary finite number in that case.