1
$\begingroup$

I have data for a device that dispenses material and I want to use an exponential decay model in python to relate the flow rate to the mass left inside the device, in particular $flow = \beta_0 + \beta_1e^{\beta_2.mass}$ where $\beta_0$, $\beta_1$ and $\beta_2$ are the parameters of the model. I use the curve_fit function from scipy.optimize with the above dependency and obtain estimates of the parameters.

The data contains measurements from several full runs of the device and I produced parameter estimates for each of them. My goal is to report a single set of parameters to be used for future predictions. I was wondering if there is any justified alternative to just taking the average of the estimates for each parameter between the different runs. Loosely speaking, if one run was more noisy than another it seems reasonable to attribute less importance to it due to it being less reliable.

$\endgroup$
3
  • $\begingroup$ My suggestions are to either A) combine all of the data sets into a single data set and then fit that single combined set, or (B) take the median value of the existing fitted parameters. My guess for B) is that the mean (average) values will be close to the median values if the data collection runs are performed on the same or very similar devices. $\endgroup$ – James Phillips Sep 26 '19 at 17:31
  • 1
    $\begingroup$ Thank you James, I was thinking of combining them in a single data set too but I haven't tried it yet. Sorry for not replying sooner, I though I can't comment until I reach some reputation score but apparently it only holds for other's questions. $\endgroup$ – st210 Oct 1 '19 at 14:30
  • $\begingroup$ A scatterplot of the combined set, acquired on the same equipment, should show the data is the same for each data collection run plus noise. If there is obvious difference other than random noise, that should be investigated for cause. $\endgroup$ – James Phillips Oct 1 '19 at 19:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.