Q2. Marks - 10 Portfolio Universe Selection Since, you have to make a Portfolio…
- User
Q2. Marks - 10 Portfolio Universe Selection
Since, you have to make a Portfolio constituting of five assets only, you select the assets based on the basis of two strategies as shared below.
Strategy 1:
Step 1: Calculate the Reward to Risk - (Median Return/Standard Deviation)
Step 2: Rank the Reward to Risk for Assets, then choose the top five asset while maintaining the constraint (Atleast one Commodity and one Forex)
Note: In case of tie, you choose the asset with higher mean return.
Strategy 2:
Based on Price/Earning Ratio while maintaining the constraint (Atleast one Commodity and one Forex) Note: After filtering the 5 assets, export the file either as .csv or .xlsx
Insert the code chunk below.
- Assistant
- User
Q2. Marks - 10 Portfolio Universe Selection
Since, you have to make a Portfolio constituting of five assets only, you select the assets based on the basis of two strategies as shared below.
Strategy 1:
Step 1: Calculate the Reward to Risk - (Median Return/Standard Deviation)
Step 2: Rank the Reward to Risk for Assets, then choose the top five asset while maintaining the constraint (Atleast one Commodity and one Forex)
Note: In case of tie, you choose the asset with higher mean return.
Strategy 2:
Based on Price/Earning Ratio while maintaining the constraint (Atleast one Commodity and one Forex) Note: After filtering the 5 assets, export the file either as .csv or .xlsx
Insert the code chunk below..........................I want code in R
- Assistant
- User
MedianReturn / data$StandardDeviation Error: object 'MedianReturn' not found
- Assistant
- User
Error: object 'MedianReturn' not found
- Assistant
- User
YOu know i have in total 15 assets then from that i have to select 5 with condition that Atleast one Commodity and one Forex................Stocks - Google, Tesla, Pfizer, Shell, AT&T Forex - USDINR, EURUSD, USDCAD, USDCHF, NZDUSD Commodities - Crude, Natural Gas, Gold, Wheat, Ethanol....................i already calculated PE ratio .....Now give me codes
- Assistant
- User
Can you give the above code using fportfolio and basicstats only
- Assistant
- User
- Assistant