P values of fitting constants using FMINCON function
显示 更早的评论
I used a fmincon function to solve my model equation (K2) which is depended on three fitting constants. I know the values of K2 experimentally, so accordingly I able to fit my model equation and found values of three constants as shown below:
K2 = 2.*(Aeff./A0).*((-(a.*blade)+(b.*NredT+c)).*(A0/AR).*z3geom.*sin(z2an)+sqrt(K1./2).*tan(beta));
a = 1.042 ; b = 0.875; c = 0.325
By using this three values in my equation it provides acceptable results according to the experimental data with a root mean square error of 0.00235.
I would like to calculate the P values of the constants (a, b and c) to check there significances. Is there any commond or a function were I can use in the matlab or with in FMINCON function to know the p values of each constant.
Thank you in advance for your time to answer my question.
2 个评论
Rik
2019-3-12
I am not a statistician, so I don't know if this is actually possible with fmincon. The main point is that you will need a way to estimate how stable your solution is, so you can calculate a confidence interval. Do you really specifically need a p value? Or would another goodness of fit parameter also be acceptable?
If you intend to publish something about this, it might be a good idea to look around in the literature of your field to see how others solved this issue, and/or talk to a statistician for advice.
vishnu samala
2019-3-12
回答(1 个)
Star Strider
2019-3-12
0 个投票
If you have fmincon, then you also have lsqcurvefit. Assuming you have constraints that lsqcurvefit can accommodate, use it to do the parameter estimation, since it will also produce a Jacobian matrix (if you ask it to). If you also have the Statistics and Machine Learning Toolbox, you can use the nlparci (link) function to estimate their confidence intervals, using the returned residuals and the Jacobian matrix.
2 个评论
vishnu samala
2019-3-12
Star Strider
2019-3-12
‘But there is no way of calculating the p values for the coefficients with fmincon ?’
Not that I am aware of.
It does not produce either a Jacobian matrix or a covariance matrix, either one of which are required to calculate the parameter confidence intervals. I am not certain that parameter confidence intervals are even defined for a constrained fit, since the imposition of constraints may invalidate them.
类别
在 帮助中心 和 File Exchange 中查找有关 Nonlinear Least Squares (Curve Fitting) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!