Simulation of Data and Display of a Regression Line with Confidence Limits
Write a program that generates data corresponding to Sect. 12.4.4, performs a regression and finally displays a regression polynomial of the desired degree together with confidence limits as in Sect. 12.4.3. Allow the user to choose whether in the computation of the confidence limits a knowledge of σ is to be assumed or if only the scattering of the data points around the regression line is to be used. An example of the graphical output is shown in Fig. 12.4.