Optimal portfolios with Excel Solver

Optimal portfolios with Excel Solver


This is an instuction video on how to use Excel's solver for calculating efficient portfolios
Closed Caption:

this is alkyl planta and i'm going to
show you in this movie how to calculate
the portfolio and short sales constraint
and i'm using an example with five
different assets
ABC and D and E and have the expected
returns and standard deviations in the
columns B and C and here we have the
covariance matrix
so the first thing that I have to do is
to create a portfolio of an effective
portfolio weights for each of my five
assets and for simplicity
I and put that equal to and equally
weighted portfolio
so where we go a bit of messing around
with formatting but apart from and
everything is fine
and so now we're going to let the solver
decide on what the optimal composition
of portfolios and in order to do that I
first need to calculate the expected
return of the portfolio and I can do
that with the matrix multiply function
then i have to transpose first the
common factor of weights and then i
multiply this transposed factor with the
expected returns of the individual
assets and press shift ctrl enter and
here is the expected return of the
portfolio standard deviation is a bit
more tedious again we use matrix
multiply and again we transpose the
factor of portfolio weights
we need to multiply this transposed
factor of milk of portfolio wait with
the covariance matrix and eventually
we're going to multiply that again with
the column vector
of portfolio weights and so then we are
basically there we press shift ctrl
enter and mind you we now have an
expression that look here this is
actually the variance so we're going to
change that and so we are going to do
the square root of this in honor to get
the portfolio standard deviation so this
now it becomes time to introduce to
solve
so now we're going to calculate optimal
portfolios using the solver and applause
ur as in this color next and this over
needs a objective function and we are
going to use the sharp edge for the
Sharpe ratio is the excess return and
since we use a monthly data we have to
convert a risk-free rate to a monthly
rate we do that and it's simple way but
this is enough body example here
and so here we have basically the
problem and we're going to put the
weight again to equal weighted as a
starting point and we see the Sharpe
ratio of x 20
now we're going to start the solver to
see what is going on what we want to
have an optimal portfolio as you can see
a lot of stuff has already been filled
out so the Sharpe ratio sir
selected as the objective function
portfolio weights these Hardy inputs of
the problem
the variables that i can change and
finally I need to have
a condition namely that some of our port
for your weight should add up to 1 and
this is actually already this this this
button here is already indicating that
they can take short positions
so if i get is unmarked and then I allow
the problem to create unlimited short
positions and let's see what that brings
us
it brings us indeed your positions and
i'm going to copy this for future
reference
and I do that with a special in order to
make sure that it doesn't matter
mess up later and as you can see that
results in the Sharpe ratio of . 29 now
again I'm going to do the solver but
this time I'm going to exclude your
positions
I can do it in two ways i can just check
this box or i can add a condition so I'm
used to do that by adding a condition so
i'm going to do that this time as well
so i'm going to say these things
the portfolio weights should be larger
or equal than 0 and here we have to
complete problem and now i press solve
again and it will give me a solution
that says here
this also found a solution all
conditions and and optimization
conditions have been satisfied
so that's good news and indeed we see
here that
stop being which previously had a big
short position now ends up with a minor
one
and similarly for stock d and it's all
results initial operation of what 27
which is still higher than the one that
I had with equal weighting
so this is the end of this video i hope
that you enjoyed it or at least you
found it useful and hope to see you next
time

Video Length: 06:23
Uploaded By: Auke Plantinga
View Count: 163,688

Related Software Products
Portfolio Optimization
Portfolio Optimization

Published By:
Business Spreadsheets

Description:
The Portfolio Optimization model calculates the optimal capital weightings for a basket of financial investments that gives the highest return for the least risk. The unique design of the model enables it to be applied to either financial instrument or business portfolios. The ability to apply optimization analysis to a portfolio of businesses represents an excellent framework for driving capital allocation, investment, and divestment decisions. The key features of the Portfolio Optimization ...


Related Videos
Portfolio Optimization in Excel.mp4
Portfolio Optimization in Excel.mp4

This is a video created by Dr. Colby Wright demonstrating how to use the matrix algebra and solver functions in Excel in order to optimize the weights within a portfolio comprised of more than two assets. Please note, this is limited to mean-variance optimization and does not consider higher moments (such as skewness and kurtosis). This method of optimizing portfolio weights also assumes that the distribution of past returns is reflective of the distribution of future returns, which is often ...
Video Length: 19:22
Uploaded By: Colby Wright
View Count: 202,178

Generating the Variance-Covariance Matrix
Generating the Variance-Covariance Matrix

This is a follow-up video to a video posted previously by Dr. Colby Wright explaining how to execute mean-variance portfolio optimization in Excel. This video demonstrates how to generate the variance-covariance matrix, which is necessary in order to calculate the portfolio standard deviation. Dr. Wright also demonstrates how to transform the var-cov matrix into the correlation matrix. hr / bClosed Caption:/b hello everyone this is dr. right again a couple months ...
Video Length: 18:42
Uploaded By: Colby Wright
View Count: 156,335

Tutorial: Constructing Efficient Frontier using Markowitz model
Tutorial: Constructing Efficient Frontier using Markowitz model

This tutorial shows how to calculate portfolio efficient frontier comprised of common stocks. It relies on Markowitz model and mean-variance optimization. All calculations are performed in Microsoft Excel with the help of Solver add-in in MS Excel. The data and examples are posted here: http://valexeev.yolasite.com/teaching.php hr / bClosed Caption:/b hello everyone the tutorial on constructing the portfolio efficient frontier using the workers model thebr ...
Video Length: 15:48
Uploaded By: Vitali Alexeev
View Count: 34,738

Efficient Frontier
Efficient Frontier

In this video, Dr Paul Docherty from The University of Newcastle (Australia) describes the portfolio optimisation and the efficient frontier. The video includes a demonstration of how Microsoft Excel's Solver addin can be used to derive the efficient frontier. hr / bClosed Caption:/b I'm going to this instructional video on how to derive the efficient frontier using Microsoft XO this video has been created for students and portfolio management ...
Video Length: 24:06
Uploaded By: Paul Docherty
View Count: 26,347

Portfolio Construction using R
Portfolio Construction using R

Create a portfolio of stocks using stock price histories downloaded from Yahoo. We create an efficient frontier for a long-only portfolio and show how to graphically display the risk-return tradeoff and the allocations. We next show how to compare frontiers created with other constraints and compare them to the original long-only frontier the R code is available on http://wp.me/pTp8L-3j hr / bClosed Caption:/b in this video we'll look at portfolio construction ...
Video Length: 07:58
Uploaded By: Elliot Noma
View Count: 17,719

Getting Started with Portfolio Optimization
Getting Started with Portfolio Optimization

Get a Free Trial: https://goo.gl/C2Y9A5 Get Pricing Info: https://goo.gl/kDvGHt Ready to Buy: https://goo.gl/vsIeA5 Create and optimize portfolios of assets using the portfolio object in Financial Toolbox, together with Datafeed Toolbox. For more videos, visit http://www.mathworks.com/products/fin... hr / bClosed Caption:/b this video will show you how to use the portfolio object to formulate and solve a range of asset allocation problemsbr ...
Video Length: 13:36
Uploaded By: MATLAB
View Count: 13,224

Portfolio Optimization
Portfolio Optimization

www.vosesoftware.com. ModelRisk is the most advanced risk modeling software in the world. To download your 30 day free trial, please visit: www.vosesoftware.com/trial.php hr / bClosed Caption:/b during this tutorial we will be highlighting it AP portfolio optimization model as a vehicle for highlighting several features model risk in particular the optimization functionality built into model riskbr ...
Video Length: 09:47
Uploaded By: ModelRisk
View Count: 10,430

Value at Risk - based Portfolio Optimization
Value at Risk - based Portfolio Optimization

Dr. Emanuele Canegrati explains the future of Portfolio Optimization Techniques which respects Basle II Protocol to manage the market risks of banks and financial institutions hr / bClosed Caption:/b hello everybody and I want to discuss today the value at risk the spur for the optimization which he is and may appear in very useful to which in the future as whose will be a sort of benchmarks for four you up to ease ...
Video Length: 10:44
Uploaded By: quantsfinance
View Count: 7,225

Investment Science: Portfolio Optimization
Investment Science: Portfolio Optimization

Tucker Balch, Ph.D., Lucena's CTO describes the science and algorithms behind portfolio optimization. hr / bClosed Caption:/b Hall hot of of home of I am after soccer ball with him soon research and in this video minute tell you about portfolio optimization now this video is about the science a portfolio optimization there's another video that tells you how to use the portfolio optimizer ...
Video Length: 18:09
Uploaded By: Tucker Balch
View Count: 7,087

CVaR Portfolio Optimization
CVaR Portfolio Optimization

Get a Free Trial: https://goo.gl/C2Y9A5 Get Pricing Info: https://goo.gl/kDvGHt Ready to Buy: https://goo.gl/vsIeA5 Create and optimize Conditional Value at Risk portfolios. For more videos, visit http://www.mathworks.com/products/fin... hr / bClosed Caption:/b in this video we will show conditional value at risk portfolio optimization in the financial tool box using the portfolio see bar object using these tools you can ...
Video Length: 05:38
Uploaded By: MATLAB
View Count: 6,837

Copyright © 2025, Ivertech. All rights reserved.