Fitting of a noisy curve by an asymmetrical peak model, with an iterative process (
Gauss-Newton algorithm with variable damping factor α).
Top: raw data and model.
Bottom: evolution of the normalised sum of the squares of the errors.
Curve fitting is constructing a mathematical function which best fits a set of data points.
Curve fitting may involve either interpolation or smoothing. Using interpolation requires an exact fit to the data. With smoothing, a "smooth" function is constructed, that fit the data approximately. A related topic is regression analysis, which focuses more on questions of statistical inference such as how much uncertainty is present in a curve that is fit to data observed with random errors.