In Portfolio (or mean-variance) theory, the efficient frontier is a set of points (or portfolios) in which no other point achieves higher return given a certain risk. It is a spectrum that is closely related to the Markowitz Portfolio Optimization problem. In this lecture, and in an attempt of achieving the optimal portfolio in two different ways, we show how to plot the efficient frontier on a scatter plot containing different portfolios. This lecture is outlined as follows:

⏲Outline⏲
00:00​ Highlights
00:23​ Introduction
01:41​ Setting Jupyter Lab
02:11​ Pandas Datareader
04:42​ Reading Stocks
06:04​ Dataframe Concatenation
07:25​ Returns
08:15​ Log Returns
09:18​ Sharpe Ratio
11:49​ Log Asset Returns
12:14​ Volatility Per Portfolio
13:02​ Return vs Volatility Scatter Plot
18:34​ Sharpe Ratio Maximization (1st way)
19:28​ Scatter Plot: Returns vs Volatility
22:01​ Optimal Weights by Markowitz Portfolio Optimization (2nd way)
28:00​ Efficient Markowitz Frontier
32:30​ Important Message
33:36​ Outro

Instructor: Dr. Ahmad Bazzi

🏗️Material

Browser: https://www.google.com/chrome/

Jupyter: https://jupyter.org/

Google: https://www.google.com/

Pandas: https://pandas.pydata.org/

DataReaders: https://pandas-datareader.readthedocs…

MATPLOTLIB: https://matplotlib.org/

datetime: https://docs.python.org/3/library/dat…

SciPy: https://www.scipy.org/

NumPy: https://numpy.or/gj

Subscribe: https://www.youtube.com/channel/UCgC1d4JZ1Fz4t8MWLJD464w

#python

Stock Market Analysis & Markowitz Efficient Frontier on Python
886.15 GEEK