Skip to content
nonconvexcard

The density of the cosine between random directions

ProofAdvanced⏱ 1 hourRAGcosinedensityspherenear-orthogonality

Problem

Derive the density ϱd(t)∝(1−t2)(d−3)/2\varrho_d(t)\propto(1-t^2)^{(d-3)/2} of ⟨u,v⟩\langle u,v\rangle for independent uniform directions in Rd\R^d, compute its variance, and evaluate the standard deviation at d=128,768,4096d = 128, 768, 4096.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Three similarities agree on the unit sphereRAGProofFoundation15 min
A sufficient condition for correct retrievalRAGProofIntermediate30 min
Measure anisotropy in an embedding space runRAGCodingIntermediate1 hour
Simulate the measure of a spherical cap runHigh-Dim ProbabilityCodingIntermediate30 min
Gaussian width of the sphere and of the sparse setHigh-Dim ProbabilityProofAdvanced30 min