Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/notebooks/Chapter 7 - Linear Independence.ipynb
Views: 449
Definition of Linear Independence
If all 's are zero, a set of vectors is said to be linearly independent, if the equation
holds.
If any of , the set of vectors is linearly dependent.
Example 1
Determine if are linearly independent.
The common way of testing linear combination is to construct augmented matrix and calculate the reduced form, for example
The solution tells that is a free variable, so naturally it could be nonzero because , therefore the set is linearly dependent.
Example 2
Consider a matrix ,determine if columns of are linearly independent.
Solve the system via augmented matrix.
has only trivial solution, i.e. , so the columns of are linearly independent.
Linear independence is closly connected with linear combination, in next section we visualize the linear independence.
Visualization of Linear Independence
This is a visual example in , showing , , are linearly dependent.
Simply put, if one vector is the scalar multiple of the other vector, e.g. , these two vectors are linearly dependent.
Next, we visualize linear independence in with vectors , , .
The standard procedure is to write down the span of first two vectors, which is a plane. Then we examine whether the third vector is in the plane. If not, this set of vectors is linearly independent.
Pan around the image (either by setting ax.view_init
or using JupyterLab widget), we can see that the green vector is not in the plane spanned by red and blue vector, thus they are linearly independent.
A Sidenote About Linear Independence
Let be a set of vectors in , if , then is always linearly dependent. Simple example is vectors in , even if of them are linearly independent, the -th one can never be independent of them.
Also if contains a zero vector, then the set is always linearly dependent.