Looking for a way to automatically determine if one R2 is better than another. We are using a second derivative analysis of the membrane potential during action potential to separate the acceleration at the axon initial segment vs that at the soma. So the second derivative normally gives two clearly separate peaks. No issue there. But in some cases there looks like one peak and in others there is a 'hump'. When doing polynomial curve fitting - in some cases I've gotten 0.98 for linear and 0.99 for a 4th degree polynomial fit. So the question is how to tell if a 0.99 R2 is significantly better than an R2 0.98? Or in other words how to tell definitively is there one peak or two?