# Questions tagged [fitting]

Questions on the use of Mathematica to construct models for approximating empirical data.

1,445 questions
Filter by
Sorted by
Tagged with
2answers
67 views

### How to fit my data to error function?

I asked this question yesterday about fitting my data to logistic function and I received the right answer, but now I have to fit my data ...
1answer
57 views

### How fit my data to a logistic function? [closed]

I have these two data sets: ...
1answer
181 views

### How to Fit This Chemical Experiment Data with such a Complicated Theoretical Model?

I am fitting data on an experiment of potentiometric titration that uses alkali to titrate weak acid in analytical chemistry. Here is the data: ...
1answer
303 views

### Convolve and fitting

I want to convolve two equation, then I want to find the parameters. But it doesn't give the answer and Takes too much time. What is the wrong with my code? ...
1answer
30 views

### Linear regression: confidence interval of the average of 10 slopes, error of propagation and error of the mean [closed]

I have 10 regression slopes in one group, each slope has its associated standard error. Now I want to find the average slope of this group and the associated standard error which will be used to find ...
0answers
30 views

### Simplify function to find rate constants

I have a function to calculate rate constants using nonlinear least square modeling from a 2011 paper by Jia et al. https://www.cell.com/cell/fulltext/S0092-8674(11)00536-8?_returnURL=https%3A%2F%...
2answers
90 views

### Fitting data to equation with one fitting parameter

If I have the following data (x value is composition and y value is temperature): ...
1answer
124 views

### Find a “ridge line” from a set of irregularly spaced points

I'm solvind a slope stability problem whith the finite element method. As an output I get the square root of the second deviatoric invariant of the plastic deformation, which indicates the failure ...
1answer
64 views

### Simpson's 1/3 Rule [closed]

Hi. I'm trying to figure out how to code Simpson's rule in mathematica.
1answer
83 views

### Exponential Decay fit and printed parameters with integer data [closed]

Problem: I'm trying to plot an exponential decay curve on a set of integer data, and print the various parameters and their uncertainties on the plot itself. Having adapted code from another question, ...
2answers
62 views

### Fittind data with shifted Chebyshev polynomials

I am trying to fit data from a simulation to a particular class of polynomials, according to least squares approach. ...
1answer
40 views

### NonlinearModelFit a custom function - getting wrong fit parameters and huge std

Im trying to Fit some measured Data, but the fitted parameters which the FindFit[] Ffunction is returning are completly off. I have the following Data depending on the Temperature ...
2answers
63 views

### How to avoid one-hot encoding for LinearModelFit and NonlinearModelFit

This code works: ...
2answers
66 views

### Drawing a straight line in complex plane

I have these point ...
0answers
61 views

### How does NonlinearModelFit work? [closed]

Suppose I have a model $f (x)$ with some free parameters $a, b$ and I want to fit my model to a data set called Dx. How does NonlinearModelFit find the value of ...
1answer
57 views

### Best fit curve for a list of data

I am kinda new to Mathematica and I have some basic questions. I need to find the best fit curve for a set of data. Here's the data: ...
0answers
27 views

### NMinimize sum of several fitted results

I have 10 data sets and assume them a same parameter, offset in the CorrelationFit function. I would like to minimize the ...
1answer
29 views

### How to convert element's Table to List / Array to make an independent multivariable fit?

I would like to make an independent multivariable fit, but I have problems using a Table that I generated. I can´t use their elements because it isn´t in a list or a rectangular array. Using Table[ ] ...
2answers
234 views

### Fit ellipse to a arbitrary 2D image to extract centroid, orientation, major, minor axis

I am wondering if there is an easy way to fit an ellipse into an arbitrary 2D image quickly, so its centroid, orientation, major, and minor axis length can directly be extracted. In MATLAB, this can ...
2answers
266 views

### How to fit a curve in a picture with an equation?

For a curve taken from a picture, is there any method to fit it with an equation if it appears to be some standard curve? For example, in the following picture, the curve looks like an ellipse or a ...
0answers
57 views

### fitting the dataset with a model equation

I have a dataset. ...
0answers
31 views

### How to evaluate fit at a fixed point

How can I evaluate the result of Fit applied to the data used in the example code below ...
1answer
75 views

### Plot Styling Errors (PlotLabel, PlotTheme, Inset not appearing)

Question: I'm trying to pull together a graph with labelled axes, a title, and an inset box with information relating to the plot such as the y-intercept (A in this code) and it's uncertainty. However,...
3answers
1k views

### Does anyone have experience with performing symbolic regression using Mathematica?

I understand that there is at least one Mathematica package, DataModeler commercially available for symbolic regression. I'm seeking any observations with this or any other similar tool. I'm ...
0answers
24 views

### ParameterTable from NonlinearModelFit returns error messages

I am doing some nonlinear regression using NonlinearModelFit function. Here in the code I am currently working on. ...
1answer
84 views

### How to fit the solution of a NSolve with a NDSolve embedded

I have a system : $$s'(t)=A n+B a(t)\\a'(t)=C s(t)$$ Then I define the function $\tau(n)$ as the solution of the equation : $$a(\tau(n))n=1$$ and I'm looking for the parameters $A,B,C$ with a fit. ...
1answer
83 views

### Error in nonlinearmodel fit for a function with Definite Integral and complex number

I am trying to fit a function and Here is the code which I am trying, Please find the data here dataset ...
1answer
102 views

### Finding Chi^2 of a Non-Linear Fit Model

Question: I have some data, with a y=Ae^(-kt) model applied (It's a radioactive decay), thanks to answers on another question, the model is applied and returns the ...
2answers
148 views

### Applying an exponential decay fit with uncertainties

I have some data from a radioactive decay experiment that I'm trying to fit an exponential decay curve on that will take account of the uncertainties on the data, and then ideally return the data for ...
1answer
91 views

### Mathematica Linear Regression [closed]

How do I create a user-defined function for linear regression without using the built in function. Essentially doing the steps one by one
1answer
59 views

1answer
75 views

### Fitting 3D data with a nonlinear model

I am trying to fit a model to an intensity map to extract three values for the parameters of my model $J_x, J_y, J_z$. Currently, I am running into the issue where I can extract values for these three ...