Regression to an Ellipse

As with the circle, both algebraic and geometric minimization can be performed.

The quadratic equation of an ellipse is

\begin{displaymath}
f(\mathbf{x}) = \mathbf{x}^\top \mathbf{A} \mathbf{x} + \mathbf{b}^{\top} \mathbf{x} + c = 0
\end{displaymath} (4.108)

where $\mathbf{A}$ is a symmetric, positive-definite matrix. Again, solving the homogeneous problem (4.108) makes it possible to determine the six unknowns of the system (up to a multiplicative factor).

The nonlinear solution that minimizes the geometric quantity can be obtained using the parametric representation of the ellipse:

\begin{displaymath}
\mathbf{x} = \begin{bmatrix}
x_0 \\
y_0
\end{bmatrix} ...
...{bmatrix}
a \cos \varphi \\
b \sin \varphi
\end{bmatrix}
\end{displaymath} (4.109)

where $(x_0,y_0)$ represents the center of the ellipse, $(a,b)$ the lengths of its two semiaxes, and $\alpha$ the rotation of the ellipse about its center. As with the circle, the $\varphi_i$ are auxiliary variables, and the nonlinear problem has $5+n$ unknowns and $2n$ equations.



Paolo medici
2026-10-01