In Satoshi Nakamoto's paper : Bitcoin: A Peer-to-Peer Electronic Cash System, he describes a scenario where an attacker is trying to add falsified transactions to the blockchain.
He writes : "The race between the honest chain and an attacker chain can be characterized as a Binomial Random Walk. The success event is the honest chain being extended by one block, increasing its lead by $+1$, and the failure event is the attacker's chain being extended by one block, reducing the gap by $-1$.
We can calculate the probability he ever reaches break-even, or that an attacker ever catches up with the honest chain, as follows" :
Let $p = $ probability an honest node finds the next block
Let $q = $ probability the attacker finds the next block
Let $q_z = $ probability the attacker will ever catch up from $z$ blocks behind
And so $q_z = 1$ if $p \leq q$, and $q_z = (q/p)^z$ if $p > q$.
I'm not sure how he arrived at this. Firstly, I have no idea why $q_z = 1$ if $p \leq q$.
Secondly, from what I understand from a binomial distribution, the probability of the attacker catching up from $z$ blocks from behind should be equal to $z \choose z$ $q^z p^0 = q^z$. Any insights appreciated.