You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/posts/Random-Horse(Paths).md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ tags = ['Random', 'Recursion']
10
10
# ]
11
11
+++
12
12
13
-
For each index $m\in{0,\dots,20}$ define a discrete planar random walk $f_m:{0,1,\dots,1000}\to\mathbb{Z}^2$ by the recurrence
13
+
If you want to see the graph evolving for $n$ ranging from $0$ to $1000$ for each of the 21 paths see this [video](#fig-4).
14
+
15
+
For each index $m\in\set{0,\dots,20}$ define a discrete planar random walk $f_m:\set{0,1,\dots,1000}\to\mathbb{Z}^2$ by the recurrence
14
16
15
17
$$
16
18
f_m(0) = (0,0),
@@ -22,10 +24,10 @@ $$
22
24
f_m(n) = f_m(n-1) + \big(X_{m,n},Y_{m,n}\big),
23
25
$$
24
26
25
-
where $X_{m,n}$ and $Y_{m,n}$ are independent random variables taking values in ${-1, +1}$ (each with equal probability). In words: at each step the walker moves one unit horizontally and one unit vertically, each independently chosen to be +1 or −1.
27
+
where $X_{m,n}$ and $Y_{m,n}$ are independent random variables taking values in $\set{-1, +1}$ (each with probability $\frac12$). In other words: at each step the walker moves one unit horizontally and one unit vertically, each independently chosen to be +1 or −1.
26
28
27
-
So, the next step is a diagonal step. From $f_k$, there are four equally likely choices, each with probability $\frac{1}{4}$:
28
-
$$f_{k+1} \in \set{ f_k + (\pm 1,\, \pm 1) \}$$
29
+
So, the next step is a diagonal step. From $f(k)$, there are four equally likely choices, each with probability $\frac{1}{4}$:
30
+
$$f(k+1) \in \set{ f(k) + (\pm 1, \pm 1) \}$$
29
31
which looks like the following [graph](#fig-1).
30
32
{{< tikz >}}
31
33
\begin{tikzpicture}[transform shape, scale=2]
@@ -55,7 +57,7 @@ which looks like the following [graph](#fig-1).
55
57
56
58
\end{tikzpicture}
57
59
{{< /tikz >}}
58
-
Graphing all possible branches of $f_{k-1} \to f_k \to f_{k+1}$, we notice that exactly one of the four possible steps from $f_k$ leads back to $f_{k-1}$, giving a probability of $\frac{1}{4}$ of returning, which explains the isolated spikes observed in the [graph](#fig-2).
60
+
When we graph all possible branches of $f(k-1) \to f(k) \to f(k+1)$, we notice that exactly one of the four possible steps from $f(k)$ leads back to $f(k-1)$, giving a probability of $\frac{1}{4}$ of returning, which explains the isolated spikes observed in the [graph](#fig-2).
0 commit comments