Questions tagged [best-fit-curve]

Anything related to so-called curve-fitting algorithms, i.e. algorithms used to compute the best parameters of some given curve model which make the curve best approximate some data points, according to some given optimality criterion.

Anything related to so-called curve-fitting algorithms, i.e. algorithms used to compute the best parameters of some given curve model which make the curve best approximate some data points, according to some given optimality criterion.

An example of a curve-fitting problem is: finding the parameters m and q of the line equation y=mx+q so that the mean distance of a set of points from that line in the plane is minimal.

103 questions
0
votes
2 answers

How to fit an elliptic cone to a set of data?

I have a set of 3d data (300 points) that create a surface which looks like two cones or ellipsoids connected to each other. I want a way to find the equation of a best fit ellipsoid or cone to this dataset. The regression method is not important,…
0
votes
1 answer

trend finding in graphs

I am attempting to identify point at which upward and downward trends with data sets start and end, these trends can happen at any given point within the X axis. For example with the given data set, we can see that an upward trend started from point…
godzilla
  • 3,005
  • 7
  • 44
  • 60
0
votes
1 answer

Selecting model with maximum R-squared when curve fitting in MATLAB

I am modeling a time-series data set (x and y) with multiple methods (cubic, 4th-degree polynomial, and exponential). Is there a way to program matlab such that it selects the model with the maximum R-squared value, and then uses that model to…
0
votes
1 answer

Find Best-Fit-Line and Correlation Between Two Tables in Microsoft Access?

I have two queries in a Microsoft Access database. They are named Average and Home_Runs. They both share the same first three columns Name, [Year] and Month. Query: Average Name Year Month Average Cabrera 2013 5 .379 Fielder …
gromit1
  • 577
  • 2
  • 14
  • 36
0
votes
2 answers

If Best Fit Straight Line the best method for prediction

I need to make prediction for a next point, based on given set of point samples on 2-d coordinate system. I am using Best-Fit Straight Line method for such prediction. Please let me know if there is method better than Best-Fit Straight Line? My code…
Radioguy
  • 23
  • 4
0
votes
1 answer

plot new values for best fit nonlinear curve

I have created the best fit for a non linear function. It seems to be working correctly: #define a function fncTtr <- function(n,d) (d/n)*((sqrt(1+2*(n/d))-1)) #fit dFit <-…
andreSmol
  • 1,028
  • 2
  • 18
  • 30
-1
votes
1 answer

How do I get a smooth outline (with filled area) for this plot?

PDF from histogram data I am trying to get a PDF with a smoother outline. Also, the area under the curve must be filled. How can I get the curve of best fit for this? This is the code I have used. plt.hist( data, range=[0, 60], …
-1
votes
1 answer

Stepwise AIC using forward selection in R

I am trying to do a forward variable selection using stepwise AIC in R but I don't think that I am getting the desired results. Specifically, the function should start with no variables and keep adding variables and get their AIC values. However,…
yash471994
  • 63
  • 7
-1
votes
1 answer

Curve fitting of Hyperbola and finding its parameters associated

Assuming General formula of hyperbola to be y = 1 / (a*x + b), and we are provided with 100 data points out of which 99 points exactly fits a hyperbola and one data point is doesn't fits in it (unknown), from this information we need to find…
-1
votes
1 answer

Line of best fit in Python for csv data set?

I'm making a very basic plot. I have a csv data set that looks like this: 1,280.6 2,280.2 3,276.6 4,279.6 5,277.4 6,279.4 7,274.2 8,278.2 9,276.4 10,279.4 11,274.6 12,276.2 13,274.4 14,277.8 and I am plotting it with matplotlib like this: import…
albc
  • 23
  • 2
  • 6
-1
votes
1 answer

calculate x-value of curve maximum of a smooth line in R and ggplot2

data <- dput(data): structure(list(x = 1:16, y = c(-79.62962963, -84.72222222, -88.42592593, -74.07407407, -29.62962963, 51.38888889, 79.62962963, 96.2962963, 87.96296296, 88.42592593, 73.14814815, 12.96296296, -63.42592593, -87.03703704, -87.5,…
-1
votes
1 answer

Draw best fit line TeeChart (Delphi)

I'm wanting to take my Tchart (connected to a database query through a clientdataset) and draw a best fit line onto it. To do this (unless there is a built in method) I'm planning to work out the gradient of the first and the last data entries. How…
TobyFox1997
  • 71
  • 1
  • 5
-3
votes
2 answers

Is there a way to solve the bestfit allocation problem in bash?

I have some problems with the application bestfit allocation dynamic partition in Bash and i want to know how do i create the bestfit algorithm that can work with blocks and processes and allocate by entering if a block fits? I tried to launch it…
1 2 3 4 5 6
7