Altcoins: Determine how many confirmations to require to deposit
Yes, there is a mathematical grounding behind this, namely Poisson distribution. See Satoshi's original paper (last pages) for some details about calculating the odds of a successful double spend attack given a certain portion of the networks computation capacity. This also means of course that networks with a larger hashing power are more susceptible to an attack than networks with lower hashing power.