Interactive Course

Intermediate Portfolio Analysis in R

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

  • 5 hours
  • 12 Videos
  • 42 Exercises
  • 7,131 Participants
  • 3,250 XP

Loved by learners at thousands of top 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.

  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.

  3. Objective Functions and Moment Estimation

    In this chapter, you will learn about estimating moments, characteristics of the distribution of asset returns, as well as custom objective functions.

  4. Application

    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.

What do other learners have to say?


“I've used other sites, but DataCamp's been the one that I've stuck with.”

Devon Edwards Joseph

Lloyd's 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

Ross Bennett
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
Icon Icon Icon professional info