Tag
Least squares
- How to Find a Sinusoidal Regression EquationLearn how to fit a sinusoidal regression model, estimate its frequency by least squares, and convert the result to amplitude-phase form.
- How to Fit Spherical Harmonics to a 3D GridFit a 3D grid with spherical harmonics by separating radius from angle, weighting samples correctly, and solving for coefficients by least squares.
- How to Compute SSreg and SSres in RegressionCompute regression and residual sums of squares from observed and fitted values, check the total-sum-of-squares identity, and interpret R-squared.
- How to Write Least Squares in Matrix FormExpress least squares as minimizing the residual norm ||Ax − b||, derive the normal equations, and see a fully worked linear-fit example.
- How to Minimize a Sum-of-Squares Error FunctionMinimize a sum-of-squares error by setting its gradient to zero; for linear models, solve the least-squares equations and check uniqueness.