Consider a circle. We perform random walks on the boundary of this circle. Without loss of generality, consider the circle to be centered at the origin, and our random walk starts $0^{\circ}$. You return to the starting point after $n$ steps.
We will make $n$ total steps. Each step you randomly traverse to some point on the boundary. There is a straight line that connects the points for each step. So for example, if you traverse to $90^{\circ}$ on the first step, there will be a straight line going from $0^{\circ}$ to $90^{\circ}$, and then if you go to $155^{\circ}$ afterwards, there will then be another line going from $90^{\circ}$ to $155^{\circ}$.
What is the expected number of intersections created by these line segments?
I think this question may be somewhat similar to Expected number of intersection points when $n$ random chords are drawn in a circle, but here all the $n$ line segments are connected. Which means two consecutive line segments cannot intersect one another. So this reduces the maximum number of intersections from $\frac{n(n-1)}{2}$ to $\frac{(n-1)(n-2)}{2}$, I believe. The probability of an intersection between these pairs is still $1/3$.
So does the solution simply just become $\frac{1}{6}(n-1)(n-2)$? I saw some discussions offline that it could be $\frac{1}{6}n(n-3)$.