where n is the number of data pairs in the sample within the range of interest; (SpO2,i − SpO2 fit,i) is the difference between the ith SpO2 datum and the value of the fitted curve corresponding to the ith reference SpO2 value, SRi.