stochastic programsprobabilityand statistics this is an example of exponential decay in practiceexponential decay is often talked about in terms of half-lifei the expected time required for the initial value to decay by one can also talk about the half-life of single item for examplethe half-life of single radioactive atom is the time at which the probability of that atom having decayed is notice that as time increases the number of remaining molecules approaches zero but it will never quite get there this should not be interpreted as suggesting that fraction of molecule remains rather it should be interpreted as saying that since the system is probabilisticone can never guarantee that all of the molecules have been cleared what happens if we make the -axis logarithmic (by using pylab semilogy)we get the plot above and on the right the values on the -axis are changing exponentially quickly relative to the values on the -axis if we make the -axis itself change exponentially quicklywe get straight line the slope of that line is the rate of decay exponential growth is the inverse of exponential decay it too is quite commonly seen in nature compound interestthe growth of algae in swimming pooland the chain reaction in an atomic bomb are all examples of exponential growth exponential distributions can easily be generated by calling random expovariate the geometric distribution is the discrete analog of the exponential distribution it is usually thought of as describing the number of independent attempts required to achieve first success (or first failureimaginefor examplethat you have crummy car that starts only half of the time you turn the key geometric distribution could be used to characterize the expected number of times you would have to attempt to start the car before being successful this is illustrated by the histogram on the rightwhich was produced by the code in figure the histogram implies that most of the time you'll get the car going within few attempts on the other handthe long tail suggests that on occasion you may run the risk of draining your battery before the car gets going the name "geometric distributionarises from its similarity to "geometric progression geometric progression is any sequence of numbers in which each number other than the first is derived by multiplying the previous number by constant nonzero number euclid' elements proves number of interesting theorems about geometric progressions