# fitting's questions - English 1answer

1.029 fitting questions.

### 2 Linear mapping to fit points to subset of other points

I have some set of points making a specific pattern. I want to find a linear mapping (dilations + translations) to find a similar pattern in a second larger set of points. I want to find the best (or ...

### Forcing a 2D nonlinear fit through a set of points

1 answers, 42 views fitting data nonlinear
I am trying to fit a set of data points using exponential functions as the underlying process suggests an exponential decay. The data points are: ...

### 5 Fitting PDF to two normal distributions

2 answers, 374 views probability-or-statistics fitting
I'm trying to fit this data As you can see there's two peaks. I want to fit this curve with two normal distribution with the same variance but different mean. So far I've got this: ...

### 5 Fitting data to a complicated function

So, where to begin. I have a certain dataset that I want to fit to a function. However, the function is rather complicated (matrix inversions, linearsolve) and does in general not have a closed form ...

### 1 How do I access individual groups after using GroupBy on a Dataset object?

1 answers, 80 views fitting gathering
I want to read in an xlsx (Excel) or TSV (tab-delimited) file, assuming this results in a rectangular table of data. Then I after applying GroupBy (using multiple keys), I should have several ...

### Find interpolation with derivatives at some points

1 answers, 41 views fitting interpolation
I am trying to find out how to find a good interpolation of a periodic function I have from some data points. The only problem is that I need to make sure that derivatives at the starting and ending ...

### 4 How to enter an equation into FindFit?

2 answers, 4.039 views functions fitting
I have the equation ...

### 4 Problem in using FindFit

I have the following set of datadata={{0,0,0},{0,2,1},{0,4,2.247},{0,6,3.627},{0,8,5.031},{1,0,3.346}};where the values are {n, L,$\varepsilon$} and satisfy ...

### How to find minima for non scalar-valued [on hold]

I want to find minima. My code: ...

### How to get more digits from Fit

Taking the example from the Mathematica documentation for Fit, consider the following ...

### -1 After fitting data by using FindFit, I want to put everything into one graph

0 answers, 26 views plotting fitting
I plot the graphs (there are two more) with FindFit fitting method. Now, i want to put all the graphs into one graph with both data and fitting lines. However, the code that i wrote below shows only ...

### 1 How to pass starting values in matrix form?

1 answers, 45 views fitting distributions
Consider the following MWE, where I try to pass starting values to FindDistributionParameters[]: ...

### 14 What are the practical differences between Fit, NonlinearModelFit, and FindFit

What are the practical differences between:FindFit,NonlinearModelFit,and Fit. Do they call ...

### 1 Evaluating a formula that uses summations and products of vectors

2 answers, 62 views fitting summation vector
Could someone tell me how to find beta1? I have the following data: I don't know how to write beta1, and I don't find ...

### Difficulty fitting an equation to a data set using exponential growth and logistical growth [closed]

I'm having an extremely hard time getting linearmodelFit, findFit, or nonlinearModelFit to give me an output that I can work with and I can't seem to find the problem. My list is ...

### Partitioning Mixture Distribution Dataset into constituent Distributions

Suppose I have a dataset that is derived from a random sampling from a mixture distribution ...

### 1 Estimation of the error for zero degree of freedom fit with error bar

1 answers, 66 views fitting error
I am performing a fit on experimental data with zero degree of freedom but with error bar using NonlinearModelFit: ...

### Convolve and fitting

1 answers, 78 views fitting convolution
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? ...

### 2 Standard error of a nonlinear fit

1 answers, 120 views probability-or-statistics fitting
I would like to better understand the process that Mathematica uses to determine the standard error when fitting with NonlinearModelFit. I have been reading this ...

### Problem with fitting square root-like function

1 answers, 63 views fitting error data
I have following data: ...

### Fitting complex equation

1 answers, 49 views fitting convolution
I used the following code for fitting but it does not produce an output.I kept it nearly 3 to 4 hours but it does not give any output. How should I make it correct?I have used two equation(f1,f2).I ...

### Simultaneous fitting of polynomial parameters to data [duplicate]

0 answers, 41 views probability-or-statistics fitting data
I have two following data-sets: ...

### Mean and Distribution of Data

I am having a difficult time fitting my data to a distribution and finding the mean of the distribution. The data set is large, but here is a small sample ...

### How to do good surface fitting in Mathematica?

I would like to fit a 3D surface in Mathematica, and I can do a rough fitting using the following code: ...

### 14 2D smoothing spline interpolation

3 answers, 1.092 views fitting interpolation splines
Does Mathematica have 2D smoothing spline interpolation built in? I requires an interpolation method with smooth first derivatives and cubic bivariate splines fulfill this nicely. In python I would ...

...

### 1 Get properties of a list of fitted models (objects)

If I do a fit, such asnlm = NonlinearModelFit[data, {x^a Cos[b x + c]}, {a,b,c} ,{x}]then you return a FittedModel object, ...

### 3 Design matrix rank does not match

1 answers, 452 views matrix fitting
I'm attempting to fit a linear model and Mathematica returns the error message: "The rank of the design matrix 9 is less than the number of terms 10 in the model. The model and results based upon it ...

...

### 10 Does anyone have Mathematica code for Deming regression?

1 answers, 198 views fitting code-request
Deming regression finds a regression line that relates x and y variables for how they covary, i.e., it finds the relationship between x and y, whereas, for example, ordinary least squares would find ...

### Problem using Nonlinearfit on integral function

I tried to fit my data with a very complicate Integrated function. But I get many errors messages when I perform the fit. For exemple I get : NIntegrate::inumr: The integrand ....has evaluated to ...

### 10 Quantile Regression using Neural Networks (Custom Loss function)

1 answers, 132 views fitting neural-networks
I would like to perform a Quantile Regression within Mathematica's neural network framework. Since there exist a couple of tutorials for this exact problem in Tensorflow, i.e. Deep Quantile ...

### 40 Fitting points to tilted, off-center ellipse

I have 24 x-y points that are supposed to form an ellipse. ...

### 4 Why does the PearsonChiSquare from FindDistribution and DistributionFitTest differ by a factor of $10^{20}$?

2 answers, 71 views fitting distributions
This is similar to the unanswered "Why the results of FindDistribution and DistributionFitTest are not consistent?" My more specific question is: Why do the PearsonChiSquare values for ...

### Model fitting for concave curve: test if asymptote or convergence exist

I am asking a double check if conceptually I set up proper model and proceeding in good direction to drive conclusions. I have a distribution that looks like this: I want to test if for increasing x ...

### 1 Fit Gaussian Function [duplicate]

I want to fit the Gaussian Function for the following data. How should I do it? ...

...

### 1 Linear regression with weighted data?

LinearModelFit doesn't seem to support WeightedData objects. Is there anything I can do smarter than repeating the data ...

### What is the best fit for this data?

First I entered the data and graph it, then I used the non-linear adjustment command to have a model of my data, I asked Mathematica for the square r, to know how good the model was, then I put ...

...

### 4 How do I treat the results of Fit as text?

2 answers, 120 views fitting text
I would like to take the results of Fit (or any FittedModel) and treat them as text, including making substitutions for the ...

### 2 Fitting an equation to data set, am I doing this right?

1 answers, 72 views fitting data histograms
I have a large data set of different values of time. I want to make 1) a histogram 2) fit an exponential function of form A+B*exp(-t/b) from the data To my understanding, this is how I'd do it<...

### Estimating parameters for pair of differential equations efficiently

I'm trying to estimate the parameters for the following pair of differential equations ...

### Ranging the parameter in Fitting

I want to apply a range for parameters(a,b,c,d).What is the correct way to do it? ...

### Parametric solution of a system of two nonlinear ODEs with data describing only one the functions

I have the following pair of nonlinear ordinary differential equations ...

### LinearModelFit with large number of coordinates

I am sorry if this is on here already (or if it is really easy!) I have looked and I am not sure how to go about it. I have data that is 1000 rows and each row contains 200 columns (x1,x2,x3,...) I ...

### 3 What is Mathematica's ML Linear Regression Method?

When I run p = Predict[trainingSet, Method -> "LinearRegression"];, how is that different from just running ordinary least squares? It's quite slow on a ...

### 3 Deal with noise and missing points in data [closed]

0 answers, 59 views fitting interpolation
I have run a simulation which has resulted in some bad data (see graph below). What would be the best way to detect and interpolate the missing points in Mathematica (i.e. remove the noise)? Raw ...

### 1 Distance between data and curve

I have two datasets: ...

### 1 Why does LinearModelFit give me an equation in $z$ rather than $x$?

1 answers, 45 views fitting variable-definitions
I am working on a Mathematica notebook and making graphs for my lab. I can't make a graph for my linearized data as LinearModelFit gives equation in ...