Forgive me if I'm wrong but would that analysis not require the assumption of constant hashrate/difficulty over the period considered? If there is a sharp rise or fall in hashrate over the period then you will end up with some very improbable results.
Indeed, see my previous post. The parameter
T in those formulas is the actual mean time between blocks, defined by the current difficulty and current hashrate; not the ideal mean time.