SampleValues - Maple Help

Finance

 SampleValues
 generate sample value(s) for the specified expression

 Calling Sequence SampleValues(pathfunction, pathgenerator, opts) SampleValues(pathfunction, process, timegrid, opts) SampleValues(pathfunction, process, timeinterval, opts) SampleValues(expression, opts)

Parameters

 pathfunction - procedure; path function pathgenerator - path generator data structure; path generator process - one- or multi-dimensional stochastic process, or list or vector of one-dimensional stochastic processes timegrid - range or time grid data structure; time grid timeinterval - range; time interval expression - algebraic expression; expression whose value is to be generated opts - (optional) equation(s) of the form option = value where option is one of replications or timesteps; specify options for the SampleValues command

Options

 • replications = posint -- This option specifies the number of replications of the sample path. By default, only one replication of the sample path is generated.
 • timesteps = posint -- This option specifies the number of time steps. This option is ignored if an explicit time grid is specified. By default, only one time step is used.

Description

 • The SampleValues(pathfunction, pathgenerator, opts) calling sequence computes a Monte Carlo estimate of pathfunction using sample paths generated by pathgenerator. The procedure consists of the following steps:
 – Generate a replication of the sample path using the specified path generator and store these values as a Maple Array, for example $A$. In the case of a one-dimensional process $A$ is a one-dimensional array of size $n$, where $n$ is the number of points in the time grid (the number of time steps plus one). In the case of a multi-dimensional process, $A$ is a two-dimensional array of size $\left[m,n\right]$, where $m$ is the dimension of the underlying stochastic process and $n$ is the same as in the one-dimensional case.
 – Compute the value $\mathrm{pathfunction}\left(A\right)$.
 – Repeat the above two steps the specified number of times (see the replications option).
 • The SampleValues(pathfunction, process, timegrid, opts) and SampleValues(pathfunction, process, timeinterval, opts) calling sequences first construct the corresponding path generator and then perform the same computations as above.
 • The parameter timeinterval must be of type range ${T}_{0}..{T}_{1}$, where ${T}_{0}$ and ${T}_{1}$ are non-negative constants such that ${T}_{0}<{T}_{1}$.
 • When the ExpectedValue(pathfunction, process, timeinterval, opts) calling sequence is used, the uniform time grid between ${T}_{0}$ and ${T}_{1}$ (with time steps $\mathrm{dt}=\frac{{T}_{1}-{T}_{0}}{\mathrm{timesteps}}$) is generated.
 Note that if $0<{T}_{0}$, the value at ${T}_{0}$ will be simulated using a single step of the default discretization method and hence can suffer from a significant discretization bias. Increasing the number of time steps will refine the grid between ${T}_{0}$ and ${T}_{1}$, but will have no effect on the value at ${T}_{0}$. To reduce the bias, use a time interval of the form $0..{T}_{1}$.
 • The SampleValues(expression, opts) calling sequence attempts to extract all the stochastic variables involved in expression and generate the corresponding path generator and path function using the specified number of time steps. In particular, SampleValues will extract all time instances involved in expression and adjust them so that they belong to the grid.
 All stochastic variables involved in expression should be of the form $X\left(t\right)$, where $t$ is some expression. If $X$ is multi-dimensional stochastic, then the individual components of $X$ can be accessed using the notation ${X\left(t\right)}_{i}$.

Examples

 > $\mathrm{with}\left(\mathrm{Finance}\right):$

Here is a simple one-dimensional stochastic process.

 > $X≔\mathrm{WienerProcess}\left(\right)$
 ${X}{≔}{\mathrm{_W}}$ (1)
 > $S≔\mathrm{SampleValues}\left(\mathrm{exp}\left(X\left(3\right)\right),\mathrm{timesteps}=100,\mathrm{replications}={10}^{4}\right)$
 ${S}{≔}\left[{0.635452272522287}{,}{0.287495255419740}{,}{2.74485709467021}{,}{8.49271374901692}{,}{2.85340794910524}{,}{0.721623915265967}{,}{2.88819960352478}{,}{2.00410476816945}{,}{11.8943465873194}{,}{0.0358827175032374}{,}{0.552997045357152}{,}{0.906144325341223}{,}{0.123641986980266}{,}{28.0980776918296}{,}{2.14531597816132}{,}{0.0839987532173974}{,}{2.05390236774633}{,}{0.709963456843586}{,}{1.64535798661449}{,}{1.15312509876622}{,}{0.268700554987764}{,}{0.0620015402049006}{,}{0.415430434045279}{,}{2.35036569051648}{,}{0.435748404214948}{,}{1.25942969041163}{,}{33.9545840552090}{,}{0.243381473728180}{,}{0.110845295685574}{,}{1.00408367286795}{,}{1.12382180698594}{,}{6.12489405742088}{,}{1.73455874316473}{,}{0.768614726420325}{,}{0.847927843659384}{,}{0.986512663470964}{,}{0.698727959797584}{,}{3.92913627230617}{,}{0.175053665325095}{,}{0.766021526865580}{,}{0.824342270393388}{,}{1.13334765419456}{,}{0.711657587065030}{,}{0.770692760235322}{,}{1.41448880126250}{,}{0.303786193914711}{,}{1.77313002567607}{,}{1.14242627239690}{,}{0.187153272460366}{,}{1.64318068472304}{,}{0.0677242654433320}{,}{1.74467629494726}{,}{0.942197905224504}{,}{3.93686196262379}{,}{1.37464352990915}{,}{0.132123068568680}{,}{0.661975501612703}{,}{0.562682944198943}{,}{3.37769562173023}{,}{7.45551414715125}{,}{2.27825821679005}{,}{0.787207052038140}{,}{0.893536131805811}{,}{0.0288423923036559}{,}{0.198625917123065}{,}{0.397359640500359}{,}{0.674513682487205}{,}{2.22185251351945}{,}{2.72910079406602}{,}{1.05990560187140}{,}{1.90877200031741}{,}{1.17811322686348}{,}{0.623255434767901}{,}{0.148586466959444}{,}{0.0348089457956684}{,}{0.0935976555979757}{,}{1.30952656470994}{,}{0.267717031802699}{,}{1.96999669465530}{,}{2.12941407563549}{,}{4.65959798811462}{,}{1.13287483466177}{,}{6.68301361518918}{,}{0.134582698819444}{,}{0.639257811582613}{,}{2.38102103703512}{,}{0.177907797753109}{,}{0.571544485347482}{,}{1.30542437378355}{,}{3.02387501674609}{,}{3.82103285497001}{,}{0.192208524671948}{,}{0.752208217811038}{,}{1.33855195145054}{,}{0.184210629107179}{,}{0.267159428045400}{,}{0.326236607133876}{,}{7.33112068381017}{,}{0.476462506483139}{,}{0.330948291033309}{,}{\dots }{,}{\text{⋯ 9900 Array entries not shown}}\right]$ (2)
 > $\mathrm{Statistics}:-\mathrm{DataSummary}\left(S,\mathrm{output}=\left[\mathrm{mean},\mathrm{standarddeviation}\right]\right)$
 $\left[{4.41583032222043}{,}{14.7026267487629}\right]$ (3)

Use a Maple procedure to compute the same expression.

 > $T≔\mathrm{TimeGrid}\left(3,100\right):$
 > $\mathrm{GX}≔\mathrm{PathGenerator}\left(X,T\right):$
 > $S≔\mathrm{SampleValues}\left(A↦\mathrm{exp}\left(A\left[101\right]\right),\mathrm{GX},\mathrm{replications}={10}^{4}\right)$
 ${S}{≔}\left[{2.16749690696658}{,}{1.92581945746518}{,}{109.663445642041}{,}{0.524804960855506}{,}{3.07377249620586}{,}{0.382504564315037}{,}{0.173820408814827}{,}{0.0159467389485480}{,}{1.61763812191258}{,}{22.2582077072271}{,}{2.61044144604259}{,}{0.825012631690815}{,}{1.95811729168074}{,}{3.63048504243646}{,}{2.92660838712406}{,}{0.226569601509066}{,}{4.48581970721509}{,}{10.2539160563969}{,}{0.318099978310601}{,}{0.781014455278512}{,}{0.638716056372978}{,}{1.80585345699252}{,}{0.785163564942726}{,}{0.277489985326825}{,}{0.941337496478544}{,}{1.13211598458954}{,}{0.943233156347417}{,}{1.00618510202393}{,}{4.12792161353585}{,}{0.817947479249068}{,}{1.92167473851863}{,}{0.274609339770901}{,}{1.89873765425056}{,}{4.47360172912083}{,}{0.356473139911768}{,}{0.0573164202980171}{,}{1.39568806877804}{,}{1.36197473888233}{,}{0.158981676006158}{,}{0.164438462328423}{,}{0.0247062797816718}{,}{0.268084054156798}{,}{0.344504778566193}{,}{0.310292473420457}{,}{0.674541152427587}{,}{3.10228073699263}{,}{22.6539641284195}{,}{2.39429936771416}{,}{1.52938143003988}{,}{2.54667409923705}{,}{0.0883816567195844}{,}{0.149409165214716}{,}{0.409851752321359}{,}{0.206499425484725}{,}{327.668397931675}{,}{3.41668658962569}{,}{1.04971720251303}{,}{1.16075642094956}{,}{0.390081968403811}{,}{2.07224781282497}{,}{0.551680990372143}{,}{0.131160356737339}{,}{1.20206785678950}{,}{1.12562372937987}{,}{8.07674037578014}{,}{1.18089349478941}{,}{4.64955580500277}{,}{5.44202178768405}{,}{0.0850086802149575}{,}{1.06549584749563}{,}{0.0937574496274228}{,}{5.35388133553867}{,}{0.198771306205444}{,}{1.54968208486960}{,}{0.218187518783366}{,}{1.35138950381499}{,}{0.101614089720201}{,}{0.223845454869427}{,}{0.774139806435231}{,}{2.34525186214857}{,}{0.131986760494163}{,}{1.80820685672173}{,}{0.0415746990466706}{,}{1.34200156873845}{,}{0.0705435385070892}{,}{1.50930486864921}{,}{0.495352381801947}{,}{5.44155623852390}{,}{10.8492281476671}{,}{0.764962287525907}{,}{10.2404061247024}{,}{2.22485504041863}{,}{1.58137442729369}{,}{0.803140915981988}{,}{3.78928388812035}{,}{3.25898179016103}{,}{0.617188849694234}{,}{0.0633914309067414}{,}{14.1444048473206}{,}{1.05764335203284}{,}{\dots }{,}{\text{⋯ 9900 Array entries not shown}}\right]$ (4)
 > $\mathrm{Statistics}:-\mathrm{DataSummary}\left(S,\mathrm{output}=\left[\mathrm{mean},\mathrm{standarddeviation}\right]\right)$
 $\left[{4.33299075633332}{,}{18.2389408161531}\right]$ (5)

Here is an example involving a multivariate stochastic process.

 > $\mathrm{\Sigma }≔⟨⟨1.0,0.5⟩|⟨0.5,1.0⟩⟩$
 ${\mathrm{\Sigma }}{≔}\left[\begin{array}{cc}{1.0}& {0.5}\\ {0.5}& {1.0}\end{array}\right]$ (6)
 > $W≔\mathrm{WienerProcess}\left(\mathrm{\Sigma }\right)$
 ${W}{≔}{\mathrm{_W0}}$ (7)
 > $S≔\mathrm{SampleValues}\left(\mathrm{max}\left(W\left(3\right)\left[1\right],W\left(3\right)\left[1\right]\right),\mathrm{timesteps}=100,\mathrm{replications}={10}^{4}\right)$
 ${S}{≔}\left[{-1.85197447075968}{,}{-1.48576176645055}{,}{-1.28182579782761}{,}{1.54636938768208}{,}{1.60973760948960}{,}{1.21392481167778}{,}{0.237578366245914}{,}{1.77012842257115}{,}{-3.27977667001489}{,}{1.43806416130787}{,}{-0.133206730732715}{,}{2.51068303710086}{,}{-0.503878345477417}{,}{2.20595417332139}{,}{2.06154435812612}{,}{1.34346819022566}{,}{-2.13916785204077}{,}{-2.72183419075443}{,}{-1.25292002421846}{,}{0.528428703520935}{,}{-0.0882188443932085}{,}{1.94230031100678}{,}{-7.36166511144165}{,}{-0.919457090653668}{,}{1.76293312977689}{,}{0.523994166019501}{,}{2.40104120251974}{,}{0.250516697694141}{,}{1.15212165197964}{,}{-1.65149510032587}{,}{-2.65426711960764}{,}{1.50249645935515}{,}{0.350392328609131}{,}{-0.736547811537105}{,}{-0.691643270179971}{,}{0.0872273102318422}{,}{-1.38726457580866}{,}{-1.71777000412730}{,}{-0.397977953584302}{,}{0.833625599326045}{,}{-0.0764767842151864}{,}{0.171058965344406}{,}{0.439739641725393}{,}{-0.246598399299562}{,}{-0.579890838794319}{,}{0.228208188103951}{,}{-0.625051384043242}{,}{-1.82034460508920}{,}{3.47080994545170}{,}{0.958993921434337}{,}{-0.967029653420528}{,}{1.88931878004798}{,}{1.58525968802935}{,}{1.69288579319122}{,}{0.0112123235522428}{,}{1.72547488232748}{,}{-0.784505469215478}{,}{1.77586955658532}{,}{-3.82648180727445}{,}{1.29894057758073}{,}{-0.202274293190250}{,}{-0.0116842932123617}{,}{0.779282269930217}{,}{0.111487450411034}{,}{-0.485176878705193}{,}{-0.0233396188037663}{,}{2.96620328778346}{,}{0.933449947998825}{,}{-0.676480259803459}{,}{2.01504082462300}{,}{1.92293374997620}{,}{-4.33782561057209}{,}{2.12824550277644}{,}{1.44121373036121}{,}{1.37574277973510}{,}{2.10831416750079}{,}{1.49335568623590}{,}{0.716090713097107}{,}{0.592425656617726}{,}{0.202859428614432}{,}{1.24818222577667}{,}{0.305691618171443}{,}{0.566343157842202}{,}{1.28942924481548}{,}{-0.653185019533822}{,}{2.50324334939808}{,}{0.423559148301451}{,}{0.226852850478709}{,}{2.24184488278003}{,}{2.06295558576420}{,}{0.0252338112369729}{,}{-2.51769320746222}{,}{2.93335019638047}{,}{2.32366820495143}{,}{-0.968056161060520}{,}{-1.04725995976020}{,}{-1.11347916658366}{,}{0.568045187487876}{,}{1.37473213656601}{,}{0.956323686767538}{,}{\dots }{,}{\text{⋯ 9900 Array entries not shown}}\right]$ (8)
 > $\mathrm{Statistics}:-\mathrm{DataSummary}\left(S,\mathrm{output}=\left[\mathrm{mean},\mathrm{standarddeviation}\right]\right)$
 $\left[{0.0106647008230180}{,}{1.72908152039724}\right]$ (9)

Here is the same computation using Maple procedures.

 > $T≔\mathrm{TimeGrid}\left(3,100\right):$
 > $\mathrm{GW}≔\mathrm{PathGenerator}\left(W,T\right):$
 > $S≔\mathrm{SampleValues}\left(A↦\mathrm{max}\left(A\left[1\right]\left[101\right],A\left[2\right]\left[101\right]\right),\mathrm{GW},\mathrm{replications}={10}^{5}\right)$
 ${S}{≔}\left[{0.129898327689225}{,}{3.21270672015347}{,}{2.45722316534870}{,}{-1.52624018098040}{,}{-0.669246229100462}{,}{3.49552935463858}{,}{-0.426897345144026}{,}{2.66349725467885}{,}{0.533036939262385}{,}{1.43425488897527}{,}{-0.340688419225138}{,}{1.53230959479004}{,}{-1.37237946198679}{,}{-0.493013300884421}{,}{0.383578693198442}{,}{4.98066469394306}{,}{-0.877932754435624}{,}{0.939058077852853}{,}{-2.33921666438298}{,}{2.16241863934804}{,}{1.09044189880999}{,}{-2.14503621280013}{,}{1.08659125492839}{,}{0.622673615780537}{,}{0.659661527567983}{,}{0.550055831961727}{,}{-0.377760696578159}{,}{1.10196181247963}{,}{0.340369029368931}{,}{-0.542096314728976}{,}{-1.10921381188437}{,}{-0.445213707529413}{,}{0.158449220987581}{,}{1.59205440592754}{,}{0.743587378813304}{,}{2.39007261546775}{,}{0.0656937515353234}{,}{1.69121851804874}{,}{1.72212660874399}{,}{3.16751674956642}{,}{-0.602077600608579}{,}{0.710829275190618}{,}{0.000800779069593693}{,}{0.369986649059493}{,}{-0.995654630169400}{,}{-0.347521237158588}{,}{-0.442213671870280}{,}{0.687172018046497}{,}{1.37376584855023}{,}{1.42043297331622}{,}{-1.14881552946753}{,}{-2.95620221147307}{,}{3.33215678939604}{,}{1.47188056318928}{,}{2.35595858047238}{,}{2.46858817912888}{,}{0.360906939162110}{,}{0.788134891340611}{,}{-0.319946751718649}{,}{3.71874200891023}{,}{-1.84201535215095}{,}{4.48872802172019}{,}{1.54566767915919}{,}{0.549868429388788}{,}{0.838952955216268}{,}{0.989518945228436}{,}{-0.580385586587876}{,}{3.88501237929158}{,}{1.22872749072400}{,}{1.30070444924602}{,}{-1.03148690485459}{,}{0.342622676275913}{,}{0.785108359234092}{,}{-0.422599301423837}{,}{3.36285843383308}{,}{-2.41215674279361}{,}{0.745346293821798}{,}{-0.873949411891882}{,}{0.442700766942647}{,}{-0.177349030601535}{,}{-0.419759377423194}{,}{-1.68480709779472}{,}{0.237687397464472}{,}{-0.376821073767247}{,}{-0.465330388249173}{,}{0.355385836328520}{,}{1.63492713130215}{,}{-0.0993851173501969}{,}{-0.711928618411475}{,}{0.232113474915863}{,}{1.29630871351274}{,}{0.637984966288694}{,}{2.73001123433500}{,}{2.66324915858738}{,}{0.240132086860656}{,}{4.57199980626614}{,}{3.87392681930996}{,}{0.725694990762872}{,}{2.45845558919378}{,}{1.78110918963859}{,}{\dots }{,}{\text{⋯ 99900 Array entries not shown}}\right]$ (10)
 > $\mathrm{Statistics}:-\mathrm{DataSummary}\left(S,\mathrm{output}=\left[\mathrm{mean},\mathrm{kurtosis},\mathrm{standarddeviation}\right]\right)$
 $\left[{0.698559577951287}{,}{3.01709634240065}{,}{1.58748095181072}\right]$ (11)

Use a two-dimensional Ito process using two one-dimensional projections and a given covariance matrix.

 > $X≔\mathrm{GeometricBrownianMotion}\left(100.0,0.05,0.3,t\right)$
 ${X}{≔}{\mathrm{_X2}}$ (12)
 > $Y≔\mathrm{GeometricBrownianMotion}\left(100.0,0.07,0.2,t\right)$
 ${Y}{≔}{\mathrm{_X3}}$ (13)
 > $\mathrm{\Sigma }≔⟨⟨1|0.5⟩,⟨0.5|1⟩⟩$
 ${\mathrm{\Sigma }}{≔}\left[\begin{array}{cc}{1}& {0.5}\\ {0.5}& {1}\end{array}\right]$ (14)
 > $Z≔\mathrm{ItoProcess}\left(⟨X,Y⟩,\mathrm{\Sigma }\right)$
 ${Z}{≔}{\mathrm{_X4}}$ (15)
 > $\mathrm{Drift}\left(Z\left(t\right)\right)$
 $\left[\begin{array}{c}{0.05}{}{{\mathrm{_X4}}{}\left({t}\right)}_{{1}}\\ {0.07}{}{{\mathrm{_X4}}{}\left({t}\right)}_{{2}}\end{array}\right]$ (16)
 > $\mathrm{Diffusion}\left(Z\left(t\right)\right)$
 $\left[\begin{array}{cc}{0.3}{}{{\mathrm{_X4}}{}\left({t}\right)}_{{1}}& {0.15}{}{{\mathrm{_X4}}{}\left({t}\right)}_{{1}}\\ {0.10}{}{{\mathrm{_X4}}{}\left({t}\right)}_{{2}}& {0.2}{}{{\mathrm{_X4}}{}\left({t}\right)}_{{2}}\end{array}\right]$ (17)
 > $\mathrm{SampleValues}\left(\mathrm{max}\left(X\left(1\right)-Y\left(1\right),0\right),\mathrm{timesteps}=100,\mathrm{replications}={10}^{4}\right)$
 $\left[{0.}{,}{44.6306082395322}{,}{0.}{,}{0.}{,}{0.}{,}{12.1413595662860}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{4.56804725151919}{,}{19.5755658044951}{,}{48.2320639236171}{,}{28.1523170712771}{,}{0.}{,}{0.}{,}{6.48994100951290}{,}{0.}{,}{0.}{,}{0.}{,}{41.2315988951763}{,}{20.9925028381969}{,}{12.7957617807979}{,}{1.56107041148682}{,}{0.}{,}{12.5593436685251}{,}{0.}{,}{1.91519602951571}{,}{0.}{,}{4.14600739870373}{,}{0.}{,}{0.}{,}{129.296487698606}{,}{0.374718138171801}{,}{0.}{,}{13.6139296161439}{,}{91.1745330341620}{,}{9.74943856681925}{,}{34.6477415560453}{,}{0.}{,}{2.56965630438843}{,}{0.}{,}{34.0791699411268}{,}{0.}{,}{22.1000240464753}{,}{55.5959928836357}{,}{0.}{,}{0.}{,}{30.7888058227003}{,}{0.}{,}{29.9177790855399}{,}{0.}{,}{0.930864195187269}{,}{0.}{,}{0.}{,}{24.0922592082853}{,}{21.2829767082471}{,}{0.}{,}{0.}{,}{0.}{,}{77.0514057919691}{,}{0.}{,}{0.}{,}{41.6197006593790}{,}{0.}{,}{20.1035464531464}{,}{0.}{,}{0.}{,}{9.26993931524626}{,}{0.}{,}{0.}{,}{0.}{,}{18.2120531218750}{,}{49.1994409503334}{,}{9.60456555744568}{,}{0.}{,}{0.}{,}{32.7646769126014}{,}{0.}{,}{18.4434230087190}{,}{13.9799342357387}{,}{16.5881758938268}{,}{0.}{,}{13.4966541696076}{,}{0.}{,}{0.}{,}{0.}{,}{17.3053597352438}{,}{0.}{,}{0.}{,}{44.4825285061130}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{12.3576683130364}{,}{44.1007054351072}{,}{1.26837208631549}{,}{0.}{,}{22.1200502135125}{,}{\dots }{,}{\text{⋯ 9900 Array entries not shown}}\right]$ (18)
 > $\mathrm{SampleValues}\left(\mathrm{max}\left(Z\left(1\right)\left[1\right]-Z\left(1\right)\left[2\right],0\right),\mathrm{timesteps}=100,\mathrm{replications}={10}^{4}\right)$
 $\left[{5.84380988543309}{,}{0.}{,}{8.98141387593792}{,}{0.}{,}{0.}{,}{35.6774069120850}{,}{0.}{,}{0.}{,}{21.1526449792633}{,}{16.5834672214387}{,}{22.3711090133882}{,}{0.}{,}{0.}{,}{0.}{,}{25.6688252731086}{,}{0.}{,}{0.}{,}{13.0312274389995}{,}{29.0887598516420}{,}{0.}{,}{4.59507496270446}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{9.00367920788355}{,}{0.}{,}{15.7609820161445}{,}{0.}{,}{55.7703863656967}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{11.8851826725506}{,}{0.}{,}{0.584796036351221}{,}{0.}{,}{1.66805643582467}{,}{25.8291998923341}{,}{27.7399778586972}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{46.5630359662222}{,}{23.6895756802977}{,}{8.94570054105368}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{16.2302162754472}{,}{0.}{,}{0.}{,}{37.9080028669640}{,}{0.}{,}{2.20448949338937}{,}{34.0347304218908}{,}{18.2224653192512}{,}{14.1159197899138}{,}{0.}{,}{0.}{,}{37.8937248883393}{,}{0.}{,}{53.6769959099096}{,}{0.}{,}{0.}{,}{2.41182178999338}{,}{0.}{,}{22.2364367614218}{,}{0.}{,}{0.}{,}{4.30388202757661}{,}{0.}{,}{0.}{,}{0.}{,}{31.5274407914313}{,}{3.56512022202016}{,}{24.3417624107771}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{46.3213990242924}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{0.}{,}{11.4043379244820}{,}{0.}{,}{3.92282856619879}{,}{0.}{,}{0.}{,}{0.}{,}{\dots }{,}{\text{⋯ 9900 Array entries not shown}}\right]$ (19)

References

 Glasserman, P., Monte Carlo Methods in Financial Engineering. New York: Springer-Verlag, 2004.
 Hull, J., Options, Futures, and Other Derivatives, 5th. edition. Upper Saddle River, New Jersey: Prentice Hall, 2003.
 Kloeden, P., and Platen, E., Numerical Solution of Stochastic Differential Equations, New York: Springer-Verlag, 1999.

Compatibility

 • The Finance[SampleValues] command was introduced in Maple 15.
 • For more information on Maple 15 changes, see Updates in Maple 15.