Questions tagged [model-fitting]

Fitting parameters of a function to explain given data

414 questions
-1
votes
1 answer

Anyway to fit this model to these data points?

I have been tryin to fit these data points to the exponential model y=ae^(px+qx^2). The reason I need this model fit is due to the paper "Temperature dependence of the functional response" by Göran Englund 2011 where they fit this model on data…
-1
votes
1 answer

Python, how to fit dataset to 1 or 2 equations

I have the following dataset from a mechanical indentation test: https://www.dropbox.com/s/jovjl55sjjyph3r/Test%20dataset.csv?dl=0 The graph shows the displacement of a spherical probe vs force recorded. I need to fit these data with specific…
Pier
  • 133
  • 2
  • 10
-1
votes
1 answer

Threshold for fitting generalized pareto model

I need the R code for setting a threshold while fitting a generalized Pareto distribution.
-1
votes
1 answer

Fitting and plotting non linear regression in R

I am trying to fit a non linear function to a given set of data (x and y in code snippet), the function is defined as f(x) = a/((sin((x-b)/2))^4) x <- c(0, 5, -5, 10, -10, 15, -15, 20, -20, 25, -25, 30, -30) y <- c(4.21, 3.73, 2.08, 1.1, 0.61,…
Honj25
  • 1
  • 1
-1
votes
1 answer

How to do a simple 'model fitting' in python?

Suppose I have three data sets x, y, z. I want to fit a simple model: A*x + B*y + C = z (A, B, C are constant.) How can I do that in Python? I've found scipy.optimize.curve_fit. However, it seems like it can take only one variable: curve_fit(f,…
Leftriver
  • 77
  • 1
  • 8
-2
votes
1 answer

Is there any tool for regression model?

I need to derive the linear/Quadratic equation from the set of examples. Is there any tool available?
bala
  • 2,231
  • 2
  • 14
  • 9
-2
votes
1 answer

Distribution fitting using various criteria in R

Consider me to be an undergraduate student doing a routine research study. Is there a simple, straight forward way to find and access (or implement) distribution fitting in R using the following estimates: Kolmogorov-Smirnov Minimum Distance…
-2
votes
1 answer

Function analysis, fitting

I have two datasets, which I would like to find the best fitting function types: x <- c(10, 40, 70, 100, 130, 160, 190, 220) y1 <- c(41.8, 45.2, 50.8, 62.5, 73.2, 86.9, 95.4, 107.9) y2 <- c(1.9, 34.3, 269.2, 1119.4, 2627.1, 5801.2, 11794.8,…
poetyi
  • 236
  • 4
  • 13
-4
votes
1 answer

How can I find two missing parameters in r using lm() function?

I was asking to find best fit values for two unknown parameters using the lm() function in r, I have used the lm function before but I am unsure of how to do this for unknown parameters? I need to use the lm function on this formula log⁡(C)~…
1 2 3
27
28