ML2R Theory Nuggets Centering Data- and Kernel Matrices

Total Page:16

File Type:pdf, Size:1020Kb

ML2R Theory Nuggets Centering Data- and Kernel Matrices ML2R Theory Nuggets Centering Data- and Kernel Matrices Christian Bauckhage∗ Pascal Welke† Machine Learning Rhine-Ruhr Machine Learning Rhine-Ruhr Fraunhofer IAIS University of Bonn St. Augustin, Germany Bonn, Germany ABSTRACT What does any of this have to do with data matrices? Well, < We discuss the notion of centered data matrices and show how we may gather the = given data points x8 2 R in an < × = data to compute them using centering matrices. As centering matrices matrix have many applications in data science and machine learning, we ^ = x1, x2,..., x= (6) have a look at one such application and discuss how they allow for and apply linear algebra to facilitate procedures such as the one centering kernel matrices. we just went through. If we did this, we should hope that there is a linear algebraic mechanism to produce a centered data matrix 1 CENTERING DATA MATRICES ` = z1, z2,..., z= (7) In data mining, machine learning, or pattern recognition, we often < Indeed, linear algebra provides such a mechanism and we next have to analyze or process a sample of = data points x8 2 R . This, in turn, frequently requires us to consider zero mean or centered discuss how it works. = data. In what follows, we let 1 2 R denote the =-dimensional vector A simple canonical example of such a setting is the computation of all ones. of the < × < (biased) sample covariance matrix If = data points have been gathered in a data matrix ^, it is an easy exercise to verify that their sample mean in (2) can also be = 1 ∑︁ | computed like this I = x8 − x¯ x8 − x¯ (1) = 1 8=1 x¯ = = ^1 (8) where the vector When working with the vector of all ones, we can moreover | = consider the outer product x¯ 1 to obtain an < × = matrix 1 ∑︁ x¯ = x (2) | = 8 x¯ 1 = x¯, x¯,..., x¯ (9) 8=1 all of whose columns are copies of x¯. denotes the sample mean. This matrix now allows us to perform data centering, i.e. to While this is a specific example, we note its following general subtract the sample mean from each of the given data points, by aspect: The operation of subtracting the sample mean from each of means of just a single matrix subtraction, namely the given data points ` = ^ − x¯ 1| (10) z = x − x¯ (3) 8 8 Given what we saw in (4), it is clear that the column mean of causes the resulting transformed data z8 to have the following mean the resulting matrix ` will be 0. In other words, ` is a centered = = version of our original data matrix ^. Regarding our introductory 1 ∑︁ 1 ∑︁ z¯ = z = x − x¯ example of the sample covariance matrix, this means that we can = 8 = 8 8=1 8=1 now compute is as = = 1 1 ∑︁ 1 ∑︁ 1 I = `` | (11) = x − x¯ = x¯ − · = · x¯ = 0 (4) = = 8 = = 8=1 8=1 But let us keep going and develop even deeper insights into data centering! If we plug (8) into (10), we obtain the following In other words, the transformation in (3) causes the transformed crucial result data to be “of zero mean” or to be “centered at 0”. 1 | 1 | With respect to the sample covariance matrix in our introductory ` = ^ − = ^11 = ^ O − = 11 ≡ ^ P (12) example, this means that we could also compute it as Here, O denotes the = × = identity matrix and the matrix = 1 ∑︁ P = O − 1 11| (13) I = z z| (5) = = 8 8 8=1 is called a centering matrix because it centers the columns of matrix ^ at 0. ∗ 0000-0001-6615-2128 Centering matrices have a couple of important or convenient † 0000-0002-2123-3781 characteristics. For instance, it is easy to show that C. Bauckhage and P. Welke (1) P is square, i.e. P 2 R=×= 2 CENTERING KERNEL MATRICES | (2) P is symmetric, i.e. P = P Many algorithms for data mining, machine learning, and pattern : (3) P is idempotent, i.e. P = P for all 1 ≤ : 2 N recognition work with Gram matrices (4) P is positive semi-definite, i.e. ~| P ~ ⪰ 0 for all ~ 2 R= (5) P is singular, i.e. not invertible, i.e. P −1 does not exists M = ^ |^ (27) (6) because of (4), all eigenvalues of P are non-negative » ¼ | (7) because of (3), all eigenvalues of P are either 0 or 1 which are matrices whose elements are given by M 8 9 = x8 x 9 (8) because of (2) and (3), P is an orthogonal projection matrix and thus only depend on inner products between given data points. (9) the trace of P amounts to This allows for invoking the kernel trick where we replace inner 1 products by evaluations of a Mercer kernel tr P = = · 1 − = = = − 1 Regarding our introductory example of computing the sample x8, x 9 = >8 >9 (28) covariance matrix, we can make use of some of the above properties Here, > ≡ >¹x º where > : R< ! H is some generally unknown to obtain 8 8 transformation from the data space into a potentially infinite di- 1 | I = = `` (14) mensional feature space. The function h· j ·i : H × H ! R denotes the inner product in that feature space. = 1 ^ P ^ P | (15) = To stress the whole point of our following discussion, we remark = 1 ^ P P |^ | (16) that it sounds formidable to work with unknown transformations = into potentially infinite dimensional spaces. Recall, however, that 1 | we only do this implicitly when using explicitly given kernel func- = = ^ P P ^ (17) tions. In other words, while it may be impossible to practically 1 | = = ^ P ^ (18) compute the inner product on the right of equation (28), it is usu- Since this result may look curious at first sight, we will briefly ally possible to evaluate the kernel function on its left hand side. verify it from a different point of view. With respect to Gram matrices, this is to say that invoking the If we expand the outer products in the summation in (1), we kernel trick is to replace the = × = matrix M by an = × = kernel obtain the following fairly well known decomposition of the sample matrix Q where covariance matrix = = = Q 8 9 = x8, x 9 (29) 1 ∑︁ 2 ∑︁ 1 ∑︁ I = x x| − x x¯| ¸ x¯x¯| (19) = 8 8 = 8 = 8=1 8=1 8=1 Conceptually, or from the point of view of “pen-and-paper math”, this is the same as introducing a feature space data matrix 1 | | | = ^^ − 2 x¯x¯ ¸ x¯x¯ (20) h i = 횽 = >1, >2,..., >= (30) 1 = ^^ | − x¯x¯| (21) = and then replacing M by an = × = matrix 횽|횽 where If we next plug (8) into this expression, we realize that the sample | = > > (31) covariance matrix can also be written as 횽 횽 8 9 8 9 = 1 | − 1 | I = ^^ =2 ^1 ^1 (22) Now, if we kernelize an algorithm that requires us to work with < centered data z8 = x8 − x¯ 2 R , we must make sure that their = 1 ^^ | − 1 ^ 11|^ | (23) = =2 feature space representations 78 = >8 − >¯ 2 H are centered, too. Again, this sounds formidable, because we just emphasized that = 1 ^ ^ | − 1 11|^ | (24) = = it may be practically impossible to compute the underlying trans- 1 1 | | formations. How are we then supposed to compute the feature = = ^ O − = 11 ^ (25) space mean required for feature space centering? But let us do 1 | = = ^ P ^ (26) some “pen-and-paper math” to see what we are actually dealing which does indeed corroborate the result in (18). with. On a conceptual or symbolic level, we can easily work with the feature space data matrix 횽 in (30). Our insights form the previous section then tell us that 1 | 횿 = 횽 P = 횽 − = 횽11 (32) will be a centered matrix. However, if we cannot even write com- puter code to compute 횽, we certainly cannot write computer code to center it. Yet, what we are actually interested in when kernelizing an algorithm is to compute the Gramian 횿|횿 and we will see next that this is practically feasible. Centering Data- and Kernel Matrices In fact, this is easy to see: Using the definition in (32) together Using the definition of the feature space sample meanin (44) with general properties of the centering matrix P , we have and the bilinearity of the inner product, this can also be written as | | 횿 횿 = 횽 P 횽 P (33) >8 − >¯ >9 − >¯ = >8 >9 | | = = P 횽 횽 P (34) 1 ∑︁ − = >8 >9 = P 횽|횽 P (35) 9=1 = At this point, we note that it is actually possible to compute the 1 ∑︁ − >8 >9 entries of the feature space Gramian 횽|횽, because = 8=1 | = = = = = 횽 횽 8 9 >8 >9 x8, x 9 Q 8 9 (36) ∑︁ ∑︁ ¸ 1 =2 >8 >9 (47) In other words, we may not be able to practically compute matrix 횽 8=1 9=1 but we are able to compute 횽|횽 because its entries can be obtained by evaluating a computable kernel function. All in all, we therefore Given this expansion, we can now resort to (28) and write all have the crucial result that the inner products on the right hand side of (47) in terms of kernel functions 횿|횿 = PQP (37) > − >¯ > − >¯ = x , x At this point, we have successfully shown that it is feasible to 8 9 8 9 = practically compute (and therefore work with) matrix 횿|횿. But ∑︁ − 1 x , x let us once again keep going and develop deeper insights into = 8 9 9=1 what it means to center a kernel matrix.
Recommended publications
  • Unsupervised and Supervised Principal Component Analysis: Tutorial
    Unsupervised and Supervised Principal Component Analysis: Tutorial Benyamin Ghojogh [email protected] Department of Electrical and Computer Engineering, Machine Learning Laboratory, University of Waterloo, Waterloo, ON, Canada Mark Crowley [email protected] Department of Electrical and Computer Engineering, Machine Learning Laboratory, University of Waterloo, Waterloo, ON, Canada Abstract space and manifold learning (Friedman et al., 2009). This This is a detailed tutorial paper which explains method, which is also used for feature extraction (Ghojogh the Principal Component Analysis (PCA), Su- et al., 2019b), was first proposed by (Pearson, 1901). In or- pervised PCA (SPCA), kernel PCA, and kernel der to learn a nonlinear sub-manifold, kernel PCA was pro- SPCA. We start with projection, PCA with eigen- posed, first by (Scholkopf¨ et al., 1997; 1998), which maps decomposition, PCA with one and multiple pro- the data to high dimensional feature space hoping to fall on jection directions, properties of the projection a linear manifold in that space. matrix, reconstruction error minimization, and The PCA and kernel PCA are unsupervised methods for we connect to auto-encoder. Then, PCA with sin- subspace learning. To use the class labels in PCA, super- gular value decomposition, dual PCA, and ker- vised PCA was proposed (Bair et al., 2006) which scores nel PCA are covered. SPCA using both scor- the features of the X and reduces the features before ap- ing and Hilbert-Schmidt independence criterion plying PCA. This type of SPCA were mostly used in bioin- are explained. Kernel SPCA using both direct formatics (Ma & Dai, 2011). and dual approaches are then introduced.
    [Show full text]
  • Matrix Analysis and Applications
    MATRIX ANALYSIS APPLICATIONS XIAN-DA ZHANG Tsinghua University, Beijing H Cambridge UNIVERSITY PRESS Contents Preface page xvii Notation xxi Abbreviations xxxi Algorithms xxxiv PART I MATRIX ALGEBRA 1 1 Introduction to Matrix Algebra 3 1.1 Basic Concepts of Vectors and Matrices 3 1.1.1 Vectors and Matrices 3 1.1.2 Basic Vector Calculus 6 1.1.3 Basic Matrix Calculus 8 1.1.4 Linear Independence of Vectors 11 1.1.5 Matrix Functions 11 1.2 Elementary Row Operations and Applications 13 1.2.1 Elementary Row Operations 13 1.2.2 Gauss Elimination Methods 16 1.3 Sets, Vector Subspaces and Linear Mapping 20 1.3.1 Sets 20 1.3.2 Fields and Vector Spaces 22 1.3.3 Linear Mapping 24 1.4 Inner Products and Vector Norms 27 1.4.1 Inner Products of Vectors 27 1.4.2 Norms of Vectors 28 1.4.3 Similarity Comparison Between Vectors 32 1.4.4 Banach Space, Euclidean Space, Hilbert Space 35 1.4.5 Inner Products and Norms of Matrices 36 1.5 Random Vectors 40 1.5.1 Statistical Interpretation of Random Vectors 41 1.5.2 Gaussian Random Vectors 44 viii 1.6 Performance Indexes of Matrices 47 1.6.1 Quadratic Forms 47 1.6.2 Determinants 49 1.6.3 Matrix Eigenvalues 52 1.6.4 Matrix Trace 54 1.6.5 Matrix Rank 56 1.7 Inverse Matrices and Pseudo-Inverse Matrices 59 1.7.1 Definition and Properties of Inverse Matrices 59 1.7.2 Matrix Inversion Lemma 60 1.7.3 Inversion of Hermitian Matrices 61 1.7.4 Left and Right Pseudo-Inverse Matrices 63 1.8 Moore-Penrose Inverse Matrices 65 1.8.1 Definition and Properties 65 1.8.2 Computation of Moore-Penrose Inverse Matrix 69 1.9 Direct Sum
    [Show full text]
  • Lecture 0. Useful Matrix Theory
    Lecture 0. Useful matrix theory Basic definitions A p × 1 vector a is a column vector of real (or complex) numbers a1; : : : ; ap, 0 1 a1 B . C a = @ . A ap By default, a vector is understood as a column vector. The collection of such column vectors is called the vector space of dimension p and is denoted by Rp (or Cp). An 1 × p row vector is obtained by the transpose of the column vector and is 0 a = (a1; : : : ; ap): A p × q matrix A is a rectangular array of real (or complex) numbers a11; a12; : : : ; apq written as 2 3 a11 ··· a1q 6 . 7 A = 4 . 5 = (aij)(p×q); ap1 ··· apq so that aij is the element in the ith row and jth column of A. The following definitions are basic: 1. A is a square matrix if p = q. 2. A = 0 is a zero matrix if aij = 0 for all i; j. 3. A = I = Ip is the identity matrix of order p if A is a square matrix of order p and aij = 0 for i 6= j and aij = 1 for i = j. 4. The transpose of a p × q matrix A, denoted by A0 or AT , is the q × p matrix by 0 0 0 0 interchanging the rows and columns of A, A = (aji). Note that (AB) = B A and (A0)0 = A. 5. A square matrix A is called symmetric if A = A0. 6. A square matrix A is called skew-symmetric if A = −A0. 7. A square matrix A is called diagonal if aij = 0 for all i 6= j and is denoted by diag(a11; : : : ; app).
    [Show full text]
  • Notes on Matrix Algebra
    Matrix Manipulation of Data: Matrix Algebra 1. Vectors ⎡ x1 ⎤ ⎢ ⎥ x 2 x Vector x = ⎢ ⎥ column vector x2 ⎢ .. ⎥ ⎢ ⎥ ⎣x n ⎦ x1 x+y Transpose x’=[x1 x2…xn] row vector, ⎡ x+ y ⎤ 1 1 y ⎢x+ y ⎥ Addition x+y= ⎢ 2 2 ⎥ ⎢ .. ⎥ x ⎢ ⎥ ⎣xn+ y n ⎦ 2x ⎡kx1 ⎤ ⎢ ⎥ kx x2 x Scalar multiplication kx = ⎢ 2 ⎥ , ⎢ .. ⎥ ⎢ ⎥ ⎣kx n ⎦ x 1 Definition: x and y point in the same direction if for some k≠0, y=kx. 2 Vectors have a direction and length. Euclidian Length x= ∑ x i Inner product x’y=Σx y i i y Note: we think of this as a row times a column x Suppose tx is a projection of y into x: 2 2 2 y’y=t x’x +(y-tx)’(y-tx)= t x’x +y’y-2tx’y+ t x’x ⇒ t=x’y/x’x. θ tx Note: cos θ≡ t||x||/||y||, so x’y =||x|| ||y|| cos(θ). The inner product is the product of lengths correcting for not pointing in the same direction. If two vectors x and y point in the precisely the same direction, then we say that there are dependent. More generally, they are dependent if there exists k1, k2≠0 such that k1x+k2y=0. That is, a linear combination of x and y with weights k=(k1,k2)’ equals the zero vector If x and y are not dependent, then they are independent: they point in different directions. Maximal independence is orthogonal (perpendicular): θ=90o ⇒ cos θ = 0 ⇒x’y=0. Orthonormal vectors are both orthogonal of unit length: x’y=0 and ||x||=1=||y||.
    [Show full text]
  • Iso-Charts: Stretch-Driven Mesh Parameterization Using Spectral Analysis
    Eurographics Symposium on Geometry Processing (2004) R. Scopigno, D. Zorin, (Editors) Iso-charts: Stretch-driven Mesh Parameterization using Spectral Analysis Kun Zhou 1 John Synder 2 Baining Guo 1 Heung-Yeung Shum 1 1 Microsoft Research Asia 2 Microsoft Research Abstract We describe a fully automatic method, called iso-charts, to create texture atlases on arbitrary meshes. It is the first to consider stretch not only when parameterizing charts, but also when forming charts. The output atlas bounds stretch by a user-specified constant, allowing the user to balance the number of charts against their stretch. Our approach combines two seemingly incompatible techniques: stretch-minimizing parameterization, based on the surface integral of the trace of the local metric tensor, and the “isomap” or MDS (multi-dimensional scaling) parameterization, based on an eigen-analysis of the matrix of squared geodesic distances between pairs of mesh vertices. We show that only a few iterations of nonlinear stretch optimization need be applied to the MDS param- eterization to obtain low-stretch atlases. The close relationship we discover between these two parameterizations also allows us to apply spectral clustering based on MDS to partition the mesh into charts having low stretch. We also novelly apply the graph cut algorithm in optimizing chart boundaries to further minimize stretch, follow sharp features, and avoid meandering. Overall, our algorithm creates texture atlases quickly, with fewer charts and lower stretch than previous methods, providing improvement in applications like geometric remeshing. We also describe an extension, signal-specialized atlas creation, to efficiently sample surface signals, and show for the first time that considering signal stretch in chart formation produces better texture maps.
    [Show full text]
  • Simple Matrices
    Appendix B Simple matrices Mathematicians also attempted to develop algebra of vectors but there was no natural definition of the product of two vectors that held in arbitrary dimensions. The first vector algebra that involved a noncommutative vector product (that is, v w need not equal w v) was proposed by Hermann Grassmann in his book× Ausdehnungslehre× (1844 ). Grassmann’s text also introduced the product of a column matrix and a row matrix, which resulted in what is now called a simple or a rank-one matrix. In the late 19th century the American mathematical physicist Willard Gibbs published his famous treatise on vector analysis. In that treatise Gibbs represented general matrices, which he called dyadics, as sums of simple matrices, which Gibbs called dyads. Later the physicist P. A. M. Dirac introduced the term “bra-ket” for what we now call the scalar product of a “bra” (row) vector times a “ket” (column) vector and the term “ket-bra” for the product of a ket times a bra, resulting in what we now call a simple matrix, as above. Our convention of identifying column matrices and vectors was introduced by physicists in the 20th century. Suddhendu Biswas [52, p.2] − B.1 Rank-1 matrix (dyad) Any matrix formed from the unsigned outer product of two vectors, T M N Ψ = uv R × (1783) ∈ where u RM and v RN , is rank-1 and called dyad. Conversely, any rank-1 matrix must have the∈ form Ψ . [233∈, prob.1.4.1] Product uvT is a negative dyad. For matrix products ABT, in general, we have − (ABT) (A) , (ABT) (BT) (1784) R ⊆ R N ⊇ N B.1 § with equality when B =A [374, §3.3, 3.6] or respectively when B is invertible and (A)= 0.
    [Show full text]
  • APPENDIX a Matrix Algebra
    Greene-2140242 book December 1, 2010 8:8 APPENDIXQ A MATRIX ALGEBRA A.1 TERMINOLOGY A matrix is a rectangular array of numbers, denoted ⎡ ⎤ a11 a12 ··· a1K ⎢ ··· ⎥ = = = ⎣a21 a22 a2K ⎦ . A [aik] [A]ik ··· (A-1) an1 an2 ··· anK The typical element is used to denote the matrix. A subscripted element of a matrix is always read as arow,column. An example is given in Table A.1. In these data, the rows are identified with years and the columns with particular variables. A vector is an ordered set of numbers arranged either in a row or a column. In view of the preceding, a row vector is also a matrix with one row, whereas a column vector is a matrix with one column. Thus, in Table A.1, the five variables observed for 1972 (including the date) constitute a row vector, whereas the time series of nine values for consumption is a column vector. A matrix can also be viewed as a set of column vectors or as a set of row vectors.1 The dimensions of a matrix are the numbers of rows and columns it contains. “A is an n × K matrix” (read “n by K”) will always mean that A has n rows and K columns. If n equals K, then A is a square matrix. Several particular types of square matrices occur frequently in econometrics. • A symmetric matrix is one in which aik = aki for all i and k. • A diagonal matrix is a square matrix whose only nonzero elements appear on the main diagonal, that is, moving from upper left to lower right.
    [Show full text]
  • Data Sample Matrices
    Data Sample Matrices Professor Dan A. Simovici UMB Professor Dan A. Simovici (UMB) Data Sample Matrices 1 / 29 1 The Sample Matrix 2 The Covariance Matrix Professor Dan A. Simovici (UMB) Data Sample Matrices 2 / 29 Matrices as organizers for data sets n Data set: a sequence E of m vectors of R , (u1,...,um). th The j components (u i )j of these vectors correspond to the values of a random variable Vj , where 1 ≤ j ≤ n. This data series will be represented as a sample matrix having m rows 0 0 u1,...,um and n columns v 1,...,v n. The number m is the size of the sample. Professor Dan A. Simovici (UMB) Data Sample Matrices 3 / 29 Rows, Experiments, Attributes 0 Each row vector ui corresponds to an experiment Ei in the series of experiments E = (E1,..., Em); the experiment Ei consists of measuring 0 the n components of ui = (xi1,..., xin): v 1 · · · v n 0 u1 x11 · · · x1n 0 u2 x21 · · · x2n . 0 um xm1 · · · xmn The column vector x1j x2j v j = . . xmj th represents the measurements of the j variable Vj of the experiment, for 1 ≤ j ≤ n, as shown below. These variables are usually referred to as attributes or features of the series E. Professor Dan A. Simovici (UMB) Data Sample Matrices 4 / 29 Definition The sample matrix of E is the matrix X ∈ Cm×n given by 0 u1 . X = . = (v 1 · · · v n). 0 um Professor Dan A. Simovici (UMB) Data Sample Matrices 5 / 29 Pairwise Distances Pairwise distances between the row vectors of X ∈ Rm×n can be computed with the MATLAB function pdist(X) .
    [Show full text]
  • Matrix Analysis and Applications Xian-Da Zhang Frontmatter More Information
    Cambridge University Press 978-1-108-41741-9 — Matrix Analysis and Applications Xian-Da Zhang Frontmatter More Information MATRIX ANALYSIS AND APPLICATIONS This balanced and comprehensive study presents the theory, methods and applications of matrix analysis in a new theoretical framework, allowing readers to understand second- order and higher-order matrix analysis in a completely new light. Alongside the core subjects in matrix analysis, such as singular value analysis, the solu- tion of matrix equations and eigenanalysis, the author introduces new applications and perspectives that are unique to this book. The very topical subjects of gradient analysis and optimization play a central role here. Also included are subspace analysis, projection analysis and tensor analysis, subjects which are often neglected in other books. Having provided a solid foundation to the subject, the author goes on to place particular emphasis on the many applications matrix analysis has in science and engineering, making this book suitable for scientists, engineers and graduate students alike. XIAN- DA ZHANG is Professor Emeritus in the Department of Automation, at Tsinghua University, Beijing. He was a Distinguished Professor at Xidian University, Xi’an, China – a post awarded by the Ministry of Education of China, and funded by the Ministry of Education of China and the Cheung Kong Scholars Programme – from 1999 to 2002. His areas of research include signal processing, pattern recognition, machine learning and related applied mathematics. He has published over 120 international journal and confer- ence papers, and 7 books in Chinese. He taught the graduate course “Matrix Analysis and Applications” at Tsinghua University from 2004 to 2011.
    [Show full text]
  • Linear Algebra Notes
    Stat 159/259: Linear Algebra Notes Jarrod Millman November 16, 2015 Abstract These notes assume you’ve taken a semester of undergraduate linear algebra. In particular, I assume you are familiar with the following: • solving systems of linear equations using Gaussian elimination • linear combinations of vectors to produce a space • the rank of a matrix • the Gram–Schmidt process for orthonormalising a set of vectors • eigenvectors and eigenvalues of a square matrix I will briefly review some of the above topics, but if you haven’t seen them before the presentation may be difficult to follow. If so, please review your introductory linear algebra textbook or use Wikipedia. Background Introductory linear algebra texts often start with an examination of simultaneous systems of linear equations. For example, consider the following system of linear equations 2x1 + x2 = 3 x1 − 3x2 = −2. For convenience, we abbreviate this system 2 1 x1 3 = 1 −3 x2 −2 | {z } | {z } | {z } A x b where A is the coefficient matrix, x is a column vector of unknowns, and b is a column vector of constants. 1 You should verify that 1 x = 1 solves the given system. More generally, a real-valued matrix A is an ordered, m × n rectangular array of real numbers, which when multiplied on the right by an n-dimensional column vector x produces an m-dimensional column vector b. Having introduced the Ax = b notation, we can view the m × n matrix A as a linear function from Rn to Rm. A linear function is one that respects proportions and for which the effect of a sum is the sum of individual effects.
    [Show full text]
  • BU-1355-M.Pdf
    MATRIX ALGEBRA S. R. Searle Biometrics Unit, Cornell University, Ithaca, N.Y. 14853 BU-1355-M July 1996 Abstract This is a 6,000-10,000 word article invited for an upcoming Encyclopedia of Biostatistics. It attempts to describe and summarize some of the main features of matrix algebra as are customarily found in the statistical literature. Key Words Basic matrix operations, special matrices, determinants, inverses, rank, canonical forms, generalized inverses, linear equations, eigenroots, eigenvectors, differential calculus, vee, vech, real and complex matrices, statistical uses. 1 MATRIX ALGEBRA The algebra we learn when teenagers has letters of the alphabet each representing a number. For example: a father and son are x andy years old, respectively, and their total age is 70. In ten year's time the father will be twice as old as the son. Hence x + y = 70 and x + 10 = 2(y + 10) and so x = 50 and y = 20. In contrast, matrix algebra is the algebra of letters each representing many numbers, with those numbers always arrayed in the form of a rectangle (or square). An example is 9 0 7 X- [ - u2 + v -3 6.1 GENERAL DESCRIPTION A matrix is a rectangular array of numbers, which can be any mixture of numbers that are complex, real, zero, positive, negative, decimal, fractions, or algebraic expressions. When none of them is complex (i.e., involving R), the matrix is said to be real. And because statistics deals with data, which are real numbers (especially biological data), almost all of this article applies to real matrices. Each number in a matrix is called an element: in being some representation of a single number it is called a scalar, to contrast with matrix which represents many numbers.
    [Show full text]
  • A Least Squares Formulation for a Class of Generalized Eigenvalue Problems in Machine Learning
    A Least Squares Formulation for a Class of Generalized Eigenvalue Problems in Machine Learning Liang Sun [email protected] Shuiwang Ji [email protected] Jieping Ye [email protected] Department of Computer Science and Engineering, Arizona State University, Tempe, AZ 85287, USA Abstract nant Analysis (LDA), and Hypergraph Spectral Learn- ing (HSL) (Hotelling, 1936; Rosipal & Kr¨amer, 2006; Many machine learning algorithms can be Sun et al., 2008a; Tao et al., 2009; Ye, 2007). Al- formulated as a generalized eigenvalue prob- though well-established algorithms in numerical linear lem. One major limitation of such formula- algebra have been developed to solve generalized eigen- tion is that the generalized eigenvalue prob- value problems, they are in general computationally lem is computationally expensive to solve expensive and hence may not scale to large-scale ma- especially for large-scale problems. In this chine learning problems. In addition, it is challenging paper, we show that under a mild condi- to directly incorporate the sparsity constraint into the tion, a class of generalized eigenvalue prob- mathematical formulation of these techniques. Spar- lems in machine learning can be formulated sity often leads to easy interpretation and a good gen- as a least squares problem. This class of eralization ability. It has been used successfully in lin- problems include classical techniques such as ear regression (Tibshirani, 1996), and Principal Com- Canonical Correlation Analysis (CCA), Par- ponent Analysis (PCA) (d’Aspremont et al., 2004). tial Least Squares (PLS), and Linear Dis- criminant Analysis (LDA), as well as Hy- Multivariate Linear Regression (MLR) that minimizes pergraph Spectral Learning (HSL).
    [Show full text]