Regression
Regression is the process of fitting a mathematical model to a set of measured data so that the model can describe the trend of the data, predict new values, or estimate physical parameters. In engineering, measurements are always affected by noise, so an exact fit through every data point is neither possible nor desirable. Instead, regression minimizes a chosen error measure between the observed values y_i and the model predictions y_hat_i. The most common approach is least-squares regression, which minimizes the sum of squared residuals SSE = Σ(y_i - y_hat_i)². For a straight-line model y = a + bx, the least-squares solution has a closed form: b = (nΣx_i y_i - Σx_i Σy_i) / (nΣx_i² - (Σx_i)²) and a = (Σy_i - bΣx_i)/n. For a nonlinear model, the fit is usually obtained iteratively by Gauss-Newton or Levenberg-Marquardt methods, which linearize the model about the current parameter estimates. Goodness of fit is judged by the coefficient of determination R² = 1 - SSE/SST, where SST = Σ(y_i - y_mean)², by the standard error of the estimate, and by residual plots. R² alone can be misleading: adding parameters always increases R², so an adjusted R² or a validation data set is preferred. Overfitting occurs when the model has too many parameters relative to the number of data points and begins to fit noise rather than the underlying trend. Underfitting occurs when the model is too simple to capture the physical behavior. Multicollinearity, outliers, and heteroscedasticity (non-constant variance) also affect the reliability of the fitted parameters. In engineering, regression is used to calibrate sensors, fit material constitutive models, derive empirical correlations from experimental data, and build surrogate models for expensive simulations. The fitted parameters should always be checked against physical units and expected ranges; a mathematically good fit that predicts an unrealistic modulus or negative stiffness is not physically meaningful.
Knowledge Check
1.What is the primary goal of regression in engineering data analysis?
2.Which equation defines the sum of squared errors (SSE) for a regression fit?
3.For the least-squares line y = a + b x, what does the slope b represent?
4.A linear regression on 10 data points gives SSE = 40 and SST = 200. What is R²?
5.Why can R² alone be misleading when comparing models with different numbers of parameters?
6.What is overfitting in regression?
7.Which method is commonly used to fit a nonlinear model y = a · exp(b x) to data?
8.A fitted linear model of a spring test gives force F = -3 + 250 x (N, m). What is physically wrong with the intercept?
9.What does a residual plot that shows a systematic curved pattern indicate?
10.Why should fitted parameters always be checked against physical units and expected ranges?