Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Finance[DynamicPortfolio] - create new dynamic portfolio
Calling Sequence
DynamicPortfolio(update, weights, components, updates)
Parameters
update
-
procedure; procedure for determining how the weights should be updated
weights
list or Vector; initial weights
components
stochastic process, list or Vector of stochastic processes; components of the portfolio
updates
(optional) continuous or positive integer; indicates how often the portfolio should be updated
Description
The DynamicPortfolio command creates new dynamically updated portfolio.
The parameter update is a procedure used for calculating the updated weights of the portfolio. This procedure will be called every time the portfolio is rebalanced. The following five arguments will be passed to the procedure: , , , and , where is the vector of new weights, is the vector of new values, is the vector of old weights, is the vector old values and is the current time.
The parameter weights is the vector of initial weights.
The parameter components is either a multi-dimensional stochastic process or a vector of one-dimensional stochastic processes.
Finally, the (optional) parameter updates controls how often the portfolio should be updated. Possible values are continuous or any positive integer. This integer value will specify the number of updates per year. If the value of this parameter is continuous, then the portfolio will be updated at every point in the discretization time grid.
Compatibility
The Finance[DynamicPortfolio] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
Consider two processes. The first process is a geometric Brownian motion. The second process is a deterministic process with constant value 1.0.
U := proc(w, w0, x, x0, t) if x[1] < 1.05 then w[1] := 0; w[2] := 1; else w[1] := 1; w[2] := 0; end if; end proc;
Q := DynamicPortfolio(proc() end, W, X):
R := DynamicPortfolio(proc() end, <0.0, 1.0>, X):
See Also
Finance[BlackScholesProcess], Finance[CEVProcess], Finance[Diffusion], Finance[Drift], Finance[ExpectedValue], Finance[GeometricBrownianMotion], Finance[ItoProcess], Finance[PathPlot], Finance[SamplePath], Finance[SampleValues], Finance[StochasticProcesses], Finance[WienerProcess]
Download Help Document