Skip to main content
HomePythonIntroduction to Portfolio Analysis in Python

Introduction to Portfolio Analysis in Python

Learn how to calculate meaningful measures of risk and performance, and how to compile an optimal portfolio for the desired risk and return trade-off.

Start Course for Free
4 hours15 videos52 exercises16,056 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

Have you ever had wondered whether an investment fund is actually a good investment? Or compared two investment options and asked what the difference between the two is? What does the risk indicator of these funds even mean? Or do you frequently work with financial data in your daily job and you want to get an edge? In this course, you’re going to get familiar with the exciting world of investing, by learning about portfolios, risk and return, and how to critically analyze them. By working on actual historical stock data, you’ll learn how to calculate meaningful measures of risk, how to break-down performance, and how to calculate an optimal portfolio for the desired risk and return trade-off. After this course, you’ll be able to make data-driven decisions when it comes to investing and have a better understanding of investment portfolios.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Finance Fundamentals in Python

Go To Track
  1. 1

    Introduction to Portfolio Analysis

    Free

    In the first chapter, you’ll learn how a portfolio is build up out of individual assets and corresponding weights. The chapter also covers how to calculate the main characteristics of a portfolio: returns and risk.

    Play Chapter Now
    Welcome to Portfolio Analysis!
    50 xp
    Why invest in portfolios
    50 xp
    The effect of diversification
    100 xp
    Portfolio returns
    50 xp
    Portfolio losses and gaining it back
    50 xp
    Calculate mean returns
    100 xp
    Portfolio cumulative returns
    100 xp
    Measuring risk of a portfolio
    50 xp
    Portfolio variance
    100 xp
    Standard deviation versus variance
    100 xp
  2. 2

    Risk and Return

    Chapter 2 goes deeper into how to measure returns and risk accurately. The two most important measures of return, annualized returns, and risk-adjusted returns, are covered in the first part of the chapter. In the second part, you’ll learn how to look at risk from different perspectives. This part focuses on skewness and kurtosis of a distribution, as well as downside risk.

    Play Chapter Now
  3. 3

    Performance Attribution

    In chapter 3, you’ll learn about investment factors and how they play a role in driving risk and return. You’ll learn about the Fama French factor model, and use that to break down portfolio returns into explainable, common factors. This chapter also covers how to use Pyfolio, a public portfolio analysis tool.

    Play Chapter Now
  4. 4

    Portfolio Optimization

    In this last chapter, you learn how to create optimal portfolio weights, using Markowitz’ portfolio optimization framework. You’ll learn how to find the optimal weights for the desired level of risk or return. Lastly, you’ll learn alternative ways to calculate expected risk and return, using the most recent data only.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

In the following Tracks

Finance Fundamentals in Python

Go To Track

datasets

Small portfolioS&P500Large portfolioFactors for portfolio returnsPortfolio factors

collaborators

Collaborator's avatar
Hillary Green-Lerman
Collaborator's avatar
Ruanne Van Der Walt
Charlotte Werger HeadshotCharlotte Werger

Director of Advanced Analytics at Nike

Dr. Charlotte Werger currently works at Nike as a Director of Advanced Analytics. Charlotte is a data scientist with a background in econometrics and finance. She loves applying Machine Learning to a broad variety of problems, ranging from image recognition to fraud detection, to customer recommender systems. Charlotte has previously worked in finance as Head of Data Science at Van Lanschot Kempen, and as a quantitative researcher and portfolio manager for BlackRock and Man AHL. In those roles, she specialized in using data science to predict movements in stock markets. As the former Head of Education at Faculty, she loves teaching data science on- and off-line. Charlotte is also active as a Data Science mentor for the Springboard program. Charlotte holds a P.h.D from the European University Institute.
See More

What do other learners have to say?

FAQs

Join over 15 million learners and start Introduction to Portfolio Analysis in Python today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.