Figure 4 Plot of squared correlation coefficients, r?, vs. variable no. NIR data are important in the analysis of food and agricultural data. This example shows that it is im- portant to remove or eliminate the ‘ends’ of the data. We have used here the squared of the simple cor- relation coefficient, r, between a variable (a column in X) and y. Other measures of correlation could also be used. The figure shows that there are a few ‘inter- vals’, where the values of the squared correlation co- efficient are large. Values above the horizontal line