Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

random financial portfolios

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119771] random financial portfolios
  • From: Priyan Fernando <priyan.fernando at gmail.com>
  • Date: Tue, 21 Jun 2011 07:24:10 -0400 (EDT)

Hi,

Wonder if someone can help me pls; I'm new to mathematica. I want to
generate "random" financial portfolios using the following parameters.

returns = {0.05, -0.2, 0.15, 0.3}
covariance = {{0.08, -0.05, -0.05, -0.05}, {-0.05,
   0.16, -0.02, -0.02}, {-0.05, -0.02, 0.35, 0.06}, {-0.05, -0.02,
   0.06, 0.35}}

So we need
*weights={w1,w2,w3,w4}*
where each term is a random numbers representing asset the asset weigth
[assume that these must sum  to 1 - a long only portfolio]

I want to randomly change the weights and then calculate porfolio return:
*weights.returns*
and portfolio variance:
*weights.covariance.weights*

Then want to plot the return against risk, for say around 100 simulations.

Your help is much appreciated.

Thanks!


  • Prev by Date: Re: Graphics not displayed
  • Next by Date: Re: getting empty lines when copying as MathML
  • Previous by thread: Re: Multiple use of Set on lists
  • Next by thread: Re: random financial portfolios