Skip to main content

Intermediate Portfolio Analysis in R

Advance you R finance skills to backtest, analyze, and optimize financial portfolios.

Start Course for Free
5 Hours12 Videos42 Exercises9,242 Learners
3250 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

This course builds on the fundamental concepts from Introduction to Portfolio Analysis in R and explores advanced concepts in the portfolio optimization process. It is critical for an analyst or portfolio manager to understand all aspects of the portfolio optimization problem to make informed decisions. In this course, you will learn a quantitative approach to apply the principles of modern portfolio theory to specify a portfolio, define constraints and objectives, solve the problem, and analyze the results. This course will use the R package PortfolioAnalytics to solve portfolio optimization problems with complex constraints and objectives that mirror real world problems.

  1. 1

    Introduction and Portfolio Theory


    This chapter will give you a brief review of Modern Portfolio Theory and introduce you to the PortfolioAnalytics package by solving a couple portfolio optimization problems.

    Play Chapter Now
    Welcome to the course!
    50 xp
    Load the PortfolioAnalytics package
    100 xp
    Solve a simple portfolio optimization problem
    100 xp
    Visualize results
    100 xp
    Modern Portfolio Theory objective
    50 xp
    Defining risk
    50 xp
    Challenges of portfolio optimization
    50 xp
    Quadratic utility
    50 xp
    Maximize quadratic utility function
    100 xp
    Introduction to PortfolioAnalytics
    50 xp
    Key design goals
    50 xp
  2. 2

    Portfolio Optimization Workflow

    The focus of this chapter is a detailed overview of the recommended workflow for solving portfolio optimization problems with PortfolioAnalytics. You will learn how to create a portfolio specification, add constraints, objectives, run the optimization, and analyze the results of the optimization output.

    Play Chapter Now
  3. 4


    In the final chapter of the course, you will solve a portfolio optimization problem that mimics a real world real world example of constructing a portfolio of hedge fund strategy with different style definitions.

    Play Chapter Now

In the following tracks

Finance FundamentalsQuantitative Analyst


Davis VaughanLore Dirick
Ross Bennett Headshot

Ross Bennett

Co-author of PortfolioAnalytics R package

Ross Bennett is an analyst at DV Trading, a proprietary trading division of Rosenthal Collins Capital Management which trades all asset classes at major exchanges around the world. Ross is involved in the operations, research, testing, and development of trading systems for the largest automated trading desk at DV. Ross co-authored the PortfolioAnalytics and GARPFRM R packages and contributes to other open source R packages used in finance.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA