Angles between flats

From The Right Wiki
(Redirected from Principal angles)
Jump to navigationJump to search

The concept of angles between lines (in the plane or in space), between two planes (dihedral angle) or between a line and a plane can be generalized to arbitrary dimensions. This generalization was first discussed by Camille Jordan.[1] For any pair of flats in a Euclidean space of arbitrary dimension one can define a set of mutual angles which are invariant under isometric transformation of the Euclidean space. If the flats do not intersect, their shortest distance is one more invariant.[1] These angles are called canonical[2] or principal.[3] The concept of angles can be generalized to pairs of flats in a finite-dimensional inner product space over the complex numbers.

Jordan's definition

Let F and G be flats of dimensions k and l in the n-dimensional Euclidean space En. By definition, a translation of F or G does not alter their mutual angles. If F and G do not intersect, they will do so upon any translation of G which maps some point in G to some point in F. It can therefore be assumed without loss of generality that F and G intersect. Jordan shows that Cartesian coordinates x1,,xρ, y1,,yσ, z1,,zτ, u1,,uυ, v1,,vα, w1,,wα in En can then be defined such that F and G are described, respectively, by the sets of equations

x1=0,,xρ=0,
u1=0,,uυ=0,
v1=0,,vα=0

and

x1=0,,xρ=0,
z1=0,,zτ=0,
v1cosθ1+w1sinθ1=0,,vαcosθα+wαsinθα=0

with 0<θi<π/2,i=1,,α. Jordan calls these coordinates canonical. By definition, the angles θi are the angles between F and G. The non-negative integers ρ,σ,τ,υ,α are constrained by

ρ+σ+τ+υ+2α=n,
σ+τ+α=k,
σ+υ+α=.

For these equations to determine the five non-negative integers completely, besides the dimensions n,k and and the number α of angles θi, the non-negative integer σ must be given. This is the number of coordinates yi, whose corresponding axes are those lying entirely within both F and G. The integer σ is thus the dimension of FG. The set of angles θi may be supplemented with σ angles 0 to indicate that FG has that dimension. Jordan's proof applies essentially unaltered when En is replaced with the n-dimensional inner product space n over the complex numbers. (For angles between subspaces, the generalization to n is discussed by Galántai and Hegedũs in terms of the below variational characterization.[4])[1]

Angles between subspaces

Now let F and G be subspaces of the n-dimensional inner product space over the real or complex numbers. Geometrically, F and G are flats, so Jordan's definition of mutual angles applies. When for any canonical coordinate ξ the symbol ξ^ denotes the unit vector of the ξ axis, the vectors y^1,,y^σ, w^1,,w^α, z^1,,z^τ form an orthonormal basis for F and the vectors y^1,,y^σ, w^'1,,w^'α, u^1,,u^υ form an orthonormal basis for G, where

w^'i=w^icosθi+v^isinθi,i=1,,α.

Being related to canonical coordinates, these basic vectors may be called canonical. When ai,i=1,,k denote the canonical basic vectors for F and bi,i=1,,l the canonical basic vectors for G then the inner product ai,bj vanishes for any pair of i and j except the following ones.

y^i,y^i=1,i=1,,σ,w^i,w^'i=cosθi,i=1,,α.

With the above ordering of the basic vectors, the matrix of the inner products ai,bj is thus diagonal. In other words, if (a'i,i=1,,k) and (b'i,i=1,,) are arbitrary orthonormal bases in F and G then the real, orthogonal or unitary transformations from the basis (a'i) to the basis (ai) and from the basis (b'i) to the basis (bi) realize a singular value decomposition of the matrix of inner products a'i,b'j. The diagonal matrix elements ai,bi are the singular values of the latter matrix. By the uniqueness of the singular value decomposition, the vectors y^i are then unique up to a real, orthogonal or unitary transformation among them, and the vectors w^i and w^'i (and hence v^i) are unique up to equal real, orthogonal or unitary transformations applied simultaneously to the sets of the vectors w^i associated with a common value of θi and to the corresponding sets of vectors w^'i (and hence to the corresponding sets of v^i). A singular value 1 can be interpreted as cos0 corresponding to the angles 0 introduced above and associated with FG and a singular value 0 can be interpreted as cosπ/2 corresponding to right angles between the orthogonal spaces FG and FG, where superscript denotes the orthogonal complement.

Variational characterization

The variational characterization of singular values and vectors implies as a special case a variational characterization of the angles between subspaces and their associated canonical vectors. This characterization includes the angles 0 and π/2 introduced above and orders the angles by increasing value. It can be given the form of the below alternative definition. In this context, it is customary to talk of principal angles and vectors.[3]

Definition

Let V be an inner product space. Given two subspaces 𝒰,𝒲 with dim(𝒰)=kdim(𝒲):=, there exists then a sequence of k angles 0θ1θ2θkπ/2 called the principal angles, the first one defined as

θ1:=min{arccos(|u,w|uw)|u𝒰,w𝒲}=(u1,w1),

where , is the inner product and the induced norm. The vectors u1 and w1 are the corresponding principal vectors. The other principal angles and vectors are then defined recursively via

θi:=min{arccos(|u,w|uw)|u𝒰,w𝒲,uuj,wwjj{1,,i1}}.

This means that the principal angles (θ1,,θk) form a set of minimized angles between the two subspaces, and the principal vectors in each subspace are orthogonal to each other.

Examples

Geometric example

Geometrically, subspaces are flats (points, lines, planes etc.) that include the origin, thus any two subspaces intersect at least in the origin. Two two-dimensional subspaces 𝒰 and 𝒲 generate a set of two angles. In a three-dimensional Euclidean space, the subspaces 𝒰 and 𝒲 are either identical, or their intersection forms a line. In the former case, both θ1=θ2=0. In the latter case, only θ1=0, where vectors u1 and w1 are on the line of the intersection 𝒰𝒲 and have the same direction. The angle θ2>0 will be the angle between the subspaces 𝒰 and 𝒲 in the orthogonal complement to 𝒰𝒲. Imagining the angle between two planes in 3D, one intuitively thinks of the largest angle, θ2>0.

Algebraic example

In 4-dimensional real coordinate space R4, let the two-dimensional subspace 𝒰 be spanned by u1=(1,0,0,0) and u2=(0,1,0,0), and let the two-dimensional subspace 𝒲 be spanned by w1=(1,0,0,a)/1+a2 and w2=(0,1,b,0)/1+b2 with some real a and b such that |a|<|b|. Then u1 and w1 are, in fact, the pair of principal vectors corresponding to the angle θ1 with cos(θ1)=1/1+a2, and u2 and w2 are the principal vectors corresponding to the angle θ2 with cos(θ2)=1/1+b2. To construct a pair of subspaces with any given set of k angles θ1,,θk in a 2k (or larger) dimensional Euclidean space, take a subspace 𝒰 with an orthonormal basis (e1,,ek) and complete it to an orthonormal basis (e1,,en) of the Euclidean space, where n2k. Then, an orthonormal basis of the other subspace 𝒲 is, e.g.,

(cos(θ1)e1+sin(θ1)ek+1,,cos(θk)ek+sin(θk)e2k).

Basic properties

  • If the largest angle is zero, one subspace is a subset of the other.
  • If the largest angle is π/2, there is at least one vector in one subspace perpendicular to the other subspace.
  • If the smallest angle is zero, the subspaces intersect at least in a line.
  • If the smallest angle is π/2, the subspaces are orthogonal.
  • The number of angles equal to zero is the dimension of the space where the two subspaces intersect.

Advanced properties

  • Non-trivial (different from 0 and π/2 [5]) angles between two subspaces are the same as the non-trivial angles between their orthogonal complements.[6][7]
  • Non-trivial angles between the subspaces 𝒰 and 𝒲 and the corresponding non-trivial angles between the subspaces 𝒰 and 𝒲 sum up to π/2.[6][7]
  • The angles between subspaces satisfy the triangle inequality in terms of majorization and thus can be used to define a distance on the set of all subspaces turning the set into a metric space.[8]
  • The sine of the angles between subspaces satisfy the triangle inequality in terms of majorization and thus can be used to define a distance on the set of all subspaces turning the set into a metric space.[6] For example, the sine of the largest angle is known as a gap between subspaces.[9]

Extensions

The notion of the angles and some of the variational properties can be naturally extended to arbitrary inner products[10] and subspaces with infinite dimensions.[7]

Computation

Historically, the principal angles and vectors first appear in the context of canonical correlation and were originally computed using SVD of corresponding covariance matrices. However, as first noticed in,[3] the canonical correlation is related to the cosine of the principal angles, which is ill-conditioned for small angles, leading to very inaccurate computation of highly correlated principal vectors in finite precision computer arithmetic. The sine-based algorithm[3] fixes this issue, but creates a new problem of very inaccurate computation of highly uncorrelated principal vectors, since the sine function is ill-conditioned for angles close to π/2. To produce accurate principal vectors in computer arithmetic for the full range of the principal angles, the combined technique[10] first compute all principal angles and vectors using the classical cosine-based approach, and then recomputes the principal angles smaller than π/4 and the corresponding principal vectors using the sine-based approach.[3] The combined technique[10] is implemented in open-source libraries Octave[11] and SciPy[12] and contributed [13] and [14] to MATLAB.

See also

References

  1. 1.0 1.1 1.2 Jordan, Camille (1875). "Essai sur la géométrie à n dimensions". Bulletin de la Société Mathématique de France. 3: 103–174. doi:10.24033/bsmf.90.
  2. Afriat, S. N. (1957). "Orthogonal and oblique projectors and the characterization of pairs of vector spaces". Mathematical Proceedings of the Cambridge Philosophical Society. 53 (4): 800–816. doi:10.1017/S0305004100032916. S2CID 122049149.
  3. 3.0 3.1 3.2 3.3 3.4 Björck, Å.; Golub, G. H. (1973). "Numerical Methods for Computing Angles Between Linear Subspaces". Mathematics of Computation. 27 (123): 579–594. doi:10.2307/2005662. JSTOR 2005662.
  4. Galántai, A.; Hegedũs, Cs. J. (2006). "Jordan's principal angles in complex vector spaces". Numerical Linear Algebra with Applications. 13 (7): 589–598. CiteSeerX 10.1.1.329.7525. doi:10.1002/nla.491. S2CID 13107400.
  5. Halmos, P.R. (1969), "Two subspaces", Transactions of the American Mathematical Society, 144: 381–389, doi:10.1090/S0002-9947-1969-0251519-5
  6. 6.0 6.1 6.2 Knyazev, A.V.; Argentati, M.E. (2006), "Majorization for Changes in Angles Between Subspaces, Ritz Values, and Graph Laplacian Spectra", SIAM Journal on Matrix Analysis and Applications, 29 (1): 15–32, CiteSeerX 10.1.1.331.9770, doi:10.1137/060649070, S2CID 16987402
  7. 7.0 7.1 7.2 Knyazev, A.V.; Jujunashvili, A.; Argentati, M.E. (2010), "Angles between infinite dimensional subspaces with applications to the Rayleigh–Ritz and alternating projectors methods", Journal of Functional Analysis, 259 (6): 1323–1345, arXiv:0705.1023, doi:10.1016/j.jfa.2010.05.018, S2CID 5570062
  8. Qiu, L.; Zhang, Y.; Li, C.-K. (2005), "Unitarily invariant metrics on the Grassmann space" (PDF), SIAM Journal on Matrix Analysis and Applications, 27 (2): 507–531, doi:10.1137/040607605
  9. Kato, D.T. (1996), Perturbation Theory for Linear Operators, Springer, New York
  10. 10.0 10.1 10.2 Knyazev, A.V.; Argentati, M.E. (2002), "Principal Angles between Subspaces in an A-Based Scalar Product: Algorithms and Perturbation Estimates", SIAM Journal on Scientific Computing, 23 (6): 2009–2041, Bibcode:2002SJSC...23.2008K, CiteSeerX 10.1.1.73.2914, doi:10.1137/S1064827500377332
  11. Octave function subspace
  12. SciPy linear-algebra function subspace_angles
  13. MATLAB FileExchange function subspace
  14. MATLAB FileExchange function subspacea