Assume a market with only two risky assets (\(X\) and \(Y\)). Their expected returns and standard deviation are given below. The correlation between the returns of these assets is \(\rho_{x,y} = 0.5\)
Asset
Expected Return (\(E[r]\))
Standard Deviation (\(\sigma\))
X
0.12
0.2
Y
0.17
0.25
Use the slider to identify the portfolio created combining the two assets, by changing the weight of asset \(X\) (\(w_x\)) in the portfolio (\(p\)).
What happens when you change the weight of asset \(X\) in the portfolio?
Can we create a portfolio with a negative asset weight? How?
Plot.plot({caption:`Portfolio expected return as a function of the weight of X in the portfolio`,x: {label:"Weight of asset X in the portfolio",zero:true},y: {label:"Portfolio expected return",domain: [0,0.3]},marks: [ Plot.ruleY([0]), Plot.lineY(portfolios, {x:"w_x",y:"er_p",stroke:"orange"}), Plot.dot(portfolio_p, {x:"w_x",y:"er_p",r:5,fill:"green"}), Plot.text(portfolio_p, {x:"w_x",y:"er_p",text:"label",dy:-7,lineAnchor:"bottom",fontSize:12}), ]})
Plot.plot({caption:`Portfolio standard deviation as a function of the weight of X in the portfolio`,x: {label:"Weight of asset X in the portfolio",zero:true},y: {label:"Portfolio standard deviation",domain: [0,0.6]},marks: [ Plot.ruleY([0]), Plot.lineY(portfolios, {x:"w_x",y:"sd_p",stroke:"green"}), Plot.dot(portfolio_p, {x:"w_x",y:"sd_p",r:5,fill:"green"}), Plot.text(portfolio_p, {x:"w_x",y:"sd_p",text:"label",dy:-7,lineAnchor:"bottom",fontSize:12}), ]})