public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Dirk Eddelbuettel <edd@debian.org>
To: gsl-discuss@sourceware.org
Subject: Re: computing R-squared with gsl_multifit
Date: Wed, 26 Sep 2007 16:18:00 -0000	[thread overview]
Message-ID: <20070926161818.GA6539@eddelbuettel.com> (raw)
In-Reply-To: <m3ps054e88.wl%bjg@network-theory.co.uk>

On Wed, Sep 26, 2007 at 04:51:19PM +0100, Brian Gough wrote:
> At Tue, 25 Sep 2007 13:46:28 -0600,
> Patrick Alken wrote:
> >   Computing the value would require adding about 4-5 lines of
> > code and it can be computed at the same time as chisq so there
> > doesn't have to be an extra loop added in.
> 
> Hello,
> 
> I think I'd prefer not to have results passed back through the
> workspace, it's not really part of the design -- a separate function
> is better, as for the correlation coefficient.
> 
> A question: is the formula the same for both weighted and unweighted
> fits?

Yes, as it relates 'explained sum of squares' to 'total sum of
squares', so it just uses residuals, irrespective of whether these
were computed with a unit vector of weights, or with actual weights.

Wikipedia is not a bad start:
http://en.wikipedia.org/wiki/R-squared

Hth, Dirk

-- 
Three out of two people have difficulties with fractions.

  reply	other threads:[~2007-09-26 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25 19:46 Patrick Alken
2007-09-26 15:52 ` Brian Gough
2007-09-26 16:18   ` Dirk Eddelbuettel [this message]
2007-09-26 16:26     ` Patrick Alken
2007-09-26 16:43       ` Dirk Eddelbuettel
2007-09-26 16:20   ` Patrick Alken
2007-10-02  8:35     ` Brian Gough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070926161818.GA6539@eddelbuettel.com \
    --to=edd@debian.org \
    --cc=gsl-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).