Let's represent an $n$-dimensional affine space $L$ as an affine frame, so an origin point $p$ and linear basis $\{ e_1, e_2, ..., e_n \}$. How to compute the minimum Euclidean distance between affine spaces $L_1$ and $L_2$ using the least squares method?
2026-03-30 02:46:40.1774838800
Distance between affine spaces using least squares method
614 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in GEOMETRY
- Point in, on or out of a circle
- Find all the triangles $ABC$ for which the perpendicular line to AB halves a line segment
- How to see line bundle on $\mathbb P^1$ intuitively?
- An underdetermined system derived for rotated coordinate system
- Asymptotes of hyperbola
- Finding the range of product of two distances.
- Constrain coordinates of a point into a circle
- Position of point with respect to hyperbola
- Length of Shadow from a lamp?
- Show that the asymptotes of an hyperbola are its tangents at infinity points
Related Questions in EUCLIDEAN-GEOMETRY
- Visualization of Projective Space
- Triangle inequality for metric space where the metric is angles between vectors
- Circle inside kite inside larger circle
- If in a triangle ABC, ∠B = 2∠C and the bisector of ∠B meets CA in D, then the ratio BD : DC would be equal to?
- Euclidean Fifth Postulate
- JMO geometry Problem.
- Measure of the angle
- Difference between parallel and Equal lines
- Complex numbers - prove |BD| + |CD| = |AD|
- Find the ratio of segments using Ceva's theorem
Related Questions in LEAST-SQUARES
- Is the calculated solution, if it exists, unique?
- Statistics - regression, calculating variance
- Dealing with a large Kronecker product in Matlab
- How does the probabilistic interpretation of least squares for linear regression works?
- Optimizing a cost function - Matrix
- Given matrix $Q$ and vector $s$, find a vector $w$ that minimizes $\| Qw-s \|^2$
- Defects of Least square regression in some textbooks
- What is the essence of Least Square Regression?
- Alternative to finite differences for numerical computation of the Hessian of noisy function
- Covariance of least squares parameter?
Related Questions in AFFINE-GEOMETRY
- Prove that Newton's Method is invariant under invertible linear transformations
- Equality of affine subsets
- How do you prove that an image preserving barycentric coordinates w.r.t two triangles is an affine transformation?
- Show that $\mathcal{I}(V)$ is the product ideal of $k=\mathbb{F}_2$
- Affine Spaces Exersice
- Intersection of two affine subspaces in vector space
- Averages of side and averages of angles in a triangle
- Prove that a Balanced Incomplete Block Design with parameters $(n^2, n^2+n, n+1, n, 1)$ is a finite Affine Plane
- Proving an affine transformation preserves distance.
- Connectedness and path connectedness, of irreducible affine algebraic set in $\mathbb C^n$, under usual Euclidean topology
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Here is how I would try: let the two spaces be ${\cal A}$ and ${\cal B}$ and let $A\in {\cal A}$ and $B \in {\cal B}$ be two points that minimize $d(A, B)^2$. A necessary and sufficient condition is that the line $AB$ is orthogonal to the affine manifolds ${\cal A}$ and ${\cal B}$. Let the coordinates of $A$ and $B$ in the frame $(p, e_1,\ldots,e_n)$ be
$$A(a_1,\ldots, a_n),\quad B(b_1,\ldots, b_n)$$
Let ${\cal A}$ be defined by affine conditions $$\varphi_i(a_1,\ldots, a_n) = \alpha_i$$ Let ${\cal B}$ be defined by affine conditions $$\psi_j(b_1,\ldots, b_n) = \beta_j$$ Assuming $e_1,\ldots,e_n$ is an orthonormal basis, the orthogonality condition leads to the linear system $$ \left\{ \begin{array}\\ \varphi_i(a_1,\ldots, a_n) = \alpha_i\\ \psi_j(b_1,\ldots, b_n) = \beta_j\\ B - A = \sum_i {\lambda_i\varphi_i}\\ B - A = \sum_j \mu_j\psi_j \end{array} \right. $$ Solve this in the unknowns $a_k$, $b_k$, $\lambda_k$, $\mu_k$. The distance between the manifolds is then $d(A, B)$.
Numerical example: take the two straight lines in ${\mathbb{R}}^{3}$ defined respectively by the equations
$$\left\{\begin{array}{rcl}x+y+z&=&1\\ 2 x-y+3 z&=&2 \end{array}\right.$$
and
$$\left\{\begin{array}{rcl}x-2 y-z&=&{-1}\\ 3 x-4 y+z&=&1 \end{array}\right.$$
The above procedure leads to the system
$$\left\{\begin{array}{rcllllllllll}1&=&{a}_{1}&{+{a}_{2}}&{+{a}_{3}}&&&&&&&\\ 2&=&2 {a}_{1}&{-{a}_{2}}&{+3} {a}_{3}&&&&&&&\\ {-1}&=&&&&{b}_{1}&{-2} {b}_{2}&{-{b}_{3}}&&&&\\ 1&=&&&&3 {b}_{1}&{-4} {b}_{2}&{+{b}_{3}}&&&&\\ 0&=&{a}_{1}&&&{-{b}_{1}}&&&{-{{\lambda}}_{1}}&{-2} {{\lambda}}_{2}&&\\ 0&=&&{a}_{2}&&&{-{b}_{2}}&&{-{{\lambda}}_{1}}&{+{{\lambda}}_{2}}&&\\ 0&=&&&{a}_{3}&&&{-{b}_{3}}&{-{{\lambda}}_{1}}&{-3} {{\lambda}}_{2}&&\\ 0&=&{a}_{1}&&&{-{b}_{1}}&&&&&{-{{\mu}}_{1}}&{-3} {{\mu}}_{2}\\ 0&=&&{a}_{2}&&&{-{b}_{2}}&&&&{+2} {{\mu}}_{1}&{+4} {{\mu}}_{2}\\ 0&=&&&{a}_{3}&&&{-{b}_{3}}&&&{+{{\mu}}_{1}}&{-{{\mu}}_{2}} \end{array}\right.$$
The unique solution is
$$A = \left(\frac{11}{195} , \frac{46}{195} , \frac{46}{65}\right) \qquad B = \left(\frac{1}{5} , \frac{2}{15} , \frac{14}{15}\right)$$
$$\left({{\lambda}}_{1} , {{\lambda}}_{2}\right) = \left(\frac{4}{195} , \frac{{-16}}{195}\right) \qquad \left({{\mu}}_{1} , {{\mu}}_{2}\right) = \left(\frac{4}{30} , \frac{{-6}}{65}\right)$$
The distance between the two lines is
$$d \left(A , B\right) = \sqrt{\frac{16}{195}}$$