- #1
member 428835
- Homework Statement
- a) Beginning at the origin and taking one unit steps in either the ##x## or ##y## direction at random, what is the expected number of steps until you reach the square boundary with sides length 2?
b) How about until you reach the line ##y=1-x## from the origin?
- Relevant Equations
- Nothing comes to mind.
a) Let ##N_i## be the expected number of jumps to get to one of the square sides from minimal step number ##i## from the origin (so (1,1) would be ##i=2## since it takes 2 steps minimally to get there). Then we have:
##N_0 = 1+N_1##
##N_1 = 1 + 0.25N_0 + 0.5N_2 + 0.25##
##N_2 = 1 + 0.5N_1 + 0.5##
where ##i## denotes ##i## steps from the origin. This implies ##N_0 = 5.5##.
b) This one seems tougher. However, after I drew a picture, it seems every down or left movement is a step away from the line and every up or right movement is a step toward the line, so kind of 1D? Also, the line ##y=1-x \implies y+x=1##. Thus, if we say ##z=y+x## then we are looking for ##z=1##. So we can think of this problem as a 1D number line, we start at point 0 and randomly walk left or right 1 distance and then repeat. Let ##X## be the number of steps to get from 0 to 1. Then we have ##X = 0.5 + 0.5(1 + 2X) \implies X = X + 1##, which is only true when ##X \to \infty##. Am I missing something here?
##N_0 = 1+N_1##
##N_1 = 1 + 0.25N_0 + 0.5N_2 + 0.25##
##N_2 = 1 + 0.5N_1 + 0.5##
where ##i## denotes ##i## steps from the origin. This implies ##N_0 = 5.5##.
b) This one seems tougher. However, after I drew a picture, it seems every down or left movement is a step away from the line and every up or right movement is a step toward the line, so kind of 1D? Also, the line ##y=1-x \implies y+x=1##. Thus, if we say ##z=y+x## then we are looking for ##z=1##. So we can think of this problem as a 1D number line, we start at point 0 and randomly walk left or right 1 distance and then repeat. Let ##X## be the number of steps to get from 0 to 1. Then we have ##X = 0.5 + 0.5(1 + 2X) \implies X = X + 1##, which is only true when ##X \to \infty##. Am I missing something here?