Fit a nonlinear parametric model to data by minimizing the sum of squared residuals. Supports exponential_fit (y = a·e^(bx) + c, useful for decay processes and yield curves) and polynomial_fit (y = p0 + p1·x + p2·x^2 + …, general curve fitting). Uses iterative optimization to find parameters that best fit the observed data. Essential for curve calibration, term structure fitting, volatility smile modeling, and empirical model estimation. [Tier: BASIC, Credits: 1]
API key for authentication. Get your key at https://api.fincept.in/auth/register
Model type to fit
exponential_fit, polynomial_fit "exponential_fit"
X coordinates of data points
[0, 1, 2, 3, 4]Y coordinates of data points (observations to fit)
[5.1, 3.8, 2.9, 2.3, 2]Initial guess for model parameters (exponential: [a,b,c], polynomial: [p0,p1,p2,...])
[5, -0.5, 1.5]