Variance in random Walk with Matlab
问题 I'm new to the forum and a beginner in programming. I have the task to program a random walk in Matlab (1D or 2D) with a variance that I can adjust. I found the code for the random walk, but I'm really confused where to put the variance. I thought that the random walk always has the same variance (= t ) so maybe I'm just lost in the math. How do I control the variance? 回答1: For a simple random walk, consider using the Normal distribution with mean 0 (also called 'drift') and a non-zero