random walks and more about data vizualization when the corrected version of the simulation is run on our two simple casesit yields exactly the expected answersusualdrunk random walk of steps mean cv nan max min usualdrunk random walk of steps mean cv max min when run on longer walks it printed usualdrunk random walk of steps mean cv max min usualdrunk random walk of steps mean cv max min usualdrunk random walk of steps mean cv max min usualdrunk random walk of steps mean cv max min as anticipatedthe average distance from the origin grows with the number of steps now let' look at plot of the mean distances from the origin to give sense of how fast the distance is growingwe have placed on the plot line showing the square root of the number of steps (and increased the number of steps to , , does this plot provide any information about the expected final location of drunkit does tell us that on average the drunk will be somewhere on circle with its center at the origin and with radius equal to the expected distance from the origin howeverit tells us very little about where we might actually find the drunk at the end of any particular walk we return to this topic later in this since the mean was zerothe coefficient of variation is undefined hence our implementation of cv returned the special "not numberfloating point value the plot showing the square root of the number of steps versus the distance from the origin is straight line because we used logarithmic scale on both axes