Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5236
| From | Daniel Lichtblau <danl@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Fittings 2 sets of equations and 2 data sets with nonlinearmodelfit |
| Date | 2011-09-27 00:08 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j5r45g$ibr$1@smc.vnet.net> (permalink) |
On 09/26/2011 03:14 AM, JamesE wrote: > Hi, > > My names is James Ellison; and I have 2 nonlinear equations of the type: > > y[1]=x+a*x[1]^2+b*x[1]^3 and y[2]=a*x[2]^3+b*x[2]^5 with the real valued parameters a and b for both equations. > > I further have 2 data sets > > data[1] for y[1] and > data[2] for y[2] > > I can use NonlinearModelFit in order to fit each data[i] set to its function y[i] and get good fits. But the parameters a and b should be the same. > > How can I create a simple code with Mathematica, so that I can do a simultaneous fit resulting in the parameters a and b to be the same. > > I am a Mathematica beginner and would be pleased, if someone could answer my question for beginners. > > Best regards, James Ways of going about this are described in notes at the URLs below. The rough idea is to contsruct one model that switches between two forms based discrete values of a new dimension parameter. Could be, say, 1 for the first data set and 2 for the second one. http://forums.wolfram.com/mathgroup/archive/2004/Oct/msg00031.html http://forums.wolfram.com/mathgroup/archive/2006/Apr/msg00011.html http://forums.wolfram.com/mathgroup/archive/2006/Apr/msg00020.html http://forums.wolfram.com/mathgroup/archive/2010/Apr/msg00280.html Daniel Lichtblau Wolfram Research
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Fittings 2 sets of equations and 2 data sets with nonlinearmodelfit Daniel Lichtblau <danl@wolfram.com> - 2011-09-27 00:08 +0000
csiph-web