Q:

How can I perform linear regression on a file geodatabase table in ArcGIS?

I'm trying to use the Ordinary Least Squares tool in ArcGIS 10.2 but it only accepts feature classes as input and I have a file geodatabase table. I realize that I can export the table to Excel or MATLAB and perform the linear regression there, but I am working in ModelBuilder and need to keep everything within the model. Are there any workarounds or conversions that anyone knows about?

A:

How about making a script tool via Python?
I use the scipy Python module...
scipy.stats.linregress()
http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.linregress.html
Installing scipy on the top of the ArcGIS Python install is not very straightforward, so beware...

