-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Total asset from three-headed output #11
Comments
The softmax function has limited the output of each head to nonnegative. |
The output i mean is final portfolio vector instead of output of softmax function. In your codes, (EncoderDecoder class)
this output (return) could be negative value due to out2. |
@hanseul-jeong you are right, the sum of out+out2==1 does not guarantee the abs elementwise_sum==1 @Ivsxk I think she means not use leverage in portfolio |
Sorry about that I misunderstood your question. The final portfolio vector has no need to be scaled by 1.6. Someone borrows 0.3 for reinvesting, which does not mean she/he owns 1.6. The total asset volume belongs to she/he is 1. |
In that case, i think, ignoring the 0.3 (borrowed ratio), the volume of total assets is 1.3. |
Hi, I have a question about total wealth.
In your work, the output is summation of three heads initial, short, and reinvest vector, respectively.
The total sum of three heads is 1+(-1) + 1 = 1.
But this value is not considered of total asset volume.
The absolute asset is 3. So, i think it’s like managing three times asset.
(Of course, if the two output values are not zero for both positive and negative heads, respectively, then each absolute value will be offset because the final portfolio value is generated in addition.
However, if you finally put short position, you will always use more than 1.)
For example, for 3 stocks, the final portfolio value is like this at time t,
A_t = [0.8, -0.3, 0.5].
Abs(A_t) = 0.8 + -(-0.3) + 0.5 = 1.6.
So, final portfolio vector have to be scaled by 1.6.
Proper portfolio vector is
A_t’ = [0.8/1.6, -0.3/1.6, 0.5/1.6].
If I misunderstood something, please let me know.
Thank you!
The text was updated successfully, but these errors were encountered: