Curve fitting
Introduction / Definition
Curve fitting finds a mathematical function that approximates observed data. Models may be linear, polynomial, exponential, or another suitable form. A useful fit captures the trend without simply fitting random noise. Residuals help evaluate the quality of a fit.
Framework / Formula / Structure
ŷ=f(x;θ); residual eᵢ=yᵢ−ŷᵢ
Detailed Explanation
Choose a model using theory and exploratory analysis, estimate its parameters, and inspect residuals. More complexity does not automatically mean a better model.
Example
Example: For the fitted curve y=2x+1, x=4 gives ŷ=9.
Output / Expected Result
The predicted value is 9.
Important Points / Notes
- Residual=observed−predicted.
- Avoid overfitting.
- Inspect residual patterns.
Mini Practice Question
For y=3x+2, find the predicted y when x=5.