All articles →

100 Exercises / linear algebra / Linear algebra 100 Exercises

Introduction to Eigenvalue Analysis in Manufacturing | Identifying Amplification and Convergence of Process Variations with Python

Study eigenvalues, diagonalization, Jordan blocks and positive definite matrices in Python, separating long-term decay from transient growth.

Dimensional deviations, vibration and temperature can interact across processes. This article models daily quality deviations in a fictional three-process line using eigenvalues, eigenvectors, diagonalization, multiplicities, polynomials, Jordan form, spectral decomposition and positive definite matrices.

We identify slowly decaying patterns, distinguish long-term stability from transient growth, and check how a quadratic loss weights quality deviations. All data is generated in Python.

About this article This article adapts Jupyter Notebooks used in corporate training by Surikobo or its representative, Hiroshi Wayama, with permission from the participating companies.
All data listed is fictional and has no relation whatsoever to real companies, factories, or figures.

Introduction: Practical Challenges in Manufacturing Covered in This Article

Suppose a precision parts line records the standardized deviations of machining, heat treatment, and inspection on a daily basis. If we xt\mathbf{x}_t the quality deviation vector and let the matrix representing propagation between processes be AA, the simplified state update is

xt+1=Axt+εt\mathbf{x}_{t+1}=A\mathbf{x}_t+\boldsymbol{\varepsilon}_t

εt\boldsymbol{\varepsilon}_t is a small disturbance that joins the day. What you want to know is not just individual coefficients. It is necessary to determine how many times the deviation remains, which process combinations it presents, and whether it converges after adjustment.

Common situations on site

  • Even if the control charts for each process are normal, gradual fluctuations across processes may still remain.
  • As a result of narrowing the adjustment target to a single process, deviations from other processes increase.
  • Simulations are possible, but long-term stability cannot be explained.
  • Optimization is being carried out without verifying whether the weight matrix of the quality score is valid.

Why is this issue so difficult to judge?

Each element of matrix AA is a local influence. On the other hand, what the site needs “what will happen in a certain number of days” is determined by AkA^k and cannot be understood by simply observing the elements. The eigenvalue is the multiplier of the variation mode, while the eigenvector gives the process composition. However, for duplicate eigenvalues or non-diagonalizable matrices, simple interpretations fail, so it is necessary to check the degree of duplication and even the minimal polynomial.

Exercises in this article

No.ThemePractical Questions
041eigenvalueDo fluctuations amplify or attenuate?
042eigenvectorWhich process combinations dominate?
043diagonalizationCan you simply calculate transmission many days ahead?
044geometric multiplicityHow many independent directions of change are there?
045algebraic multiplicityHow many times does the same multiplier appear on the equation?
046characteristic polynomialCan eigenvalues be checked from definition expressions?
047minimal polynomialWhat is the smallest relation to eliminate a matrix?
048Jordan Canonical FormHow to interpret temporary amplification when diagonalization is impossible
049spectral decompositionCan fluctuations be broken down by orthogonal mode?
050positive definite matrixDoes every nonzero deviation receive a positive penalty?

Preparing the Python environment

Perform matrix calculations with NumPy, tables with pandas, and visualization with Matplotlib. To ensure reproducibility, the random number generator seed is fixed. The displayed rounding and calculation accuracy are separated, and judgments are made using the values before rounding.

Setup code: Preparing the Python environment (click to expand)
[IN: 1]
import sys
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
from IPython.display import display

np.set_printoptions(precision=4, suppress=True)
rng = np.random.default_rng(20260712)
print(
    f"Python {sys.version.split()[0]} / NumPy {np.__version__} / pandas {pd.__version__} / Matplotlib {matplotlib.__version__}"
)
[OUT: 1]
Python 3.14.4 / NumPy 2.5.1 / pandas 3.0.3 / Matplotlib 3.11.0

Creation of Fictional Data

Generates 120 days’ worth of standardized deviations for the three processes. The propagation matrix AA is a symmetric matrix, and in practice, we set the structure where ‘the adjacent process has a stronger impact.’ All eigenvalue magnitudes are below 1. The exercises verify this and distinguish decay without disturbances from fluctuations driven by daily noise.

Setup code: Creation of Fictional Data (click to expand)
[IN: 2]
processes = ["Machining", "HeatTreat", "Inspection"]
A = np.array([[0.72, 0.12, 0.04], [0.12, 0.58, 0.10], [0.04, 0.10, 0.46]])
n_days = 120
states = np.zeros((n_days, 3))
states[0] = [1.8, -0.8, 0.5]
for t in range(n_days - 1):
    states[t + 1] = A @ states[t] + rng.normal(0, 0.12, 3)
quality_df = pd.DataFrame(states, columns=processes).assign(
    Day=np.arange(1, n_days + 1)
)
display(pd.DataFrame(A, index=processes, columns=processes).round(2))
display(quality_df.head().round(3))

fig, ax = plt.subplots(figsize=(9, 4))
for col in processes:
    ax.plot(quality_df["Day"], quality_df[col], label=col, linewidth=1.4)
ax.set_title("Simulated standardized quality deviations")
ax.set_xlabel("Day")
ax.set_ylabel("Standardized deviation")
ax.grid(True, alpha=0.3)
ax.legend()
fig.tight_layout()
plt.show()
[OUT: 2]
Machining HeatTreat Inspection
Machining 0.72 0.12 0.04
HeatTreat 0.12 0.58 0.10
Inspection 0.04 0.10 0.46
Machining HeatTreat Inspection Day
0 1.800 -0.800 0.500 1
1 1.309 -0.116 0.272 2
2 0.988 0.167 0.221 3
3 0.713 0.299 0.347 4
4 0.657 0.304 0.234 5

Creation of Fictional Data: computed results

No.041: What is an eigenvalue?

Meaning in Practice

Eigenvalues represent how many times a specific fluctuation mode multiplies over a single period when the effects are repeated between processes. If there is an eigenvalue with an absolute value greater than 1, that mode amplifies even without disturbances, so the adjustment rules need to be reviewed.

Approach to Analysis and Modeling

A nonzero vector v\mathbf{v} is an eigenvector with eigenvalue λ\lambda if Av=λvA\mathbf{v}=\lambda\mathbf{v}. A positive real eigenvalue preserves its direction, a negative one reverses it, and zero maps it to the zero vector. For a discrete linear system, ρ(A)=max⁡i∣λi∣<1\rho(A)=\max_i|\lambda_i|<1 is necessary and sufficient for Akx0→0A^k\mathbf{x}_0\to\mathbf{0} for every initial state.

Check with Python

[IN: 3]
eigvals = np.linalg.eigvalsh(A)
eigenvalue_table = pd.DataFrame(
    {"Eigenvalue": eigvals[::-1], "Magnitude": np.abs(eigvals[::-1])}
)
display(eigenvalue_table.round(4))
rho = np.max(np.abs(eigvals))
print(f"Spectral radius = {rho:.4f}; asymptotically stable = {rho < 1}")

fig, ax = plt.subplots(figsize=(7, 3.5))
ax.bar(range(1, 4), eigvals[::-1], color="#2878B5")
ax.axhline(1, color="crimson", linestyle="--", label="stability boundary")
ax.set_title("Eigenvalues of the process propagation matrix")
ax.set_xlabel("Mode rank")
ax.set_ylabel("Eigenvalue")
ax.set_xticks([1, 2, 3])
ax.grid(True, axis="y", alpha=0.3)
ax.legend()
fig.tight_layout()
plt.show()
[OUT: 3]
Eigenvalue Magnitude
0 0.8102 0.8102
1 0.5487 0.5487
2 0.4010 0.4010
Spectral radius = 0.8102; asymptotically stable = True

No.041: What is an eigenvalue?: computed results

Reading the results

The maximum eigenvalue (spectral radius) is about 0.8102, less than 1. Therefore, if only the propagation is set, all modes will be attenuated. However, the approximately 0.8102 mode has the slowest attenuation and tends to persist when daily disturbances overlap, making it a top monitoring target.

No.042: What is an eigenvector?

Meaning in Practice

An eigenvector describes a combination of process deviations that changes by one common factor. The slowest-decaying mode identifies which processes participate in a persistent deviation.

Approach to Analysis and Modeling

An eigenvector and its negative represent the same mode, so compare component magnitudes and relative signs. For a real symmetric matrix, choose an orthonormal eigenbasis: AV=VΛAV=V\Lambda and VTV=IV^{\mathsf T}V=I.

Check with Python

[IN: 4]
eigvals, eigvecs = np.linalg.eigh(A)
# eigh returns ascending eigenvalues; reorder values and vector columns together.
order = np.argsort(eigvals)[::-1]
eigvals, eigvecs = eigvals[order], eigvecs[:, order]
# For readability, the components with the highest absolute values in each vector are positively aligned.
eigvecs *= np.sign(eigvecs[np.argmax(np.abs(eigvecs), axis=0), range(3)])
loading_df = pd.DataFrame(
    eigvecs, index=processes, columns=[f"Mode {i+1}" for i in range(3)]
)
display(loading_df.round(3))

fig, ax = plt.subplots(figsize=(7, 3.5))
ax.bar(processes, np.abs(eigvecs[:, 0]), color="#F28E2B")
ax.set_title("Absolute loadings of the slowest-decaying mode")
ax.set_xlabel("Process")
ax.set_ylabel("Absolute eigenvector component")
ax.grid(True, axis="y", alpha=0.3)
fig.tight_layout()
plt.show()
[OUT: 4]
Mode 1 Mode 2 Mode 3
Machining 0.812 -0.575 0.095
HeatTreat 0.529 0.660 -0.534
Inspection 0.244 0.484 0.840

No.042: What is an eigenvector?: computed results

Reading the results

Mode 1, which has the slowest attenuation, is heavily influenced by processing and heat treatment, and inspection is included in the same direction. Rather than treating it as a single-process abnormality, it is more appropriate to conduct a cross-disciplinary cause investigation that checks machining conditions and thermal history together. The eigenvector is not the causal relationship itself, but a hypothesis that indicates the priority of the investigation.

No.043: Diagonalization

Meaning in Practice

With diagonalization, multi-day impact AkA^k can be calculated as independent multipliers for each mode λik\lambda_i^k. This improves the explanatory and computational efficiency of long-term simulations.

Approach to Analysis and Modeling

If the columns of an invertible matrix VV are eigenvectors, then A=VΛV−1A=V\Lambda V^{-1} and

Ak=VΛkV−1,xk=VΛkV−1x0.A^k=V\Lambda^kV^{-1},\qquad\mathbf{x}_k=V\Lambda^kV^{-1}\mathbf{x}_0.

For the symmetric matrix here, choose VV orthogonal so that V−1=VTV^{-1}=V^{\mathsf T}. Transform the initial state to mode coordinates, apply each multiplier and transform back.

Check with Python

[IN: 5]
k = 12
Lambda = np.diag(eigvals)
A_k_direct = np.linalg.matrix_power(A, k)
A_k_diag = eigvecs @ np.linalg.matrix_power(Lambda, k) @ eigvecs.T
x0 = states[0]
comparison = pd.DataFrame(
    {
        "Direct": A_k_direct @ x0,
        "Diagonalized": A_k_diag @ x0,
        "Absolute error": np.abs((A_k_direct - A_k_diag) @ x0),
    },
    index=processes,
)
display(comparison.round(10))
print(
    f"matrix reconstruction error = {np.linalg.norm(A - eigvecs @ Lambda @ eigvecs.T):.2e}"
)
[OUT: 5]
Direct Diagonalized Absolute error
Machining 0.076042 0.076042 0.0
HeatTreat 0.048527 0.048527 0.0
Inspection 0.022203 0.022203 0.0
matrix reconstruction error = 4.75e-16

Reading the results

The direct and diagonalized calculations agree after 12 days, within floating-point error. With no disturbance, the deviations decay substantially. Check whether a fixed propagation matrix remains appropriate after equipment modifications or product changes.

No.044: Geometric Multiplicity

Meaning in Practice

How many independent eigenvectors for the same eigenvalue means the number of independent variation patterns with the same attenuation rate. If it is insufficient, it cannot be diagonalized, and polynomial terms are mixed into the predicted behavior.

Approach to Analysis and Modeling

The geometric multiplicity of eigenvalue λ\lambda is the dimension of its eigenspace:

gλ=dim⁡ker⁡(A−λI)=n−rank⁡(A−λI).g_\lambda=\dim\ker(A-\lambda I)=n-\operatorname{rank}(A-\lambda I).

Numerical rank requires a tolerance. The diagonal example below has the repeated eigenvalue 2.

Check with Python

[IN: 6]
B = np.diag([2.0, 2.0, 0.5])
lam = 2.0
rank = np.linalg.matrix_rank(B - lam * np.eye(3))
geom_mult = B.shape[0] - rank
print("Example matrix B:\n", B)
print(f"rank(B - {lam}I) = {rank}")
print(f"Geometric multiplicity of lambda={lam} = {geom_mult}")
print("Independent directions: e1 and e2")
[OUT: 6]

Example matrix B:

 [[2.  0.  0. ]
 [0.  2.  0. ]
 [0.  0.  0.5]]
rank(B - 2.0I) = 1
Geometric multiplicity of lambda=2.0 = 2
Independent directions: e1 and e2

Reading the results

Eigenvalue 2 has two independent eigenvectors. In this discrete model, deviations in either direction double each period; they do not decay. For measured matrices, state the tolerance before treating nearly equal eigenvalues as exactly repeated.

No.045: Algebraic Multiplicity

Meaning in Practice

Algebraic multiplicity counts occurrences of an eigenvalue as a root of the characteristic polynomial. Comparing it with geometric multiplicity helps determine diagonalizability.

Approach to Analysis and Modeling

The algebraic multiplicity aλa_\lambda is the multiplicity of root λ\lambda in det⁡(μI−A)\det(\mu I-A). Always 1≤gλ≤aλ1\le g_\lambda\le a_\lambda. Over a field containing all eigenvalues, the matrix is diagonalizable exactly when these multiplicities agree for every eigenvalue. The example has a0.8=2a_{0.8}=2 but only one independent eigenvector for 0.8.

Check with Python

[IN: 7]
C = np.array([[0.8, 1.0, 0.0], [0.0, 0.8, 0.0], [0.0, 0.0, 0.3]])
roots = np.roots(np.poly(C))
alg_mult = int(np.sum(np.isclose(roots, 0.8)))
geom_mult = C.shape[0] - np.linalg.matrix_rank(C - 0.8 * np.eye(3))
display(
    pd.DataFrame(
        {
            "Measure": ["Algebraic multiplicity", "Geometric multiplicity"],
            "Value": [alg_mult, geom_mult],
        }
    )
)
print("Eigenvalues:", roots)
print("Diagonalizable:", alg_mult == geom_mult)
[OUT: 7]
Measure Value
0 Algebraic multiplicity 2
1 Geometric multiplicity 1
Eigenvalues: [0.8 0.8 0.3]
Diagonalizable: False

Reading the results

For eigenvalue 0.8, algebraic multiplicity is 2 and geometric multiplicity is 1, so the matrix is not diagonalizable. Even with every eigenvalue strictly inside the unit circle, coupling can cause temporary amplification before eventual decay.

No.046: Characteristic Polynomials

Meaning in Practice

A characteristic polynomial is an equation that determines eigenvalues and serves as a theoretical entry point to confirm the stability of the process model. It can also be linked to matrix traces and determinants, and can be used to check the consistency of implementation results.

Approach to Analysis and Modeling

NumPy poly returns coefficients of the characteristic polynomial:

pA(λ)=det⁡(λI−A)=∏i=1n(λ−λi).p_A(\lambda)=\det(\lambda I-A)=\prod_{i=1}^n(\lambda-\lambda_i).

For a 3-by-3 matrix this is cubic. Its roots are the eigenvalues, their sum is the trace and their product is the determinant.

Check with Python

[IN: 8]
coeff = np.poly(A)
roots = np.roots(coeff)
poly_df = pd.DataFrame({"Power": [3, 2, 1, 0], "Coefficient": coeff})
display(poly_df.round(6))
print("Roots:", np.sort(roots)[::-1])
print(f"sum(roots)={roots.sum():.6f}, trace(A)={np.trace(A):.6f}")
print(f"product(roots)={roots.prod():.6f}, det(A)={np.linalg.det(A):.6f}")
[OUT: 8]
Power Coefficient
0 3 1.000000
1 2 -1.760000
2 1 0.989600
3 0 -0.178304
Roots: [0.8102 0.5487 0.401 ]
sum(roots)=1.760000, trace(A)=1.760000
product(roots)=0.178304, det(A)=0.178304

Reading the results

The roots of characteristic polynomials match the eigenvalues of No.041, and the sum and product of the roots also match the trace-determinant. Using multiple identities like these for verification allows early detection of coefficient transcription errors or matrix orientation errors. In higher-order matrices, the method of directly finding the roots of polynomials is numerically unstable, so practical calculations use dedicated eigenvalue algorithms.

No.047: Minimal Polynomial

Meaning in Practice

A minimal polynomial is the shortest polynomial relation that a matrix satisfies. By replacing the high-state powers with lower degrees, you can grasp the inherent dynamic complexity of the model.

Approach to Analysis and Modeling

The minimal polynomial is the monic polynomial of smallest degree satisfying mA(A)=0m_A(A)=0. The symmetric matrix here has three distinct eigenvalues, so its minimal and characteristic polynomials coincide. Cayley–Hamilton guarantees that the characteristic polynomial annihilates the matrix. Repeated eigenvalues can allow a lower-degree minimal polynomial.

Check with Python

[IN: 9]
# p(A) = A^3 + c2 A^2 + c1 A + c0 I
pA = (
    np.linalg.matrix_power(A, 3)
    + coeff[1] * np.linalg.matrix_power(A, 2)
    + coeff[2] * A
    + coeff[3] * np.eye(3)
)
print("p(A) =\n", pA)
print(f"Frobenius norm of p(A) = {np.linalg.norm(pA):.2e}")

B_min = (B - 2 * np.eye(3)) @ (B - 0.5 * np.eye(3))
print(f"For B, ||(B-2I)(B-0.5I)|| = {np.linalg.norm(B_min):.2e}")
[OUT: 9]
p(A) =
 [[ 0. -0.  0.]
 [-0.  0.  0.]
 [ 0.  0.  0.]]
Frobenius norm of p(A) = 7.08e-17
For B, ||(B-2I)(B-0.5I)|| = 0.00e+00

Reading the results

The calculated p(A)p(A) is zero within rounding error. The diagonal matrix BB from No.044 is annihilated by (B−2I)(B−0.5I)(B-2I)(B-0.5I), so its minimal polynomial has degree 2. In general, the degrees of the factors also depend on Jordan-block sizes.

No.048: Jordan Canonical Form

Meaning in Practice

Jordan form explains a nondiagonalizable system using both eigenvalue powers and terms caused by coupling within each block. This shows why checking long-term stability alone can miss a transient peak.

Approach to Analysis and Modeling

The 2×22\times2 block of No.045 is J=λI+NJ=\lambda I+N and N2=0N^2=0. Therefore, Jk=λkI+kλk−1NJ^k=\lambda^k I+k\lambda^{k-1}N appears, and a term containing kk appears. ∣λ∣<1|\lambda|<1 will eventually converge, but deviations may increase in the early stages.

Jk=(λI+N)k=λkI+kλk−1N(N2=0)J^k=(\lambda I+N)^k=\lambda^k I+k\lambda^{k-1}N\quad(N^2=0)

Check with Python

[IN: 10]
J = C[:2, :2]
x0_j = np.array([0.0, 1.0])
steps = np.arange(0, 26)
trajectory = np.array([np.linalg.matrix_power(J, int(k)) @ x0_j for k in steps])
peak_k = int(steps[np.argmax(np.abs(trajectory[:, 0]))])
print(f"First component peaks at step {peak_k}: {trajectory[peak_k, 0]:.4f}")

fig, ax = plt.subplots(figsize=(8, 3.8))
ax.plot(steps, trajectory[:, 0], marker="o", markersize=3, label="component 1")
ax.plot(steps, trajectory[:, 1], marker="s", markersize=3, label="component 2")
ax.set_title("Transient amplification in a Jordan block")
ax.set_xlabel("Step k")
ax.set_ylabel("State value")
ax.grid(True, alpha=0.3)
ax.legend()
fig.tight_layout()
plt.show()
[OUT: 10]

First component peaks at step 5: 2.0480

No.048: Jordan Canonical Form: computed results

Reading the results

Although the eigenvalue is 0.8, the first component initially grows and then decays. The contribution from the second component contains kλk−1k\lambda^{k-1}. Include this transient peak when checking startup limits.

No.049: Spectral Decomposition

Meaning in Practice

Spectral decomposition of symmetric matrices represents inter-process effects as the addition of orthogonal modes. The contribution of each mode can be visualized individually, making it easier to explain which variation structures are suppressed by improvement measures.

Approach to Analysis and Modeling

In symmetric matrices, the orthonormal eigenvector vi\mathbf{v}_i is used and can be decomposed to A=∑iλiviviTA=\sum_i\lambda_i\mathbf{v}_i\mathbf{v}_i^\mathsf{T}. viviT\mathbf{v}_i\mathbf{v}_i^\mathsf{T} is a projection into that mode. If you leave only the higher modes, it becomes a low-rank approximation.

A=VΛVT=∑i=1nλiviviTA=V\Lambda V^\mathsf{T}=\sum_{i=1}^n\lambda_i\mathbf{v}_i\mathbf{v}_i^\mathsf{T}

Check with Python

[IN: 11]
components = [eigvals[i] * np.outer(eigvecs[:, i], eigvecs[:, i]) for i in range(3)]
A_rank1 = components[0]
relative_error = np.linalg.norm(A - A_rank1, "fro") / np.linalg.norm(A, "fro")
display(pd.DataFrame(A_rank1, index=processes, columns=processes).round(3))
print(f"Rank-1 relative Frobenius error = {relative_error:.3f}")

fig, axes = plt.subplots(1, 3, figsize=(10, 3), layout="constrained")
vmax = max(np.max(np.abs(c)) for c in components)
for i, (ax, comp) in enumerate(zip(axes, components), 1):
    im = ax.imshow(comp, cmap="coolwarm", vmin=-vmax, vmax=vmax)
    ax.set_title(f"Mode {i}")
    ax.set_xlabel("Source process")
    ax.set_ylabel("Target process")
    ax.set_xticks(range(3), ["M", "H", "I"])
    ax.set_yticks(range(3), ["M", "H", "I"])
    ax.grid(False)
fig.colorbar(im, ax=axes, shrink=0.75, label="Contribution")
fig.suptitle("Spectral components of the propagation matrix")
plt.show()
[OUT: 11]
Machining HeatTreat Inspection
Machining 0.535 0.349 0.161
HeatTreat 0.349 0.227 0.105
Inspection 0.161 0.105 0.048
Rank-1 relative Frobenius error = 0.643

No.049: Spectral Decomposition: computed results

Reading the results

Mode 1 contributes in the same direction throughout all processes and remains as a common variation. However, since the relative error of rank 1 approximation cannot be ignored, using only the top 1 mode for practical prediction is too crude. It is effective to use higher-level modes for visualization and explanation, and several modes that meet the required accuracy for control calculations.

No.050: Positive Definite Matrix

Meaning in Practice

A positive definite loss matrix gives every nonzero deviation a positive penalty. A quadratic objective with a positive definite Hessian is strictly convex; on a convex feasible set, a minimizer is unique if it exists. Positive definiteness also permits Cholesky factorization.

Approach to Analysis and Modeling

For a real symmetric QQ, positive definiteness means xTQx>0\mathbf{x}^{\mathsf T}Q\mathbf{x}>0 for every nonzero x\mathbf{x}, equivalently all eigenvalues are positive:

L(x)=xTQx,Q≻0⟺λmin⁡(Q)>0.L(\mathbf{x})=\mathbf{x}^{\mathsf T}Q\mathbf{x},\qquad Q\succ0\Longleftrightarrow\lambda_{\min}(Q)>0.

The example specifies illustrative cross-term weights. It does not estimate a covariance matrix from the observations.

Check with Python

[IN: 12]
Q = np.array([[2.0, 0.35, 0.10], [0.35, 1.5, 0.25], [0.10, 0.25, 1.0]])
q_eigs = np.linalg.eigvalsh(Q)
loss = np.einsum("ij,jk,ik->i", states, Q, states)
print("Eigenvalues of Q:", q_eigs)
print("Positive definite:", np.all(q_eigs > 0))
print(f"Minimum observed loss = {loss.min():.6f}")
display(
    pd.DataFrame({"Day": quality_df["Day"].head(8), "Quality loss": loss[:8]}).round(4)
)

fig, ax = plt.subplots(figsize=(8, 3.6))
ax.plot(quality_df["Day"], loss, color="#59A14F")
ax.set_title("Quadratic quality loss over time")
ax.set_xlabel("Day")
ax.set_ylabel("Quality loss x^T Q x")
ax.grid(True, alpha=0.3)
fig.tight_layout()
plt.show()
[OUT: 12]

Eigenvalues of Q: [0.8946 1.3903 2.2151]

Positive definite: True
Minimum observed loss = 0.002225
Day Quality loss
0 1 6.6620
1 2 3.4683
2 3 2.2214
3 4 1.5221
4 5 1.2650
5 6 0.6545
6 7 0.4485
7 8 0.5211

No.050: Positive Definite Matrix: computed results

Reading the results

All eigenvalues of QQ are positive, and observed losses are non-negative. Therefore, zero deviation is the only minimum point, and the direction of improvement is not ambiguous. However, the weight of QQ cannot be determined by mathematics alone. Version management must reflect defect costs, safety impacts, and customer specifications, and be managed with interdepartmental agreement.

Using the results in practice

In this matrice, the maximum eigenvalue is less than 1, and if there is no disturbance, the quality deviation will converge. However, since control modes spread to multiple processes centered on processing and heat treatment, several processes should be investigated together. The model alone does not predict recurrence after an intervention. Also, as the example of the Jordan block shows, temporary amplification can occur even when eigenvalues are within a stable range.

In practice, the following order is effective.

  1. Confirming long-term convergence by spectral radius
  2. Use dominant eigenvectors to select processes for joint investigation
  3. Checking multiplicities and diagonalizability, and evaluating transient responses
  4. For symmetric matrices, the contribution by mode is explained using spectral decomposition.
  5. Verify that the weight matrix for quality loss is a positive definite matrix and ensure the uniqueness of optimization.

Preparing for practical use

  • Data definition: Standardize measurement units, sampling times, handling missing measurements and outliers, and product variety switching
  • Model identification:AA is not set as a fixed value, but is estimated from historical data and verified during the holdout period.
  • Uncertainty Assessment: In addition to estimating eigenvalues and eigenvectors, we also check the range of fluctuations using bootstraps and similar methods.
  • Responding to Non-Steadiness: Monitor equipment maintenance, mold replacement, season, and material lot to detect changes in the propagation matrix
  • Causal Verification: The eigenmode is a summary of the correlation structure, and before countermeasures, it is cross-checked with field knowledge, experimental design, and change history.
  • Operations Design: Define reestimation frequency, alarm thresholds, approvers, rollback procedures, and model versions

Conclusion

Eigenvalues describe decay rates, while eigenvectors describe process contributions to each mode. The Jordan-block example shows that transient growth needs more than an eigenvalue check. Spectral decomposition supports component selection, and positive definite matrices assign positive loss to nonzero deviations. For real data, combine these calculations with process knowledge and experiments before making causal claims.

Consultations for Corporations

At Surikobo, we support structural analysis of quality fluctuations using manufacturing data, equipment condition models, anomaly detection, mathematical optimization, and the design of on-site training. You can consult from stages such as “We have data but can’t explain it across processes” or “We want to connect the model to on-site decision-making.”

📩 Contact Us: www.surikobo.co.jp/contact
Please contact us to discuss your project.