Given matrices $[\mathbf S]\in\Bbb R^{m\times n}$, $[\mathbf A]\in\Bbb R^{m\times p}$, $[\mathbf D]\in\Bbb R^{q\times n}$, and $(m\times n) > (p\times n\,+m\times q)$, how can we solve the following simultaneously for the least-squares best-fit $\color{red}{[\mathbf B]}$ and $\color{red}{[\mathbf C]}$? $$[\mathbf S]_{m\times n}=[\mathbf A]_{m\times p}\color{red}{[\mathbf B]_{p\times n}}+\color{red}{[\mathbf C]_{m\times q}}[\mathbf D]_{q\times n}$$ For context, consider $[\mathbf S]$ as a matrix of $n$ spectra having $m$ channels. The spectra are linear combinations of pure components, some of which have known spectra, $[\mathbf A]$, but unknown concentration scaling factors, $\color{red}{[\mathbf B]}$, plus other components with unknown spectra, $\color{red}{[\mathbf C]}$, but known concentrations, $[\mathbf D]$. Because we collected enough spectra from enough different mixtures, $(m\times n) > (p\times n\,+m\times q)$, and there should be more knowns than unknowns in the system. I've had a little luck with an iterative approach, but can't help but think that there must be a way of arriving at some analytical solution (or family of solutions).
2026-03-30 13:37:31.1774877851
Given $[S]$, $[A]$, and $[D]$, can we solve $[S]$ = $[A]$ $[B]$ + $[C]$ $[D]$ for $[B]$ and $[C]$?
30 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in MATRICES
- How to prove the following equality with matrix norm?
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- Powers of a simple matrix and Catalan numbers
- Gradient of Cost Function To Find Matrix Factorization
- Particular commutator matrix is strictly lower triangular, or at least annihilates last base vector
- Inverse of a triangular-by-block $3 \times 3$ matrix
- Form square matrix out of a non square matrix to calculate determinant
- Extending a linear action to monomials of higher degree
- Eiegenspectrum on subtracting a diagonal matrix
- For a $G$ a finite subgroup of $\mathbb{GL}_2(\mathbb{R})$ of rank $3$, show that $f^2 = \textrm{Id}$ for all $f \in G$
Related Questions in NUMERICAL-LINEAR-ALGEBRA
- sources about SVD complexity
- Showing that the Jacobi method doesn't converge with $A=\begin{bmatrix}2 & \pm2\sqrt2 & 0 \\ \pm2\sqrt2&8&\pm2\sqrt2 \\ 0&\pm2\sqrt2&2 \end{bmatrix}$
- Finding $Ax=b$ iteratively using residuum vectors
- Pack two fractional values into a single integer while preserving a total order
- Use Gershgorin's theorem to show that a matrix is nonsingular
- Rate of convergence of Newton's method near a double root.
- Linear Algebra - Linear Combinations Question
- Proof of an error estimation/inequality for a linear $Ax=b$.
- How to find a set of $2k-1$ vectors such that each element of set is an element of $\mathcal{R}$ and any $k$ elements of set are linearly independent?
- Understanding iterative methods for solving $Ax=b$ and why they are iterative
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 DATA-ANALYSIS
- Calculating an average of other averages
- When extrapolating for projections, how do you know which function-form to use?
- Log base e versus log base 10 for semilog plot, how do I recognize the type of curve my data fits?
- Book Recommendation for Analyzing Experimental Results
- MLE of non-numerical variables?
- How to tell when a data series is a normal distribution
- Counting occurrences of elements from data stream
- Based on the coinmarket cap api, how do they calculate the bitcoin percent change
- Statistical analysis of study with categorical and numerical variables
- If I divide one column of a matrix by another, do I get new "information"?
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?
Rearrange the equation to create a squared sum residual error statement: $$\mathbf E=\sum_{i=1}^m \sum_{j=1}^n(S_{ij}-[AB]_{ij}-[CD]_{ij})^2$$ where $$[AB]_{ij}=\sum_{k=1}^p a_{ik} b_{kj}$$ and $$[CD]_{ij}=\sum_{l=1}^q c_{il} d_{lj}$$ Now minimize $$\mathbf E=\sum_{i=1}^m \sum_{j=1}^n(S_{ij}-\sum_{k=1}^p a_{ik} b_{kj}-\sum_{l=1}^q c_{il} d_{lj})^2$$ over $b$ and $c$ by setting the partial derivative of $\mathbf E$ with respect to $b$ and $c$ equal to zero: $$\frac {\partial E}{\partial b} =\sum_{i=1}^m2(S_{ij}-\sum_{k=1}^p a_{ik} b_{kj}-\sum_{l=1}^q c_{il} d_{lj})(-\sum_{k=1}^pa_{ik})=0$$ (using the chain rule) and $$\frac {\partial E}{\partial c} =\sum_{i=1}^m2(S_{ij}-\sum_{k=1}^p a_{ik} b_{kj}-\sum_{l=1}^q c_{il} d_{lj})(-\sum_{k=1}^pd_{lj})=0$$ In matrix form:$$\frac {\partial E}{\partial b} =0=(-2\mathbf A)^\top(\mathbf S-\mathbf {AB}-\mathbf {CD})$$ and $$\frac {\partial E}{\partial c} =0=(\mathbf S-\mathbf {AB}-\mathbf {CD})(-2\mathbf D)^\top$$ where we use transpose $(^\top)$ to get the matrix dimensions to match up.
Now distribute, simplify, and rearrange: $$\mathbf A^\top \mathbf S = \mathbf A^\top \mathbf{A\color{red}B}+\mathbf A^\top \mathbf{\color{red}CD}$$ and $$\mathbf{SD}^\top=\mathbf{A\color{red}BD}^\top+\mathbf{\color{red}CDD}^\top$$
Two equations, two unknowns. Solve one for one variable and substitute into the other. Solving the first for $\mathbf {\color{red}B}$ $$(\mathbf A^\top \mathbf A)^{-1}\mathbf A^\top \mathbf S=\mathbf {\color{red}B} +(\mathbf A^\top \mathbf A)^{-1}\mathbf A^\top \mathbf {\color{red}C} \mathbf D$$ Note that $(\mathbf A^\top \mathbf A)^{-1}\mathbf A^\top$ is the left pseudoinverse of $\mathbf A$, or $\mathbf A^+$, then:
$$\mathbf{\color{red}B}=\mathbf A^+(\mathbf S-\mathbf{\color{red}CD})$$
substituting into the second and solving for $\mathbf{\color{red}C}$: $$\mathbf{SD}^\top=\mathbf{A\Bigl((\mathbf A^+(\mathbf S-\mathbf{\color{red}CD})\Bigr) D}^\top+\mathbf{\color{red}CDD}^\top$$
$$\mathbf{SD}^\top=\mathbf A(\mathbf A^+ \mathbf{SD}^\top-\mathbf A^+\mathbf{\color{red}CDD}^\top)+\mathbf{\color{red}CDD}^\top$$
Note that $\mathbf A\mathbf A^+$ is $(i\times i)$ square and is not an identity matrix! $$(\mathbf I-\mathbf A\mathbf A^+)\mathbf{SD}^\top=(\mathbf I-\mathbf {AA}^+) \mathbf{\color{red}CDD}^\top$$ Almost there: $$(\mathbf I-\mathbf {AA}^+)^{-1}(\mathbf I-\mathbf A\mathbf A^+)\mathbf{SD}^\top=\mathbf{\color{red}CDD}^\top$$ $$\mathbf{\color{red}C}=\mathbf{SD}^\top(\mathbf{DD}^\top)^{-1}$$
Hmm. Maybe something problematic here: $\mathbf{\color {red} C}$ appears ito be independent of $\mathbf A$, and it's simply $\mathbf{SD}^+$, where $\mathbf D^+$ is the right pseudo-inverse of $\mathbf D$.
Now back to $\mathbf{\color {red} B}$ $$\mathbf{\color{red}B}=\mathbf A^+(\mathbf S-(\mathbf{SD}^+)\mathbf{D})$$ Note that $\mathbf D^+\mathbf D$ is $(j \times j)$ square and is not an identity matrix! $$\mathbf{\color{red}B}=\mathbf A^+\mathbf S(\mathbf I-\mathbf{D}^+\mathbf{D})$$
My sense here, however, is that these solutions for $\mathbf{\color {red} B}$ and $\mathbf{\color {red} C}$ may be just the first in a whole family of solutions. In other words, the solution is not unique, but why that is (the system is singular but consistent?), and what that family of solutions looks like and what this all means exactly in this situation is still unclear to me. Any help would be appreciated!