Finance[WienerProcess] - create new Wiener process
|
Calling Sequence
|
|
WienerProcess(J)
WienerProcess(Sigma)
|
|
Parameters
|
|
J
|
-
|
(optional) stochastic process with non-negative increments, or a deterministic function of time; subordinator
|
Sigma
|
-
|
Matrix; covariance matrix
|
|
|
|
|
Description
|
|
•
|
The WienerProcess(Sigma) calling sequence creates a Wiener process with covariance matrix Sigma. The matrix Sigma must be a positive semi-definite square matrix. The dimension of the generated process will be equal to the dimension of the matrix Sigma.
|
|
|
Compatibility
|
|
•
|
The Finance[WienerProcess] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
First create a standard Wiener process and generate replications of the sample path and plot the result.
>
|
|
>
|
![P := PathPlot(W(t), t = 0 .. 3, timesteps = 50, replications = 20, thickness = 3, color = red, axes = BOXED, gridlines = true)](/support/helpjp/helpview.aspx?si=8923/file01697/math120.png)
|
Define another stochastic variable as an expression involving . You can compute the expected value of using Monte Carlo simulation with the specified number of replications of the sample path.
>
|
|
| (1) |
>
|
|
| (2) |
Define another stochastic variable , which also depends on but uses symbolic coefficients. Note that is an Ito process, so it is governed by the stochastic differential equation (SDE) . You can use the Drift and Diffusion commands to compute and .
>
|
![Y := proc (t) options operator, arrow; exp(mu*t+sigma*W(t)) end proc](/support/helpjp/helpview.aspx?si=8923/file01697/math168.png)
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
Create a subordinated Wiener process that uses a Poisson process with intensity parameter as subordinator.
>
|
|
| (6) |
>
|
|
| (7) |
>
|
![P2 := PathPlot(W2(t), t = 0 .. 3, timesteps = 50, replications = 20, thickness = 3, color = blue, axes = BOXED, gridlines = true)](/support/helpjp/helpview.aspx?si=8923/file01697/math208.png)
|
>
|
|
Here is a representation of the Ornstein-Uhlenbeck process in terms of or a subordinated Wiener process. In this case the subordinator is a deterministic process that can be specified as a Maple procedure or an algebraic expression.
>
|
|
| (8) |
>
|
|
| (9) |
>
|
![R := proc (t) options operator, arrow; R0*exp(-kappa*t)+theta*(1-exp(-kappa*t))+sigma*exp(-kappa*t)*W3(t) end proc](/support/helpjp/helpview.aspx?si=8923/file01697/math250.png)
|
| (10) |
>
|
![P3 := PathPlot(R(t), t = 0 .. 3, timesteps = 50, replications = 20, thickness = 3, color = blue, axes = BOXED, gridlines = true)](/support/helpjp/helpview.aspx?si=8923/file01697/math258.png)
|
>
|
|
| (11) |
|
|
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
Was this information helpful?