Matrix Computation Chapter 5 ORTHOGONALIZATION AND LEAST SQUARES -Mohammed CONTENTS 1. 2. 3. 4. 5. 6. Householder and Givens Transformations The QR Factorization The Full-Rank Least Squares Problem Other Orthogonal Factorizations The Rank Deficit Least Square Problem Square and Undetermined System 1. HOUSEHOLDER & GIVENS TRANSFORMATIONS HOUSEHOLD REFLECTIONS Let v be nonzero. An m-by-m matrix P of the form π = πΌ β π½π£π£ π , π½= 2 π£ππ£ is a Household reflection. The vector v is the Household vector. If a vector x is multiplied by P, then it is reflected in the hyperplane π£ π β’ Household matrices are symmetric and orthogonal. β’ Household reflections are similar to Gauss transformations. β’ They are rank-1 modifications of the identity and can be used to zero selected components of a vector. In particular suppose we have 0β x Π RΠΌ and want to be a multiple of π1 = πΌπ : , 1 . From this we conclude that π£ β π πππ π₯, π1 . Setting Computing The Householder Vector β’ Setting π£1 = π₯1 β π₯ 2 leads to the nice property that ππ₯ is a positive multiple of π 1 . β’ The recipe is dangerous if x is close to a positive multiple of π 1 because severe cancellations would occur. β’ However the following formula does not suffer from this defect in the x1 >0 case. β’ In practice, it is handy to normalize the Household vector so that π£1 = 1. β’ This permits the storage of v(2:m) where the zeroes have been introduced in x. β’ We refer to v(2:m) as the essential part of the household vector. β’ β’ Here, length(.) returns the dimension of a vector. This algorithm involves about 3, flops. The computed Household matrix that is orthogonal to machine precision. (discussed further) Round Off Properties β’ The roundoff properties associated with Household matrices are very favorable. β’ House produces a Household vector αΉ½ that is very close to the exact v. The Factored Form Representation β’ Many Householder based factorization algorithms are available that compute products of Household matrices. β’ It is not necessary to compute Q explicitly. For example, if C Π πΉπ×π and we wish to compute QTC, then we merely execute the loop for j = 1:n C = ππ πΆ end β’ The storage of the Household vector π£ 1 , β¦ , π£ π and the corresponding π½π amounts to a factored form representation of Q. THE WY Representation Givens Rotations β’ Householder reflections are exceedingly useful for introducing zeroes on a grand scale e.g. annihilation of all but the first component of a vector. β’ However, in calculations where it is necessary to zero elements more selectively, Givens rotations are the transformation of choice. β’ These are rank-2 corrections to the identity of the form where c=cos(ΞΈ) , s=sin(ΞΈ) for some ΞΈ. Givens rotations are Orthogonal. Applying Givens Rotations β’ Suppose π΄ π π π×π , π = cos π πππ π = sin π Products of Givens Rotations β’ Suppose π = πΊ1 , . . . , πΊπ‘ is a product of Givens Rotations. β’ As with household reflections, it is more economical to keep Q in the factored form rather than to compute the product of rotations explicitly. β’ The idea used by Stewart is to associate a single floating point number Ο with each rotation. Specifically if Complex Case Complex Case (cont) QR Factorization β’ A rectangular matrix π΄π×π can be factored into a product of an orthogonal matrix ππ×π and an upper triangular matrix π π×π A = QR β’ This factorization is referred to as QR factorization. β’ It plays a vital role in solving linear least square problems. β’ QR factorization is related to well known GramSchimdt process. Existence & Properties of QR Householder QR β’ Suppose m=6, n=5, and assume that Householder matrices π»1 and π»2 have been computed so that β’ Concentrating on the highlighted entries, we determine a Household matrix Δ€3 (4×4) such that Householder QR Givens QR method β’ Givens rotations can also be used to compute the QR factorization and the 4 by 3 case illustrates the general idea: β’ The two vectors that define Givens rotations are highlighted. β’ If πΊπ denotes the ππ‘β Givens rotation in the reduction then ππ π΄ = π is upper triangular, where π = πΊ1 β¦ πΊπ‘ and t is the total number of rotations. Hessenberg QR via Givens β’ Example depicting how Givens rotations can be employed to compute the QR factorization of an upper Hessenberg matrix. β’ Suppose n=6 and after two steps we have computed: Classical Gram Schimdt algorithm β’ If rank(A) = n, then equation can be solved for qk β’ This leads to the classical Gram-Schimdt Algorithm for computing A=Q1R1 Modified Gram-Schimdt Algorithm β’ Unfortunately the CGS method has very poor numerical properties wherein there is a severe loss of orthogonality among the computed qi. β’ Modified GS leads to a more reliable procedure. β’ In the kth step, the kth column of Q (qk) and the kth row of R (rkα΅) are determined. β’ A matrix A(k) is defined as:
© Copyright 2026 Paperzz