Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
braverock
GitHub Repository: braverock/portfolioanalytics
Path: blob/master/sandbox/optimization-vignette.Rnw
1433 views
1
%
2
\documentclass[12pt,letterpaper,english]{article}
3
\usepackage[OT1]{fontenc}
4
\usepackage{Sweave}
5
\begin{document}
6
7
\title{Portfolio Optimization with \pkg{optimizer}}
8
\author{Peter Carl \& Brian G. Peterson}
9
10
\makeatletter
11
\makeatother
12
\maketitle
13
14
\begin{abstract}
15
This vignette describes the steps used to optimize a portfolio of financial assets.
16
\end{abstract}
17
18
\tableofcontents
19
20
\section{Introduction}
21
22
<<LoadLibrary,echo=F,results=hide>>=
23
library('optimizer') # also loads PerformanceAnalytics, etc.
24
@
25
26
\section{Getting Started}
27
\subsection{Load and review data}
28
Describe the data. Zero fill the data where necessary. discuss the tradeoffs with zero filling and speed.
29
%
30
\begin{figure}
31
\caption{First Lines of the managers Object }
32
\label{fig:First-Lines-of}
33
<<LoadData,echo=T>>=
34
data(edhec)
35
#managers=read.csv("/home/peter/dev/R/managers.csv",row.names=1)
36
head(managers)
37
@
38
\end{figure}
39
40
\subsection{Select an optimizer}
41
42
43
\section{Unconstrained mean-variance optimization}
44
45
\section{Adding constraints}
46
47
\subsection{Adding portfolio constraints}
48
49
\subsection{Adding per-asset weight constraints}
50
51
\section{Value-at-Risk and Expected Shortfall}
52
53
\section{Optimization with higher moments}
54
55
56
\end{document}
57
58