返回题库

单位圆随机弦长的期望

Expected Chord Length

专题
Probability / 概率
难度
L4

题目详情

在单位圆的圆周上均匀随机选取两个点。求连接两点的弦长的期望。

答案形如 xπ\frac{x}{\pi},其中 xx 为有理数。求 xx

You uniformly select two random points from the circumference of the unit circle. Find the expected length of the chord (line segment) between the two points, with the answer in the form xπ\frac{x}{\pi} for some rational number xx. Find xx.

解析

设两点对应的圆心夹角(取较小的那个)为 Θ[0,π]\Theta\in[0,\pi],则可证明 Θ\Theta[0,π][0,\pi] 上均匀分布。

弦长为

L=2sinΘ2.L=2\sin\frac{\Theta}{2}.

因此

E[L]=1π0π2sinθ2dθ=4π.\mathbb{E}[L]=\frac{1}{\pi}\int_0^{\pi}2\sin\frac{\theta}{2}\,d\theta =\frac{4}{\pi}.

所以 x=4x=4


Original Explanation

Let θ\theta and ϕ\phi be IID Unif(0,2π)\text{Unif}(0, 2\pi). Picking the two points uniform on the circumference is equivalent to picking these two angles. The measure of the angle between θ\theta and ϕ\phi is (θϕ)(\theta - \phi). To get the length of the line segment connecting the two points, we can take a shortcut: the length here only depends on the distance between our points we select in terms of the angle.

Regardless of where we end up having our points located, we can just rotate the circle so that one of the two points is located at (1,0)(1, 0). We can fix θ1=0\theta_1 = 0. Thus, the length between θ1=0\theta_1 = 0 and the point at θ2=θ\theta_2 = \theta is (1cos(θ))2+sin2(θ)=21cos(θ)\sqrt{(1 - \cos(\theta))^2 + \sin^2(\theta)} = \sqrt{2} \sqrt{1 - \cos(\theta)}. This means that finding the expected length of the chord is equivalent to finding 2E[1cos(θ)]\sqrt{2}\mathbb{E}[\sqrt{1 - \cos(\theta)}], where θUnif(0,2π)\theta \sim \text{Unif}(0,2\pi).

Now, 2E[1cosθ]=22π02π1cosθdθ\sqrt{2}\mathbb{E}[\sqrt{1 - \cos\theta}] = \frac{\sqrt{2}}{2\pi}\int_0^{2\pi}\sqrt{1-\cos\theta}\,d\theta.

A simple approach is to conjugate the interior by multiplying and dividing by 1+cosθ\sqrt{1+\cos\theta} so that we get 1cos2θ=sinθ\sqrt{1-\cos^2\theta} = |\sin\theta|. Doing this, we get 22π02πsinθ1+cosθdθ\frac{\sqrt{2}}{2\pi}\displaystyle \int_0^{2\pi} \frac{|\sin\theta|}{\sqrt{1+\cos\theta}}\,d\theta.

Note that the region on (0,π)(0, \pi) and (π,2π)(\pi, 2\pi), our integrand is symmetric, so we can just evaluate over one interval and double it. This means our new integral is 2π0πsinθ1+cosθdθ\frac{\sqrt{2}}{\pi} \int_0^{\pi} \frac{\sin\theta}{\sqrt{1+\cos\theta}}\,d\theta. Let u=1+cosθu = 1 + \cos\theta. Then du=sinθdθdu = -\sin\theta\,d\theta. Our bounds would respectively become 22 and 00, but the negative from the dudu flips them back. Therefore, our new integral is 2π02u12du\frac{\sqrt{2}}{\pi} \int_0^2 u^{-\frac{1}{2}}\,du.

Evaluating this, we get 22πu02=4π\frac{2\sqrt{2}}{\pi} \cdot \sqrt{u} \Big|_0^2 = \frac{4}{\pi}.

x=4x = 4