Re: Forcing a Fit through a Data Point (Mathematica 5)
- To: mathgroup at smc.vnet.net
- Subject: [mg43616] Re: Forcing a Fit through a Data Point (Mathematica 5)
- From: Bill Rowe <listuser at earthlink.net>
- Date: Tue, 23 Sep 2003 04:02:36 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 9/22/03 at 3:14 AM, airforce1 at comcast.net (Hank Shih) wrote:
> Hello all. I have a set of data for a experiment and I want to create
> the best fit line. Based on the x-y coordinate system, I need the line
> to go through (0, 0) no matter what.
<snip>
> So far, to get the best fit I use:
> abc = Fit[data, {1, x, x}, x]
Use Fit[data,{x},x] or FindFit[data, a x, {a}, x] and you will get the best fit line through the origin.