The math behind NIR. Practical guides to PLS regression, PCA, spectral preprocessing, and building calibration models that hold up in real food and agriculture labs.