Std deviation from fit (or other fitting tool)

9 ビュー (過去 30 日間)
Ritu
Ritu 2016 年 11 月 10 日
コメント済み: dpb 2016 年 11 月 11 日
This might be a previously answered question, but so far, I haven't found anything that specifically would help me.
How can I get the standard deviation for a fit using the fit function, or maybe some other fitting tool?
Thanks, R

回答 (1 件)

dpb
dpb 2016 年 11 月 10 日
I guess first is what you mean by "standard deviation for a fit"?
That said, however, from
>> help fit
...
[FO, G] = fit(X, Y, ...) returns appropriate goodness-of-fit measures, for
the given inputs, in the structure G. G includes the fields:
-- SSE sum of squares due to error
-- R2 coefficient of determination or R^2
-- adjustedR2 degree of freedom adjusted R^2
-- stdError fit standard error or root mean square error
...
>>
Any of that of interest, perhaps???
  2 件のコメント
Ritu
Ritu 2016 年 11 月 11 日
Hi,
Thanks for your answer. However, what I do need is this: I need to put the fitted values into another weighted fit using the cfit tool. And the weights of each point is defined as the inverse of the variance of that point. And to do this, I need the standard deviation of the point from the initial fit :| and that seems to be damned hard to get out of anything :/
Thanks though. :)
dpb
dpb 2016 年 11 月 11 日
" I need the standard deviation of the point from the initial fit"
What, precisely, does this mean? A point has no standard deviation; it's easy enough to compute a residual at a point, but a variance? "Not so much..." which possibly explains why it's "damned hard to get out of anything". :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by