Linear independence
Two vectors are considered to be linearly dependent if and only if they are collinear, that is to say, if one can be expressed as a scalar multiple of the other. Furthermore, any set containing the zero vector is also deemed to be linearly dependent.
Mathematically, this is expressed as: w = α1v1 + α2v2 where α1 and α2 are scalars (real numbers in this context).
It means that vector
6
can be expressed as a linear combination of two other vectors:
6
4
1
0
1
1
This demonstrates that the vector
6
is linearly dependent on the vectors
1
1
Also linear dependence is called a linear combination or being within the linear span of the vectors.
A set of vectors v = [v₁ v₂ ... vₙ] is said to be linearly independent if no vector vᵢ within the set can be written as a linear combination of the others.
Linear Dependence Python Example
np.array - create an array.
Now let's test if a set of vectors are linearly independent.
numpy.column_stack - stack 1D arrays as columns to make a 2D array. 2D arrays are stacked as-is. 1D arrays are turned into 2D columns first.
The concept of linear dependence has a variety of applications in finance, particularly in portfolio management, factor models and risk management. This article will explain how linear dependence is relevant in these areas and provide a Python example to illustrate the concept.
In portfolio management, linear dependence means that two assets move in the same way. If they are dependent, there is no benefit in holding both since they move together.
In factor models, asset returns are often expressed as a combination of factors. If one factor is dependent on others, it adds no new information.
The concept of linear dependence can also be employed to evaluate the risk profile of a portfolio. In the event that multiple assets within a portfolio exhibit linear dependence, it suggests that they may react in a similar manner to market shifts, thereby amplifying the overall risk.
Let us consider a scenario in which we have three stocks and wish to ascertain whether their daily returns are linearly dependent.
The returns matrix has a rank of 1, meaning the vectors (columns) are linearly dependent. In financial terms, this means the returns of these stocks are not unique, so diversification has less potential benefit.
References:
"Financial Engineering and Risk Management". Coursera, www.coursera.org/specializations/financialengineering. Last accessed 24 Aug. 2024.
"NumPy documentation — NumPy v2.1 Manual". NumPy -, numpy.org/doc/stable. Last accessed 24 Aug 2024.
- "WQU | Master of Science in Financial Engineering · WQU". WQU | A Leader in Global Education · WQU, www.wqu.edu/mscfe?utm_term=worldquant%20university&utm_campaign=GA_MScFE_SEA_GKW+BKW_WW&utm_source=adwords&utm_medium=ppc&hsa_acc=1450481729&hsa_cam=18879661171&hsa_grp=142652472959&hsa_ad=634265330876&hsa_src=g&hsa_tgt=kwd-365833978550&hsa_kw=worldquant%20university&hsa_mt=b&hsa_net=adwords&hsa_ver=3&gad_source=1&gclid=CjwKCAjwiaa2BhAiEiwAQBgyHk5oR6aQvbAQDkK_znzHUT5523KyleBQZJW2wiqJB_x6reoBOECdGRoCPIsQAvD_BwE. Last accessed 24 Aug 2024.

Коментарі
Дописати коментар