Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Graphing Random Walk' topicStudent Support Forum > General > Archives > "Graphing Random Walk"

Next Comment >Help | Reply To Topic
Author Comment/Response
Graphing Random Walk
01/25/10 1:57pm

Hi there,

I am trying a produce a random walk for a distance n and my task is to
find how many times along the walk the difference between the two values
produced is 0. The walk gives a binary output and is linked to two
selective groups. I feel I have successfully completed this bit, but am
having difficulty plotting a graph to show this. The plot should be the x
value against the natural numbers, thus a visual description of how many
times the graph goes through the x-axis, to prove the Y value produced.

What function should I use to plot this graph?
Does the function need to be done within the "For" function?


If anyone has any ideas or clues as to how I can overcome this problem,
please be in touch.

Regards Hemant

Attachment: RandomWalk.nb, URL: ,

Subject (listing for 'Graphing Random Walk')
Author Date Posted
Graphing Random Walk Graphing Ran... 01/25/10 1:57pm
Re: Graphing Random Walk S. Saralamba 01/27/10 9:01pm
Re: Re: Graphing Random Walk Hemant Parmar 01/29/10 12:58pm
Re: Graphing Random Walk Peter Pein 01/28/10 3:07pm
Next Comment >Help | Reply To Topic