Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Simulate a discrete random walk in Z2 starting at the origin and moving north with probability p1=0.30, south with p2=0.05, east with p3=0.75, and west

Simulate a discrete random walk in Z2 starting at the origin and moving north with probability p1=0.30, south with p2=0.05, east with p3=0.75, and west with p4=0.81. For your random walk,

(a)

Plot 5 realisations of your walk with 2500 steps on the same plot (it may be wise to use dierent colours for each random walk).

(b)

Calculate the expected length of the walk after 2500 steps (i.e. the distance travelled from the starting point). [You will need to run many walks to get an accurate estimate, experiment with the number of walks until you get a number that gives a suciently stable expectation value. You can also choose whatever distance measure you wish]

Please state clearly the choices you have made and and values used.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

Students also viewed these Databases questions

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago

Question

=+ Who is the negotiation partner at company level?

Answered: 1 week ago

Question

=+Which associations exist?

Answered: 1 week ago