How to calculate the degrees of freedom of an $r$-ranked matrix with the size being $ntimes n$?
Clash Royale CLAN TAG#URR8PPP
up vote
9
down vote
favorite
Treat matrices as vectors lying in $mathbbR^n^2$. It can be imagined matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2âÂÂ1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Typically, the number of independent constraints is equal to the difference between those two dimensions.
Alternatively, we call the dimension of that lower-dimensional manifold as "degrees of freedom".
Now how do we calculate the degrees of freedom of an $r$-ranked matrix with size $ntimes n$?
The answer says the degrees of freedom is $n^2-(n-r)^2=(2n-r)r$. I try to interpret it as follows:
First, by elementary matrices, every matrix $M$ with the rank of $r$ can be transformed into
$$Msimbeginpmatrix
I_r&0\
0&0
endpmatrix_ntimes n$$
Now the constraints come from the block at bottom right, where the entries are suppressed to be zero. So there are $(n-r)^2$ constraints, which lead to the answer (why the number of constraints do not agree with the number of zeroes is because they are not all independent, intuitively).
The explanation is not formal at all. Can anyone provide a refined version? Thank you~
EDIT: Provide further explanation of "degrees of freedom"
matrices
add a comment |Â
up vote
9
down vote
favorite
Treat matrices as vectors lying in $mathbbR^n^2$. It can be imagined matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2âÂÂ1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Typically, the number of independent constraints is equal to the difference between those two dimensions.
Alternatively, we call the dimension of that lower-dimensional manifold as "degrees of freedom".
Now how do we calculate the degrees of freedom of an $r$-ranked matrix with size $ntimes n$?
The answer says the degrees of freedom is $n^2-(n-r)^2=(2n-r)r$. I try to interpret it as follows:
First, by elementary matrices, every matrix $M$ with the rank of $r$ can be transformed into
$$Msimbeginpmatrix
I_r&0\
0&0
endpmatrix_ntimes n$$
Now the constraints come from the block at bottom right, where the entries are suppressed to be zero. So there are $(n-r)^2$ constraints, which lead to the answer (why the number of constraints do not agree with the number of zeroes is because they are not all independent, intuitively).
The explanation is not formal at all. Can anyone provide a refined version? Thank you~
EDIT: Provide further explanation of "degrees of freedom"
matrices
1
Please make the body of the message self-contained; the title is like the writing on the spine of a book: you don't ask readers to read the spine so that the first page is understandable.
â Arturo Magidin
Jun 13 '11 at 18:41
I don't understand your question, or the answer, or your explanation. What is a "degree of freedom" of a matrix? I know what "degree of freedom" means for the homogeneous linear system represented by the matrix, but in that case the answer would be $n-r$. So I don't know what you mean.
â Arturo Magidin
Jun 13 '11 at 18:42
2
@Arturo Magidin, sorry for the ambiguity. Here I treat matrices as vectors lying in $mathbbR^n^2$. And matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2-1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Alternatively, we can call the dimension of that lower-dimensional manifold as "Degree of freedom".
â ziyuang
Jun 13 '11 at 19:14
add a comment |Â
up vote
9
down vote
favorite
up vote
9
down vote
favorite
Treat matrices as vectors lying in $mathbbR^n^2$. It can be imagined matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2âÂÂ1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Typically, the number of independent constraints is equal to the difference between those two dimensions.
Alternatively, we call the dimension of that lower-dimensional manifold as "degrees of freedom".
Now how do we calculate the degrees of freedom of an $r$-ranked matrix with size $ntimes n$?
The answer says the degrees of freedom is $n^2-(n-r)^2=(2n-r)r$. I try to interpret it as follows:
First, by elementary matrices, every matrix $M$ with the rank of $r$ can be transformed into
$$Msimbeginpmatrix
I_r&0\
0&0
endpmatrix_ntimes n$$
Now the constraints come from the block at bottom right, where the entries are suppressed to be zero. So there are $(n-r)^2$ constraints, which lead to the answer (why the number of constraints do not agree with the number of zeroes is because they are not all independent, intuitively).
The explanation is not formal at all. Can anyone provide a refined version? Thank you~
EDIT: Provide further explanation of "degrees of freedom"
matrices
Treat matrices as vectors lying in $mathbbR^n^2$. It can be imagined matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2âÂÂ1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Typically, the number of independent constraints is equal to the difference between those two dimensions.
Alternatively, we call the dimension of that lower-dimensional manifold as "degrees of freedom".
Now how do we calculate the degrees of freedom of an $r$-ranked matrix with size $ntimes n$?
The answer says the degrees of freedom is $n^2-(n-r)^2=(2n-r)r$. I try to interpret it as follows:
First, by elementary matrices, every matrix $M$ with the rank of $r$ can be transformed into
$$Msimbeginpmatrix
I_r&0\
0&0
endpmatrix_ntimes n$$
Now the constraints come from the block at bottom right, where the entries are suppressed to be zero. So there are $(n-r)^2$ constraints, which lead to the answer (why the number of constraints do not agree with the number of zeroes is because they are not all independent, intuitively).
The explanation is not formal at all. Can anyone provide a refined version? Thank you~
EDIT: Provide further explanation of "degrees of freedom"
matrices
edited Jun 13 '11 at 19:23
asked Jun 13 '11 at 18:32
ziyuang
1,2901826
1,2901826
1
Please make the body of the message self-contained; the title is like the writing on the spine of a book: you don't ask readers to read the spine so that the first page is understandable.
â Arturo Magidin
Jun 13 '11 at 18:41
I don't understand your question, or the answer, or your explanation. What is a "degree of freedom" of a matrix? I know what "degree of freedom" means for the homogeneous linear system represented by the matrix, but in that case the answer would be $n-r$. So I don't know what you mean.
â Arturo Magidin
Jun 13 '11 at 18:42
2
@Arturo Magidin, sorry for the ambiguity. Here I treat matrices as vectors lying in $mathbbR^n^2$. And matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2-1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Alternatively, we can call the dimension of that lower-dimensional manifold as "Degree of freedom".
â ziyuang
Jun 13 '11 at 19:14
add a comment |Â
1
Please make the body of the message self-contained; the title is like the writing on the spine of a book: you don't ask readers to read the spine so that the first page is understandable.
â Arturo Magidin
Jun 13 '11 at 18:41
I don't understand your question, or the answer, or your explanation. What is a "degree of freedom" of a matrix? I know what "degree of freedom" means for the homogeneous linear system represented by the matrix, but in that case the answer would be $n-r$. So I don't know what you mean.
â Arturo Magidin
Jun 13 '11 at 18:42
2
@Arturo Magidin, sorry for the ambiguity. Here I treat matrices as vectors lying in $mathbbR^n^2$. And matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2-1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Alternatively, we can call the dimension of that lower-dimensional manifold as "Degree of freedom".
â ziyuang
Jun 13 '11 at 19:14
1
1
Please make the body of the message self-contained; the title is like the writing on the spine of a book: you don't ask readers to read the spine so that the first page is understandable.
â Arturo Magidin
Jun 13 '11 at 18:41
Please make the body of the message self-contained; the title is like the writing on the spine of a book: you don't ask readers to read the spine so that the first page is understandable.
â Arturo Magidin
Jun 13 '11 at 18:41
I don't understand your question, or the answer, or your explanation. What is a "degree of freedom" of a matrix? I know what "degree of freedom" means for the homogeneous linear system represented by the matrix, but in that case the answer would be $n-r$. So I don't know what you mean.
â Arturo Magidin
Jun 13 '11 at 18:42
I don't understand your question, or the answer, or your explanation. What is a "degree of freedom" of a matrix? I know what "degree of freedom" means for the homogeneous linear system represented by the matrix, but in that case the answer would be $n-r$. So I don't know what you mean.
â Arturo Magidin
Jun 13 '11 at 18:42
2
2
@Arturo Magidin, sorry for the ambiguity. Here I treat matrices as vectors lying in $mathbbR^n^2$. And matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2-1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Alternatively, we can call the dimension of that lower-dimensional manifold as "Degree of freedom".
â ziyuang
Jun 13 '11 at 19:14
@Arturo Magidin, sorry for the ambiguity. Here I treat matrices as vectors lying in $mathbbR^n^2$. And matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2-1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Alternatively, we can call the dimension of that lower-dimensional manifold as "Degree of freedom".
â ziyuang
Jun 13 '11 at 19:14
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
11
down vote
accepted
Generically, the following procedure can be used to construct an $ntimes n$ matrix with rank $r$:
Choose the first $r$ columns of the matrix, with $n$ degrees of freedom for each column. Generically, the results will be linearly independent.
We can now choose the remaining columns to be linear combinations of the first $r$ columns. This gives $r$ degrees of freedom for each column, namely the $r$ coefficients of the linear combinations.
Thus, the dimension of the space of rank-$r$ matrices is
$$
rn + (n-r)rtext,
$$
which is the same as $n^2 - (n-r)^2$.
1
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
1
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
11
down vote
accepted
Generically, the following procedure can be used to construct an $ntimes n$ matrix with rank $r$:
Choose the first $r$ columns of the matrix, with $n$ degrees of freedom for each column. Generically, the results will be linearly independent.
We can now choose the remaining columns to be linear combinations of the first $r$ columns. This gives $r$ degrees of freedom for each column, namely the $r$ coefficients of the linear combinations.
Thus, the dimension of the space of rank-$r$ matrices is
$$
rn + (n-r)rtext,
$$
which is the same as $n^2 - (n-r)^2$.
1
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
1
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
add a comment |Â
up vote
11
down vote
accepted
Generically, the following procedure can be used to construct an $ntimes n$ matrix with rank $r$:
Choose the first $r$ columns of the matrix, with $n$ degrees of freedom for each column. Generically, the results will be linearly independent.
We can now choose the remaining columns to be linear combinations of the first $r$ columns. This gives $r$ degrees of freedom for each column, namely the $r$ coefficients of the linear combinations.
Thus, the dimension of the space of rank-$r$ matrices is
$$
rn + (n-r)rtext,
$$
which is the same as $n^2 - (n-r)^2$.
1
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
1
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
add a comment |Â
up vote
11
down vote
accepted
up vote
11
down vote
accepted
Generically, the following procedure can be used to construct an $ntimes n$ matrix with rank $r$:
Choose the first $r$ columns of the matrix, with $n$ degrees of freedom for each column. Generically, the results will be linearly independent.
We can now choose the remaining columns to be linear combinations of the first $r$ columns. This gives $r$ degrees of freedom for each column, namely the $r$ coefficients of the linear combinations.
Thus, the dimension of the space of rank-$r$ matrices is
$$
rn + (n-r)rtext,
$$
which is the same as $n^2 - (n-r)^2$.
Generically, the following procedure can be used to construct an $ntimes n$ matrix with rank $r$:
Choose the first $r$ columns of the matrix, with $n$ degrees of freedom for each column. Generically, the results will be linearly independent.
We can now choose the remaining columns to be linear combinations of the first $r$ columns. This gives $r$ degrees of freedom for each column, namely the $r$ coefficients of the linear combinations.
Thus, the dimension of the space of rank-$r$ matrices is
$$
rn + (n-r)rtext,
$$
which is the same as $n^2 - (n-r)^2$.
answered Jun 13 '11 at 19:35
Jim Belk
36.7k283147
36.7k283147
1
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
1
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
add a comment |Â
1
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
1
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
1
1
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
Of course, it doesn't have to be the first $r$ columns that are linearly independent, but the union of a finite number of sets, each with $d$ degrees of freedom, still has $d$ degrees of freedom.
â Robert Israel
Jun 13 '11 at 19:42
1
1
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
@Robert: Right, the first $r$ columns aren't necessarily linearly independent, but this is generically true, meaning true on a dense open subset of the rank-$r$ matrices. When computing the dimension of a space, it always works to count the degrees of freedom for a generic point.
â Jim Belk
Jun 13 '11 at 20:01
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f45159%2fhow-to-calculate-the-degrees-of-freedom-of-an-r-ranked-matrix-with-the-size-be%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Please make the body of the message self-contained; the title is like the writing on the spine of a book: you don't ask readers to read the spine so that the first page is understandable.
â Arturo Magidin
Jun 13 '11 at 18:41
I don't understand your question, or the answer, or your explanation. What is a "degree of freedom" of a matrix? I know what "degree of freedom" means for the homogeneous linear system represented by the matrix, but in that case the answer would be $n-r$. So I don't know what you mean.
â Arturo Magidin
Jun 13 '11 at 18:42
2
@Arturo Magidin, sorry for the ambiguity. Here I treat matrices as vectors lying in $mathbbR^n^2$. And matrices with rank $r (r<n)$ are supposed to lie within a manifold of lower dimension. For example, the singular matrices lie within a $(n^2-1)$-dimensional manifold, because they satisfy $det(M)=0$, the sole constraint. Alternatively, we can call the dimension of that lower-dimensional manifold as "Degree of freedom".
â ziyuang
Jun 13 '11 at 19:14