A Bayesian approach to modelling spectrometer data chromaticity corrected using beam factors – I. Mathematical formalism. Issue 3 (10th March 2023)