Skip to Content
RStudio for R Statistical Computing Cookbook
book

RStudio for R Statistical Computing Cookbook

by Andrea Cirillo
April 2016
Beginner to intermediate content levelBeginner to intermediate
246 pages
5h 20m
English
Packt Publishing
Content preview from RStudio for R Statistical Computing Cookbook

Optimizing portfolio composition and maximising returns with the Portfolio Analytics package

Portfolio optimization is basically composed of four main steps:

  • Definition of portfolio components and past quotations
  • Definition of portfolio constrains, for instance, in term of diversification or maximum loss
  • Definition of objective to be optimized, usually in terms of returns
  • Definition of optimal percentage composition, given constraints and objectives

In this recipe, we will employ PortfolioAnaltycs and some other packages by joining together functionalities from different packages in order to provide a convenient and straightforward way to compose a financial portfolio.

The recipe workflow will be as follows:

  • Downloading stock prices
  • Definition of portfolio ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Data Analysis Using Jupyter Notebook

Practical Data Analysis Using Jupyter Notebook

Marc Wintjen

Publisher Resources

ISBN: 9781784391034Supplemental Content