Back to Search Start Over

QR Decomposition for the Least Squares Method: Theory and Practice

Authors :
Alexey L. Voskov
Source :
International Journal of Mathematical Education in Science and Technology. 2024 55(6):1506-1523.
Publication Year :
2024

Abstract

QR decomposition is widely used for solving the least squares problem. However, existing materials about it may be too abstract for non-mathematicians, especially STEM students, and/or require serious background in linear algebra. The paper describes theoretical background and examples of GNU Octave compatible MATLAB scripts that give relatively simple but complete explanations about how to use QR decomposition for the least squares problem solution. Only basic knowledge of linear algebra and calculus are required. Both Givens rotations and Householder reflections usage for the linear least squares problem were considered. It was shown that the algorithm based on Givens rotations is even easier to program than explicit formation of the normal equations with subsequent usage of Gaussian elimination.

Details

Language :
English
ISSN :
0020-739X and 1464-5211
Volume :
55
Issue :
6
Database :
ERIC
Journal :
International Journal of Mathematical Education in Science and Technology
Publication Type :
Academic Journal
Accession number :
EJ1423692
Document Type :
Journal Articles<br />Reports - Evaluative
Full Text :
https://doi.org/10.1080/0020739X.2022.2139204