Re: Best linear Fit to slope data with Fixed starting point/value.
- To: mathgroup at smc.vnet.net
- Subject: [mg63549] Re: Best linear Fit to slope data with Fixed starting point/value.
- From: dh <dh at metrohm.ch>
- Date: Thu, 5 Jan 2006 03:12:17 -0500 (EST)
- References: <dpg13b$pmj$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Lea,
I assume by "I must retain the original first value (151.0993767999595)"
you mean that your line must pass through this point. In this case you
simply fit the function:
m*(x-1) + 151.0993767999595
instead of your original function. The x-1 is necessary because by
default the first point has the abscissa 1 and not 0. If you would
specify x values for your points you would need to subtract the x value
of the first point.
Daniel
Lea Rebanks wrote:
> Given the list below, (quite large - 4516 points), is when plotted an
> almost perfect straight line with noise.
>
> I want to plot the best linear fit (i.e. m*x + b) to this data, however
> I must retain the original first value (151.0993767999595).
>
> Obviously I could do this manually, but was wondering if there was a
> more accurate & efficient way using Mathematica.
>
> Many thanks for your attention.
>
> Best Regards - Lea Rebanks...
>
>
> Data below:-
>
> {151.0993767999595, 151.15815657519292, 151.21693635042635,
...
>