
Learn to optimize portfolios using market data to maximize expected return per unit of risk with Excel and R, through hands-on tutorials and 20-asset examples.
Adjust playback speed and sound intensity to tailor your learning, rely on auto-generated transcriptions and subtitles, and rate the course with confidence, knowing a 30-day refund is available.
Explore the Markowitz portfolio theory and its risk-reducing role for assets in a multi-asset portfolio. Illustrate diversification and build a step-by-step asset portfolio to understand the risk-return trade-off.
Explore how mean return and standard deviation quantify asset risk, illustrating how higher volatility signals greater risk and how dominated assets guide portfolio choices under Markowitz theory.
Navigate to Yahoo Finance; open historical data to view high, low, close, adjusted close, volume, and stock splits; download five-year CSVs for Tesla and Walmart to compute returns and risk.
Learn to calculate stock returns and risk using Excel, applying text-to-columns, computing baseline returns, expected returns, and standard deviation for Walmart and Tesla.
Define the two-asset portfolio return as a weighted average and show how portfolio risk, via standard deviation, drops with diversification when assets are not perfectly correlated.
Calculate the portfolio return and risk for a 50/50 Wal-Mart and Domino's Pizza mix, using monthly returns to estimate a 1.6 percent return and a 4.4 percent portfolio standard deviation.
Learn the Markowitz portfolio theory as a mean-variance, portfolio optimization model that creates a diversified, lower-risk portfolio by selecting uncorrelated securities along the efficient frontier and tangency portfolio.
Explore the efficient frontier, the best trade-off between risk and return for portfolios of risky assets. Learn how diversification and the global minimum variance portfolio shape achievable outcomes.
Identify the most preferred portfolio on the efficient frontier by locating the tangency with the investor's indifference curve, considering risk aversion and risk-free options.
Explore the capital market line, tangent to the efficient frontier at the market portfolio. It blends risk-free lending and borrowing with risky assets, with the Sharpe ratio as its slope.
Locate the risk-free rate using the daily treasury yield curve rates from the U.S. Department of the Treasury, focusing on the 30-year yield as of February 23, 2021.
Maximize the Sharpe ratio with Excel Solver to obtain the tangency portfolio from a seed 50/50 mix using monthly returns and a 0.18% monthly risk-free rate.
Learn to plot the capital market line and its tangent to the efficient frontier by calculating the tangent portfolio’s return and risk against the risk-free asset.
Apply Markowitz portfolio theory with matrix multiplication to optimize a 20-stock portfolio using real price data, calculate return, variance-covariance matrices, equal-weighted return and risk, and estimate value at risk.
Learn to multiply matrices using the dot product, respecting inner dimensions and producing an m by p result, a key tool in portfolio optimization.
Compute matrix multiplication in Excel by calculating each element step by step from two matrices using the Excel function, then press enter.
Apply matrix algebra to portfolio theory to simplify return and risk calculations. Compute expected return and variance with weights, means, and the covariance matrix in a Markowitz model.
Compute the specter return invariance of a three-asset portfolio using step-by-step and matrix algebra methods, calculating returns, building a variance-covariance matrix, and evaluating equal-weighted portfolio performance.
Build a diversified portfolio using 60 observations, five-year monthly dataset in Excel, compute the covariance matrix, and optimize the portfolio.
Calculate the return matrix in excel using (current price - previous price) / previous price, then compute averages, variance, and standard deviation to compare stocks for portfolio optimization.
Compute the variance-covariance matrix in Excel using the analysis toolpak to derive a 20x20 covariance across company returns, including diagonal and off-diagonal terms.
Learn to compute the expected return and portfolio standard deviation for an equal-weight 20-stock portfolio in Excel, using transposed returns and a covariance matrix.
Compute the Sharpe ratio with a monthly risk-free rate, then maximize it using data solver under weights summing to one and nonnegativity to obtain the optimal portfolio.
Compute value at risk at a 95 percent confidence level for individual positions and portfolios, using volatility and correlations, and show how diversification lowers risk over a horizon.
Compute the value at risk for a portfolio in Excel at a 95 percent confidence level, using volatility and standard deviation to illustrate diversification benefits.
Optimize your investment portfolio using the portfolio package: import prices, estimate returns, build a variance-covariance matrix, plot efficient frontier with Monte Carlo simulations, then determine minimum-variance and tangency weights.
Import a price matrix into R by saving Excel data as csv and loading it with read.table, creating price.matrix with 60 observations and 20 assets.
Compute the return matrix from the price matrix, noting 60 price observations and 59 returns across 20 assets. Use the prior period price as the denominator when computing period returns.
Compute the portfolio expected return and standard deviation for 20 assets using mean returns, equal weights, and the variance covariance matrix.
Construct efficient frontier by converting returns to time series and applying the portfolio frontier. Identify the optimal portfolio via Monte Carlo simulations and the Sharpe ratio, with a long-only constraint.
Learn to estimate the minimum-variance portfolio and the tangency portfolio using a portfolio package, with monthly returns and a risk-free rate. Extract weights and apply a long-only constraint.
Explore how pi portfolio opt and ChatGPT automate portfolio optimization using Python, yfinance, and Google Colab to fetch live market data and refine returns with the efficient frontier.
Import the price matrix with yfinance and estimate returns and the variance-covariance matrix for a European stock portfolio using pi portfolio opt in Python.
Import monthly adjusted close prices for Indian stocks over five years with yfinance, guided by chatgpt. Use pi portfolio opt compute expected return vector and variance-covariance matrix at frequency 12.
Explore portfolio optimization for european stocks by importing data, estimating returns and the variance-covariance matrix, defining a risk-free rate, and building an efficient frontier to identify the optimal portfolio.
Plot the efficient frontier and the optimal portfolio to visualize risk-return tradeoffs and identify the portfolio that maximizes the Sharpe ratio.
Plot the efficient frontier, optimal portfolio, and capital market line for Indian stocks using PyPortfolioOpt and ChatGPT in a Colab notebook; highlight selected assets in purple with tickers.
Join a hands-on Udemy labs portfolio optimization session using Python to load prices, compute annualized returns and covariance, and plot the efficient frontier with min volatility and max Sharpe portfolios.
Apply your new portfolio optimization skills with Excel and Solberg's portfolio package to maximize return per unit price of your investment portfolio.
Portfolio Management & Optimization: Excel, R, Python, AI is a practical course that teaches you how to build and optimize investment portfolios using real market data—so you can make better decisions about risk, return, diversification, and portfolio construction.
You will learn the core logic of Modern Portfolio Theory (MPT / Markowitz) and apply it step-by-step to compute portfolio metrics (expected return, volatility, correlation, covariance) and build the Efficient Frontier. The course starts with intuitive, transparent workflows in Excel, and then scales to more automated and professional toolsets in R and Python.
What you will do in this course
Apply portfolio management principles to structure diversified portfolios
Master modern portfolio theory and the intuition behind optimization
Build the efficient frontier and interpret optimal portfolios
Optimize portfolios using Excel Solver (clear and hands-on)
Use R (fPortfolio) to automate portfolio optimization and compare results
Use Python (PyPortfolioOpt) to run modern optimization workflows efficiently
Leverage AI / ChatGPT as a productivity tool for structure, interpretation, validation, and faster iteration
What’s included
Step-by-step tutorials with a learning-by-doing approach
Downloadable resources: Excel files, R code, and Python scripts
Practice tasks (with solutions) to validate your progress and confidence
Who this course is for
This course is designed for students and professionals who want to strengthen their skills in portfolio management and portfolio optimization, whether for academic work, professional finance/analytics, or to build a more rigorous investment framework.
What students say
Deepakraja S.: “Awesome course… best for beginners who would like to start their quant career and understand portfolio theory.”
Etienne R.: “Very practical… helps investors structure a portfolio efficiently and go beyond Excel using R.”
Omar H.: “Exceptional course. Explained everything in a concise, clear and to the point manner.”
Ernest A.: “The video ‘Defining Stock Return & Risk’ helped me understand the importance of standard deviation.”
Marcelo A.: “This course was extremely helpful for my thesis. Clear, practical, and valuable—thank you, Professor.”
If your goal is to move from theory to execution—building optimized portfolios with Excel, R, Python, and AI—this course will take you there step by step.