Question: Write a function > MovingParticle < - function ( ) which returns the trajectory of particle s move. The positions Ak should be stored as
Write a function
MovingParticlefunction
which returns the trajectory of particles move. The positions Ak should be stored as columns of a matix with two rows.
ii Plot trajectories of the random walks generated by your code.
iii. Use a Monte Carlo simulation with at least repeated experiments to estimate the prob
ability that the MovingParticle comes back to the origin in at most steps
in at most steps
in at most steps
iv Use a Monte Carlo simulation with at least repeated experiments to estimate the avarage number of steps needed that the MovingParticle comes back to the origin
in at most steps in at most steps in at most steps
SOLVE USING R PROGRAM
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
