.c Simple Statistics Package .s This directory contains a simple statistics subroutine and a test driver which implements a simple statistics program. .s Both accept a set of (x,y) pairs and compute the following statistics: .list 'o' .le;mean of x .le;mean of y .le;variance of x .le;variance of y .le;standard deviation of x .le;standard deviation of y .le;coefficients of best-fit line (y=mx+b) .le;coefficients of best-fit line (x=my+b) .le;standard error for each of above best-fit lines .le;coefficient of correlation between x and y .le;confidence level in above coefficient .end list See the source of the statistics subroutine (STATPAK.FOR) for details on the calling sequence. Feel free, of course, to modify the program for your needs. Some typical modifications might be to change from REAL*8 to REAL*4, to drop unneeded calculations, and/or to add new ones. .s The program (STATDRV.FOR and STATDRV.EXE) is self explanatory when run. It produces two reports, one to the terminal and one to the file STAT.OUT. Both contain the computed statistics produced by STATPAK. In addition, the report in STAT.OUT produces a list of the input (x,y) pairs. .s The command file (STATPAK.BLD) compiles both programs and links STATDRV.EXE. .s2 Please feel free to write or phone (though I am extremely difficult to get hold of by phone) with any questions, comments, etc. .s2 .lit Dennis K. Fitzgerald Computer Sciences Corporation 4600 Powder Mill Road Beltsville, MD. 20705 (301) 937 0760 x4166 .end literal