[Returnanalytics-commits] r2128 - pkg/PerformanceAnalytics/sandbox/Meucci/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jul 9 04:12:18 CEST 2012


Author: mkshah
Date: 2012-07-09 04:12:17 +0200 (Mon, 09 Jul 2012)
New Revision: 2128

Modified:
   pkg/PerformanceAnalytics/sandbox/Meucci/R/logToArithmeticCovariance.R
Log:
Updating equations and references

Modified: pkg/PerformanceAnalytics/sandbox/Meucci/R/logToArithmeticCovariance.R
===================================================================
--- pkg/PerformanceAnalytics/sandbox/Meucci/R/logToArithmeticCovariance.R	2012-07-09 01:51:00 UTC (rev 2127)
+++ pkg/PerformanceAnalytics/sandbox/Meucci/R/logToArithmeticCovariance.R	2012-07-09 02:12:17 UTC (rev 2128)
@@ -6,12 +6,15 @@
 #' @return                        a list containing two elements:
 #' @return  arithmeticMean          a numeric containing the mean arithmetic returns
 #' @return  arithmeticCovariance    a variance-covariance matrix in simple arithmetic return terms
-#'
+#' \deqn { M_{ \tau }^{i}  =  e^{  \mu ^{\tau} _{i} +  \frac{1}{2} \Sigma^{ii} _{\tau} },
+#' \\  S^{ij} = e^{  \mu ^{\tau} _{i} + \mu ^{\tau} _{j} + \frac{1}{2} \big(\Sigma^{ii} _{\tau} + \Sigma^{jj} _{\tau}\big)  }  \big(e^{\Sigma^{ij} _{\tau}} - 1\big) }
 #' @author Ram Ahluwalia \email{ram@@wingedfootcapital.com}
 #' @export
+#' @references
+#' # formula (7) and (8) on page 5 of Appendix to "Meucci - A Common Pitfall in Mean-Variance Estimation"
+#' \url{http://www.wilmott.com/pdfs/011119_meucci.pdf}
 linreturn <- function( mu , sigma )
-{
-    # formula (7) on page 5 of Appendix to "Meucci - A Common Pitfall in Mean-Variance Estimation"
+{   
     # each element of M represents the linear returns for the corresponding log-returns element in mu
     M <- exp( mu + ( diag( sigma ) / 2 ) ) - 1
     



More information about the Returnanalytics-commits mailing list