Python for Finance: Historical Volatility & Risk-Return Ratios

Опубликовано: 10 Май 2021
на канале: QuantPy
14,886
422

Today explore historical volatility in python and a method to estimate volatility using the log returns distribution sample variance. We then visualise the historical volatility in terms of the log returns distributions as well as considering a rolling window to plot volatility over time.

In the financial industry, useful measures for decision making are inclusive of both expected returns and volatility. Here we explain and calculate the following risk-return metrics over a rolling time horizon: Sharpe Ratio, Sortino Ratio, M2 Ratio, Max Drawdowns and the Calmar Ratio.

00:00 Intro
01:18 Historical Volatility
07:06 Rolling Window Historical Volatility
08:40 Sharpe Ratio
10:56 Sortino Ratio
13:42 M2 Ratio
16:45 Max Drawdowns
19:50 Calmar Ratio

As a high-level programming language, Python is a great tool for financial data analysis, with quick implementation and well documented API data sources, statistical modules and other frameworks related to the financial industry. We will be using Jupyter Lab as an interactive web browser editor for this series due to ease of use and presenting code in a live notebook is ideal for this tutorial series.

This is the fourth video of many on the topic of Python for Finance. The series will include general techniques used for financial analysis and act as an introduction for more in-depth tutorials that we may explore later (such as time series modelling, building financial dashboards, machine learning ect.).

★ ★ Code Available on GitHub ★ ★
GitHub: https://github.com/TheQuantPy
Specific Tutorial Link: https://github.com/TheQuantPy/youtube...

★ ★ QuantPy GitHub ★ ★
Collection of resources used on QuantPy YouTube channel. https://github.com/thequantpy

★ ★ Discord Community ★ ★
Join a small niche community of like-minded quants on discord.   / discord  

★ ★ Support our Patreon Community ★ ★
Get access to Jupyter Notebooks that can run in the browser without downloading python.
  / quantpy  

★ ★ ThetaData API ★ ★
ThetaData's API provides both realtime and historical options data for end-of-day, and intraday trades and quotes. Use coupon 'QPY1' to receive 20% off on your first month.
https://www.thetadata.net/

★ ★ Online Quant Tutorials ★ ★
WEBSITE: https://quantpy.com.au

★ ★ Contact Us ★ ★
EMAIL: [email protected]

Disclaimer: All ideas, opinions, recommendations and/or forecasts, expressed or implied in this content, are for informational and educational purposes only and should not be construed as financial product advice or an inducement or instruction to invest, trade, and/or speculate in the markets. Any action or refraining from action; investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied in this content, are committed at your own risk an consequence, financial or otherwise. As an affiliate of ThetaData, QuantPy Pty Ltd is compensated for any purchases made through the link provided in this description.


Смотрите видео Python for Finance: Historical Volatility & Risk-Return Ratios онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь QuantPy 10 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 14,886 раз и оно понравилось 422 людям.