Questions tagged [fitting]
Questions on the use of Mathematica to construct models for approximating empirical data.
1,783 questions
58
votes
6
answers
23k
views
How to perform a multi-peak fitting?
I am wondering how to implement the multi-peak detecting and fitting in Mathematica. Following is an example of fitting the data using three peaks (such that the data ~ peak1 + peak2 + peak3).
The ...
53
votes
4
answers
6k
views
How to visualize 3D fit
I have a data set of x,y,z values and I fit a function of x,y to the data. This works, but I can't come up with a nice way to ...
53
votes
5
answers
15k
views
Simultaneously fitting multiple datasets
What is the proposed approach if one wants to simultaneously fit multiple functions to multiple datasets with shared parameters?
As an example consider the following case: We have to measurements of ...
50
votes
8
answers
9k
views
Fitting points to tilted, off-center ellipse
I have 24 x-y points that are supposed to form an ellipse.
...
44
votes
1
answer
2k
views
How to fit a linear model in the Bayesian way in Mathematica?
Basically, I'm looking for the Bayesian equivalent of LinearModelFit. As of the moment of writing, Mathematica has no real (documented) built-in
functionality for ...
43
votes
2
answers
5k
views
What are some common issues with fitting functions to data?
Mathematica has numerous functions designed to, or capable of, fitting known functions, and finding unknown functions to match data sets. What are some common issues that come with finding those fits?
37
votes
3
answers
3k
views
What is behind experimental function: FindFormula?
In version 10.2 there is a new experimental function: FindFormula[].
I suspect that a genetic programming algorithm (symbolic regression) is behind this new ...
35
votes
7
answers
19k
views
Estimate error on slope of linear regression given data with associated uncertainty
Given a set of data, is it possible to create a linear regression which has a slope error that takes into account the uncertainty of the data?
This is for a high school class, and so the normal ...
33
votes
2
answers
8k
views
How to fit 3 data sets to a model of 4 differential equations?
I'm a biologist and a newbie in Mathematica. I want to fit three data sets to a model consisting of four differential equations and 10 parameters. I want to find the parameters best fitting to my ...
33
votes
3
answers
6k
views
What is the difference between FindFit and NonlinearModelFit
I cannot get the difference between these two fitting functions in Mathematica. I even read in MMA that the result of these two are the same.
31
votes
4
answers
1k
views
What is the natural way of using Dataset to get a FittedModel?
The new Dataset in Mathematica 10 is a great addition to the language, potentially reducing the convenience gap with R. Given this, I would like to understand what the equivalent simple or natural ...
31
votes
5
answers
7k
views
Mathematica envelope for the bottom of a plot, a generic function
I have the following set-up:
xaxis = Table[x, {x, 0, 10, 0.01}];
yaxis = Table [Sin[x] + Abs[RandomReal[{-1, 1}]], {x, 0, 10, 0.01}];
ListLinePlot[Transpose[{
xaxis, yaxis}]]
My questions is how can ...
29
votes
5
answers
4k
views
Mathematica Implementations of the Random Forest algorithm
Is anyone aware of Mathematica use/implementation of Random Forest algorithm?
28
votes
6
answers
24k
views
How to determine the center and radius of a circle given some points in 3D?
I was wondering if anyone could give me a hand with this problem I have.
I have six points on a plane, and I am trying to determine if they form a circle or not.
I know that any three points in 2D ...
27
votes
6
answers
16k
views
Problem with NonlinearModelFit
I'm having trouble with a non-linear fit:
fit = NonlinearModelFit[data,
y0 + A Sin[\[Pi] (x - xc)/w], {y0, xc, A, w}, x]
where ...