I have a table with three numbers in each record, a minimum, a maximum, and an observed value. I would like to estimate an interpolation that predicts the observed value given minimum and maximum values. To do this, I would like to calculate an average and a standard deviation for the slope and intercept for each record. My understanding is that the STDDEV and AVG functions apply only to queries that have a GROUP BY clause. Mine table doesn’t have anything that I can group by, unless I do something stupid like group by whether the record id is odd or even. Is there a way to compute these kinds of descriptive statistics using MySQL?
I have a table with three numbers in each record, a minimum, a maximum,
Share
You do not have to use
GROUP BYto useAVGandSTDDEVas the following example shows: