Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10790 > unrolled thread

NonlinearModelFit to multiple data sets simultaneously?

Started bydantimatter <google@dantimatter.com>
First post2012-07-04 07:35 +0000
Last post2012-07-06 07:25 +0000
Articles 2 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  NonlinearModelFit to multiple data sets simultaneously? dantimatter <google@dantimatter.com> - 2012-07-04 07:35 +0000
    Re: NonlinearModelFit to multiple data sets simultaneously? dantimatter <google@dantimatter.com> - 2012-07-06 07:25 +0000

#10790 — NonlinearModelFit to multiple data sets simultaneously?

Fromdantimatter <google@dantimatter.com>
Date2012-07-04 07:35 +0000
SubjectNonlinearModelFit to multiple data sets simultaneously?
Message-ID<jt0ro9$1g9$1@smc.vnet.net>
Hello All,
I'd like to fit the following model to time series data I've collected:

- ArcTan[( Sqrt[K1/K2] (t0 - t) ) / Sqrt[K1*K2]

where K1, K2, and t0 are unknown parameters.  Currently I'm using NonlinearModelFit to independently extract each of these parameters from five different datasets, even though the only parameter expected to change between the datasets is K1.  Is there a way to NonlinearModelFit to all the data at once to find the single values of t0 and K2 that give best fit to all, while still allowing K1 to 'float'?

Thanks!

[toc] | [next] | [standalone]


#10818

Fromdantimatter <google@dantimatter.com>
Date2012-07-06 07:25 +0000
Message-ID<jt63ts$9ol$1@smc.vnet.net>
In reply to#10790
in case it's relevant, the data:

data=
{{{18.1437,1605.},{21.6767,2149.},{25.2097,2883.},{28.7425,3457.},{32.2753,4295.},{35.8085,4846.},{39.3415,5296.},{42.8745,5792.},{46.4077,6150.},{49.9405,6387.},{53.4733,6541.},{57.0065,6729.},{60.5395,6843.},{64.073,7093.},{67.606,7052.},{71.1395,7343.},{74.6728,7255.},{78.2058,7427.},{81.7393,7272.},{85.2723,7646.},{88.8052,7480.5},{92.3385,7636.},{95.8717,7639.},{99.4047,7663.},{102.938,7755.},{106.471,7592.},{110.004,7660.},{113.537,7663.},{117.07,7442.},{120.603,7727.},{124.136,7879.}},{{18.1437,1626.},{21.6767,2415.},{25.2097,3143.},{28.7425,3671.},{32.2753,4692.},{35.8085,5251.},{39.3415,5843.},{42.8745,6460.},{46.4077,6920.},{49.9405,7100.},{53.4733,7288.},{57.0065,7552.},{60.5395,7720.5},{64.073,7808.5},{67.606,7823.5},{71.1395,8134.},{74.6728,8201.},{78.2058,8104.},{81.7393,8201.},{85.2723,8344.},{88.8052,8230.},{92.3385,8352.},{95.8717,8348.},{99.4047,8463.},{102.938,8515.},{106.471,8626.},{110.004,8314.},{113.537,8592.},{117.07,8427.},{120.603,8525.},{124.136,8490.}},{{18.1437,1339.},{21.6767,2071.},{25.2097,2755.},{28.7425,3291.},{32.2753,4105.},{35.8085,4875.},{39.3415,5374.},{42.8745,5991.},{46.4077,6730.},{49.9405,6860.},{53.4733,7148.},{57.0065,7495.5},{60.5395,77 62.5},{64.073,8015.5},{67.606,8075.5},{71.1395,8296.},{74.6728,8227.},{78.2058,8514.},{81.7393,8400.},{85.2723,8687.},{88.8052,8746.},{92.3385,8748.},{95.8717,8755.},{99.4047,8853.},{102.938,8983.},{106.471,8877.},{110.004,8849.},{113.537,8794.},{117.07,8935.},{120.603,8926.},{124.136,9097.}},{{18.1437,1461.},{21.6767,2070.},{25.2097,2642.},{28.7425,3297.},{32.2753,4171.},{35.8085,4834.},{39.3415,5588.},{42.8745,6187.},{46.4077,6868.},{49.9405,7219.},{53.4733,7717.5},{57.0065,8257.},{60.5395,8441.},{64.073,8913.},{67.606,9155.},{71.1395,9355.},{74.6728,9460.},{78.2058,9767.},{81.7393,9792.},{85.2723,9972.},{88.8052,10019.},{92.3385,10060.},{95.8717,10195.},{99.4047,10265.},{102.938,10445.},{106.471,10132.},{110.004,10425.},{113.537,10332.},{117.07,10398.},{120.603,10314.},{124.136,10467.}},{{18.1437,1444.},{21.6767,2054.},{25.2097,2633.},{28.7425,3285.},{32.2753,4013.},{35.8085,4729.},{39.3415,5351.},{42.8745,5865.},{46.4077,6446.},{49.9405,7225.},{53.4733,7611.},{57.0065,8123.},{60.5395,8373.},{64.073,9148.},{67.606,9424.},{71.1395,9727.},{74.6728,10081.},{78.2058,10182.},{81.7393,10664.},{85.2723,10841.},{88.8052,10960.},{92.3385,11160.},{95.8717,11258.},{99.4047,11516.5},{102.938,11394.5},{106.471,11568.5},{110.004,11635.5},{113.537,11754.5},{117.07,11894.5},{120.603,11901.5},{124.136,12234.5}}};

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web