# Probability of full rank of a random matrix.

Suppose, $G$ is a $k \times n$ binary matrix with $\operatorname{rank}(G) = k$. The first $k$ columns of $G$ are linearly independent and the next $n-k$ columns are linear combinations of the first $k$ columns.

$G$ matrix can be a generator matrix of a linear code where the fist $k$ columns are the $k \times k$ identity matrix and the next $n-k$ column contain the parity bits and these columns are linear combinations if the first $k$ columns.

I am choosing $u$ number of columns randomly from $G$ to form the matrix $G_u$, where $u<=k$.

I want to find the probability that $\operatorname{rank}(G_u) = u$ for any random sub-matrix.

Really appreciate any suggestions to solve this problem.

-
I don't think there's enough information to give an answer. For example, if the last $n-k$ columns are all zeros then the probability is very small; for a different matrix of the same size, the probability could be 1. – Gerry Myerson Apr 3 '12 at 6:02
I am actually talking about a generator matrix of a linear channel code in which the first k columns are the identity matrix and the next n-k columns contain the parity bits. G = [ I | P ]. I have updated my question as well. Thanks for your comment. – anne Apr 3 '12 at 6:08
I don't know what restrictions there are on $P$, but I suspect it's still the case that even if you fix $k,n,u$ the answer will depend on $P$. Take the case where $n-k=1$; the answer will (for some values of $u$) depend on how many ones there are in $P$. – Gerry Myerson Apr 3 '12 at 6:23
Let's say P does not contain any all zero column vectors. Each column of P will be a linear combination of any of the k columns. I do not understand how the answer will depend on the number of ones in P. Thanks again... – anne Apr 3 '12 at 6:29

As an example showing, why the answer depends on $P$, consider the matrices ($n=4$, $k=u=2$) $$G_1=\pmatrix{1&0&1&1\cr0&1&0&0\cr},\quad G_2=\pmatrix{1&0&1&0\cr0&1&0&1},\quad G_3=\pmatrix{1&0&1&1\cr0&1&0&1}.$$ Two columns of $G_1$ will be linearly independent, iff the second column is among them. There the probability of a full rank submatrix is $3/6=1/2$. OTOH two columns of $G_2$ will be linearly independent unless you happened to pick 1st and 3rd or 2nd and 4th, so the probability of full rank is $4/6=2/3$. As the last case, two columns of $G_3$ will be linearly independent iff they are distinct, so the only pair violating that condition is 1st and 3rd. Therefore the probability of full rank has gone up to $5/6$.
It is easy to prove that with this set of parameters: $N=4, k=u=2$ it is impossible that the probability of a full rank submatrix would be equal to $1.$ Probability of full rank can be $1$ only, if the minimum Hamming distance of the dual code is $>u$ (and this is not possible for many choices of $n,k,u$). The way to see this is to view $G$ as a parity check matrix. If some $u$ columns are linearly dependent, then some subset of those columns sums to zero. Putting 1s in the positions of that subset we get a non-zero word of the dual code that has weight $\le u$. If the minimum Hamming distance of the dual code is $>u$, such sets do not exist, and the probability of full rank is equal to $1$.
@anne, I doubt it very much. The dual code also has parameters $n=100,k=50$. I don't remember the bounds on the minimum Hamming distance of such codes, but I very much doubt that it could be as high as $25$. And that would likely require a very specific choice of $G$! But surely you haven't done an exhaustive search of the set of $u$ columns either! The low weight words of the dual code may be relatively rare, and if your simulation has just been lucky. It is very hard to prove by simulation that the probability is exactly $1$ :-) – Jyrki Lahtonen Apr 3 '12 at 7:05
Let's take your $n=100$, $k=50$ case. Your first 50 columns form an identity matrix. Suppose the 51st column just has two ones in it. Say $u=20$. If your 20 columns include the 51st and include the two columns of the first 50 that have their ones in the same places as the 51st column, you have linear dependence, and rank less than 20. The probability of 20 chosen columns including those three particular ones is low, but it isn't zero. – Gerry Myerson Apr 3 '12 at 7:51