Update stats.py

Here is the code for the correlation function.  I was not too sure how to implement the SPECS dictionary, but I followed your other functions as an example.
Merge pull request #1 from tylyan/patch-1

Update stats.py
Minor modifications of correlation
Fixed config file
Update stats.py

Added regression module
Merge pull request #2 from tylyan/patch-2

Update stats.py