Background Motivation: There are various questions asked about randomly drawn chords and their number of intersections in a circle; for example, MSE 73033 and MO 284124. I am interested here as to a discretized version where the circle is replaced by an $n$-gon and, if all goes well, then one can consider what happens as $n \rightarrow \infty$. (I originally asked this question on twitter, and, although there are some proposed small case computations, I cannot vouch for their correctness. See the thread here.)
Question: Consider an $n$-gon ($n \geq 4$) and a list of all non-adjacent vertex pairs. Pick an unchosen pair from the list at random and connect the vertices. If you continue this process without replacement, then what is the expected number of diagonals drawn before two intersect in the interior of the $n$-gon?
(I am, in particular, looking for a formula that is a function of $n$.)
Note 1: If there is an alternative formulation of the problem with a different method of choosing the diagonals "at random" that yields a different result, then I would welcome such answers in that direction, too.
Note 2: If this result is already known, then a pointer to its answer would be appreciated! I did not locate an answer in my exploration of MSE, but it seems a natural enough question for me to have missed it here (or elsewhere).


Let $X_n$ be the number of diagonals drawn until two intersect in the interior of the $n$-gon.
We can write $\mathbb{E}X_n$ as $$\mathbb{E}X_n = \sum_{k=1}^{\infty}P(X_n\geq k)=\sum_{k=1}^{n-2}P(X_n\geq k).$$
Note that event $\{X_n\geq k\}$ occurs iff the first $k-1$ sampled diagonals don't intersect.
The probability $P(X_n\geq k)$ can be written as $$P(X_n\geq k)= \frac{s_{n,k-1}}{d_{n,k-1}},$$
where $d_{n,k-1}$ is the number of ways to choose $k-1$ diagonals, and $s_{n,k-1}$ is the number of ways to dissect the $n$-gon with $k-1$ non-crossing diagonals.
The first term is given by: $$d_{n,k-1} =\binom{\binom{n}{2}-n}{k-1}=\binom{\frac{n(n-3)}{2}}{k-1}.$$
The second term is given by a generalization of the Catalan numbers, called the Kirkman-Cayley dissection numbers [1]:
$$s_{n,k-1}=\frac{1}{k}\binom{n+k-2}{k-1}\binom{n-3}{k-1}.$$
Putting this together gives
$$\mathbb{E}X_n = \sum_{k=1}^{n-2}P(X_n\geq k)=\sum_{k=1}^{n-2}\frac{\binom{n+k-2}{k-1}\binom{n-3}{k-1}}{k\binom{\frac{1}{2}n(n-3)}{k-1}}.$$
I'm not sure if there is a way to simplify this further.
Update (1/1): Sil found that WA gives a closed form for this sum in terms of the hypergeometric function:
$$\frac{1}{2}(_{2}F_{1}(−n+2,n−1;−\frac{(n−1)(n−2)}{2};1)−1).$$
The first few values:
Which agrees with leonbloy's answer for large $n$.