Variance of 2-D random walker

In summary, the speaker has created a 2D walker to compare different random number generators and is measuring the success of each walk using the distance from the origin to the endpoint. They are using the regular 2-norm and are struggling to determine the variance, specifically if it is 2n since Var(Z_i) equals the square root of 2. They also mention formatting on the forum and thank a user for their help. Another user provides clarification on the distinction between different random variables and their variances.
  • #1
ragnabob
1
0
I've made a 2D walker to compare different RNG's. I'm measuring the succes of each walk as the distance from the origin to the endpoint, using the regular 2-norm. The thing I can't seem to work out is the variance.

[tex]D_n=\sqrt(x_n^2+y_n^2)[/tex]

[tex]Var(D_n)=E[D_n^2]=E[Z_1^2+...+Z_n^2][/tex]

Since [itex]Var(Z_i)=\sqrt{2}[/itex] does this mean that the variance is [itex]2n[/itex]? Seems too easy...

Ps. I'm not sure how to make the formatting prettier, if someone can tell me, I'll edit it naturally!
Ps2. Thanks Stephen Tashi!
 
Last edited:
Physics news on Phys.org
  • #2
Ps. I'm not sure how to make the formatting prettier, if someone can tell me, I'll edit it naturally!

On this forum, surround the LaTex with "tags" rather than the dollar sign.

Code:
[tex]D_n=\sqrt{x_n^2+y_n^2}[/tex]

[tex]Var(D_n)=E[D_n^2]=E[Z_1^2+...+Z_n^2][/tex]

Since [itex]Var(Z_i)=\sqrt{2}[/itex] does this mean that the variance is [itex]2n[/itex] ?

[tex]D_n=\sqrt{x_n^2+y_n^2}[/tex]

[tex]Var(D_n)=E[D_n^2]=E[Z_1^2+...+Z_n^2][/tex]

Since [itex]Var(Z_i)=\sqrt{2}[/itex] does this mean that the variance is [itex]2n[/itex] ?
 
  • #3
Another thing about the forum: When you edit a post, sometimes "Save" doesn't display the LaTex. You must refresh the page to accomplish that.

[itex] Var(z_i) = \sqrt{2} [/itex] for the random variable [itex] z_i [/itex] that uses the square of the distance between the current position and the previous position. But this is not the same as using the distance between the current position and [itex] (x_0,y_0) [/itex].

For example, there is the distinction between
[tex] z_2 = \sqrt{(x_1-x_0)^2 + (y_1-y_0)^2} + \sqrt{( x_2-x_1)^2 + (y_2-y_1)^2} [/tex]

and

[tex] Z_2 = \sqrt{ (x_2-x_0)^2 + (y_2-y_0)^2} [/tex]
 
  • #4
ragnabob said:
I've made a 2D walker to compare different RNG's. I'm measuring the succes of each walk as the distance from the origin to the endpoint, using the regular 2-norm. The thing I can't seem to work out is the variance.

[tex]D_n=\sqrt(x_n^2+y_n^2)[/tex]

[tex]Var(D_n)=E[D_n^2]=E[Z_1^2+...+Z_n^2][/tex]

Since [itex]Var(Z_i)=\sqrt{2}[/itex] does this mean that the variance is [itex]2n[/itex]? Seems too easy...

Ps. I'm not sure how to make the formatting prettier, if someone can tell me, I'll edit it naturally!
Ps2. Thanks Stephen Tashi!


The sum of the variances of independent random variables is the variance of the sum. That should make it easy, unless I'm missing something.
 
  • #5


I would first like to commend you on your approach to comparing different random number generators (RNGs). Using a 2D walker and measuring the success based on the distance from the origin to the endpoint is a great way to evaluate the performance of each RNG.

Now, regarding your question about the variance, I would like to clarify a few things. First, the variance of a random variable is a measure of how spread out the values are from the average or expected value. In your case, the random variable is the distance from the origin to the endpoint, and the expected value is the average distance after n steps.

Second, the formula you have for the variance, Var(D_n) = E[D_n^2] = E[Z_1^2+...+Z_n^2], is correct. This means that the variance is equal to the expected value of the squared distance, which is the sum of squares of the individual distances for each step.

However, the next statement, "Since Var(Z_i)=√2 does this mean that the variance is 2n?" is not entirely accurate. The square root of 2 (√2) is the standard deviation of the random variable Z_i, which represents the distance for each individual step. The variance is actually equal to the sum of the squared standard deviations, i.e. Var(Z_i) = (√2)^2 = 2.

Therefore, the correct formula for the variance in your case would be Var(D_n) = 2n. This means that the variance of the distance after n steps is equal to 2 times the number of steps. This makes sense because as the number of steps increases, the distance from the origin to the endpoint also increases, resulting in a larger spread of values and thus a higher variance.

In conclusion, your approach to comparing RNGs using a 2D walker is valid and the formula for the variance is Var(D_n) = 2n. I hope this clarifies your question and helps you in your research. As for formatting, I would recommend using LaTeX for mathematical expressions to make it easier to read and understand. Thank you for sharing your work and good luck with your research!
 

1. What is a 2-D random walker?

A 2-D random walker is a mathematical model used to describe the random movement of a particle or object in two-dimensional space. It is often used in physics, biology, and other scientific fields to study and understand the behavior of particles or organisms.

2. How is the variance of a 2-D random walker calculated?

The variance of a 2-D random walker is calculated by taking the square of the distance of each step from the starting point, summing up all these squared distances, and then dividing by the total number of steps taken. This value can also be calculated using the mean squared displacement formula.

3. What does the variance of a 2-D random walker represent?

The variance of a 2-D random walker represents the average amount of dispersion or spread of the walker's position from its starting point after a certain number of steps. It is a measure of how much the walker's position varies from its expected position.

4. How does the variance of a 2-D random walker change over time?

The variance of a 2-D random walker typically increases over time, as the walker takes more steps and moves further away from its starting point. This is because the walker's position becomes more and more uncertain with each step it takes in a random direction.

5. What factors can affect the variance of a 2-D random walker?

The variance of a 2-D random walker can be affected by various factors such as the size of each step taken, the duration of each step, and the direction of each step. It can also be influenced by external factors such as the presence of barriers or obstacles that may affect the walker's movement.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
4K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
8K
  • General Math
4
Replies
125
Views
16K
Back
Top