where n is the total number of samples, ne is the number of calibration samples, np is the number of prediction samples
and c is the constant which can be adjusted cased to the chart In the presented study, the c for monitoring glucose and pH were 5 and 0.5 respectively RMSEC is the root mean square error of calibration set: RMSEP is the root mean square error of prediction set.