Thread Subject: confidence intervals for weighted nonlinear fit

Subject: confidence intervals for weighted nonlinear fit

From: John

Date: 30 Sep, 2008 12:37:02

Message: 1 of 2

Are confidence intervals from weighted fits meaningful?

I have been using lsqnonlin to fit my data and have been getting the confidence intervals using nlparci on the Jacobian returned by lsqnonlin. Now that I am weighting my data I'm not sure if this is still appropriate.

More specifically, I am fitting a change over time to get rates for various conditions. Eventually I want to fit my rates to a function that accounts for these conditions. To do this I want to weight by how much I trust my rates, but my rates themselves came from weighted data.

How can I combine my confidence in my data with my confidence in my original fits for a second fit?

Subject: confidence intervals for weighted nonlinear fit

From: Peter Perkins

Date: 30 Sep, 2008 12:47:45

Message: 2 of 2

John wrote:
> Are confidence intervals from weighted fits meaningful?
>
> I have been using lsqnonlin to fit my data and have been getting the confidence intervals using nlparci on the Jacobian returned by lsqnonlin. Now that I am weighting my data I'm not sure if this is still appropriate.

John, this demo

<http://www.mathworks.com/products/statistics/demos.html?file=/products/demos/shipping/stats/wnlsdemo.html>

touches on that subject, though it assumes you have the Statistics Toolbox. Hope it helps.

- Peter Perkins
  The MathWorks, Inc.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
lsqnonlin John 30 Sep, 2008 08:40:06
nlparci John 30 Sep, 2008 08:40:06
jacobian John 30 Sep, 2008 08:40:06
confidence inte... John 30 Sep, 2008 08:40:06
weighting John 30 Sep, 2008 08:40:06
rssFeed for this Thread

Contact us at files@mathworks.com