Question: MATLAB CODE ONLY For a biased random walk starting at (**parenthesis are subscripts**) W(0) = 0, W(t) = W(t?1) + s(t) where s(t) ={1, with
MATLAB CODE ONLY
For a biased random walk starting at (**parenthesis are subscripts**) W(0) = 0, W(t) = W(t?1) + s(t) where
s(t) ={1, with probability p,
s(t)={?1, with probability 1 ? p.
If p = 0.5, it is actually unbiased and the walk is equally likely to escape through the top or the bottom of the interval [?10, 10]. (That is, the walk stops when it reaches either 10 or ?10.) If p > 0.5, the walk is more likely to exit through the top than the bottom. Use Monte Carlo simulation with n = 104 to estimate the probabilities that the slightly biased random walk with p = 0.51 will exit through the top and bottom of the interval [?10, 10]. Also estimate the average escape time for each end of the interval.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
