August 23rd, 2005, 5:53 am
In retrospect, it was a sitter .... but I can't pretend I got the answer after few hours of getting into a nasty loop.I finally got it this way -> Prob of reaching 3, before reaching -3 = 0.5 (by symmetry)Given that you are at 3, Prob of reaching 9, before reaching -3 is also 0.5 (again, by symmetry).So, the multiplication gives, 0.5*0.5=0.25 (as given by Karafka).Looking up "Gambler's ruin problem" at mathworld (as shawnchu told), gave an easier formula: n1/(n1+n2) .... I need to read up Doob's lemma, though.---------------------------------------------------------------------------------------------The source of this was a simplified version of an interview question: What's the probability of a reaching 9, before -3 by a variable following GBM? Just that, I feel that I simplified it too much.Anyway, twisting the original easy question, let's introduce a drift on the discrete-process X in a particular directionSo, if Heads, X(n+1)=X(n)+1.5if Tails, X(n+1)=X(n)-0.5(i) Now what's the probability of reaching 9, before -3(ii) What's the expected value of N, which is no. of tosses after which the "game" ends (... consider this process a game!).(iii) And finally, the real interview question -> what's the probability if, the drift is a function of the current value of X i.e. if Heads, X(n+1) = X(n)*1.25 + 1 if Tails, X(n+1) = X(n)*1.25 -1Hope, this upgraded teaser doesn't turn out to a sitter, as well. (Atleast I can't calculate the answers offhand on these ... but will be elated, if get them before I see them posted here edit: needed to fix some values, above. I know even the upgraded teaser is different from the original interview problem (since, the random variable has binomial distribution ... not normal. But I think it shouldn't hurt the essence of what they wanted to know). I fancy, if we were to use a normally distributed continuous random variable, the answer would be interesting in context of knock-in / knock-out options.With that I start getting a feeling, it's hardly a teaser but direct application of theory ... (which I need to ready up !). If so, those looking for the tease can ignore this. (Sorry, you had to read this very long post )
Last edited by
bhutes on August 22nd, 2005, 10:00 pm, edited 1 time in total.