# Rank of centered data

Consider a matrix . In general, this matrix has rank Now, suppose we wish to column-center the data. We can do this algebraically by using what is known as the centering matrix, where is the matrix where for all . Multiplying with results to the centering of all the columns. The vector of ones is the only independent element in its nullspace and so . … Continue reading Rank of centered data

# Searching for the minimum? Gradient descent to the rescue!

In one of the previous posts, we talked about the Kaczmarz method for solving linear systems. This time, we are gonna provide three more ways to solve iteratively, namely via the methods of Gradient descent, Conjugate gradient and Newton’s method. We will also take a look at the codes, implementation was done for all of them in matlab. We will first look at how the methods are applied … Continue reading Searching for the minimum? Gradient descent to the rescue!

# An idea for calculating powers of matrices

I wanted to share with you a mathematical trick. Nothing too difficult, just not the first thing that someone would think. One of the important things in mathematics is to try to use the same tools for different jobs. Be creative! We will use the Caley – Hamilton theorem to calculate arbitrary powers of a matrix A. But first, let’s remember what the Caley – … Continue reading An idea for calculating powers of matrices