Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!news.glorb.com!news2.glorb.com!postnews.google.com!u36g2000prn.googlegroups.com!not-for-mail
From: jrenfree <jrenfree@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linear fit forcing zerointercept: How to compute confidence 
	interval
Date: Thu, 12 Nov 2009 15:06:08 -0800 (PST)
Organization: http://groups.google.com
Lines: 21
Message-ID: <fd920462-481c-4e9e-9c7a-201a5a209cf7@u36g2000prn.googlegroups.com>
References: <hdi0oi$1tj$1@fred.mathworks.com>
NNTP-Posting-Host: 137.110.142.170
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1258067168 28857 127.0.0.1 (12 Nov 2009 23:06:08 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Nov 2009 23:06:08 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: u36g2000prn.googlegroups.com; posting-host=137.110.142.170; 
	posting-account=lVpOYAoAAAD2lyD71kM3JZW0H08VNtYu
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) 
	Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:584722


On Nov 12, 2:04 pm, "Rafael " <roso...@gmail.com> wrote:
> Hi,
>
> I was using polyfit to fit a line in my data. The nice thing about doing that is that I can actually get the 95% confidence interval as well when I use the polyconf function.
>
> [p,S] = polyfit(x,y,1);
> [Y,DELTA] = polyconf(p,x,S);
>
> Now, I need to fit a line but force the intercept to be zero. My understanding is that polyfit cannot be used, and I heard in some of the posts that a simple equation like X\Y will give me the slope. polyconf needs the S variable calculated in polyfit to generate the confidence interval DELTA. Is there any way I can generate this same variable for the new linear fit X\Y or perhaps another way to compute confidence intervals in this case?
>
> Thank you,

http://www.mathworks.com/support/solutions/en/data/1-12BBUC/index.html?product=OP&solution=1-12BBUC