On page 50, line 2 of the High Dimensional Probability book (HDP-book.pdf), the author asserts that the expected angle between 2 random directions is $\pi/4$, however, I keep ending up with $\pi/2$. Here is how I proceed:
The cumulative density function (CDF) of the angle $\theta$ is $$F_{\theta}(\alpha) = \Pr[\theta \leq \alpha] = 2 \cdot \frac{\alpha}{2\pi} = \frac{\alpha}{\pi}, \,\, \alpha \in [0,\pi]$$ The factor of $2$ is because two distinct arrangements of random vectors have the same angle between them (e.g., vectors oriented at $60^{\circ}$ and $300^{\circ}$ w.r.t each other have angle $60^{\circ}$ between them).
Hence, the probability density function (PDF) $f_{\theta}$ is $$f_{\theta}(\alpha) = \frac{1}{\pi}, \,\, \alpha \in [0, \pi] $$ Using this, the expected angle becomes $$\mathbb{E}[\theta] = \int_{0}^{\pi}\alpha f_{\theta}(\alpha) \, d\alpha = \frac{\pi}{2}$$
This also seems to agree with an existing post (Distribution of angle between random vectors). Could there be a different interpretation of the statement in the book, which could lead to $\mathbb{E}[\theta]=\pi/4$?