Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Trend Line / Curve
Date: Fri, 6 Nov 2009 16:19:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <hd1i9m$720$1@fred.mathworks.com>
References: <hcv04u$9sq$1@fred.mathworks.com> <hd1gpl$s3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257524342 7232 172.30.248.35 (6 Nov 2009 16:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 16:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2026598
Xref: news.mathworks.com comp.soft-sys.matlab:583050


"Richard Willey" <rwilley@mathworks.com> wrote in message <hd1gpl$s3$1@fred.mathworks.com>...
> Hi There
> 
> MathWorks offers a couple different products to extend the basic fitting 
> capabilities in core MATLAB.
> 
> Curve Fitting Toolbox is specific designed to solve curve and surface 
> fitting problems.  The toolbox supports a wide number of different 
> parametric models including both exponential curves.  You also have the 
> option to specify your own custom equation for nonlinear regression.  The 
> Toolbox includes GUI and command line options for all fitting operations. 
> The Toolbox also supports a variety of post processing options (calculating 
> the area under a curve, differentiation, etc).  And, of course, the toolbox 
> also supports standard goodness-of-fit measures including R^2.
> 
> If you're working with problems that feature a large number of independent 
> variables you'd be better off looking at Statistics Toolbox.  Statistics 
> Toolbox provides a number of metrics to determine whether your independent 
> varaibles are correlated with one another.  The Toolbox also supports 
> techniques like feature selection and feature transformation to help deal 
> with these types of problems.
> 
> regards,
> 
> Richard
---------------------

Thanks Richard for such a detailed reply. I do have the statistics toolbox but very interestingly in 'polynomial fitting tool' (part of stat. toolbox), one can fit a curve but can not get the value of R-sq or the value of P which cuold confirm that this fitting is good enough to be considered.


Just do regstats (y,x) and you will see an excellent table showing the values which I actually want to calculate but sadly matlab even with statistical toolbox calculates these values only for linear models. My question is that is it possible to calculate these values for high degree polynomials without using a curve fitting toolbox?

I am askign because may be I could not explore it correctly. Could you please confirm if I am correct or not?