CUDALink`
CUDALink`

CUDAFinancialDerivative

CUDAFinancialDerivative[instrument,params,ambientparams]

gives the value of the specified financial instrument.

CUDAFinancialDerivative[instrument,params,ambientparams,prop]

computes the specified property prop.

更多信息和选项

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • Valid values for instrument are:
  • "European"European option
    "American"American option
    "AsianArithmetic"arithmetic mean Asian option
    "AsianGeometric"geometric mean Asian option
    "BarrierDownIn"barrier down-and-in option
    "BarrierDownOut"barrier down-and-out option
    "BarrierUpIn"barrier up-and-in option
    "BarrierUpOut"barrier up-and-out option
    "LookbackFixed"European fixed-strike lookback option
    "LookbackFloating"European floating-strike lookback option
  • Valid values for param are:
  • "StrikePrice"strike price
    "Expiration"expiration date, or time until expiration
    "Barriers"barrier level
  • Valid values for ambientparams are:
  • "CurrentPrice"price of the underlying asset at the reference time
    "Dividend"dividend paid per time unit
    "Volatility"current volatility of the underlying asset
    "InterestRate"risk-free interest rate
    "ExchangeRate"current price of the foreign currency
    "ExchangeVolatility"volatility of the foreign exchange
    "ForeignInterestRate"risk-free interest rate in the foreign currency
    "Correlation"correlation matrix for underlying assets
    "Rebate"rebate paid to option holder if the option expires void
  • Valid values for prop are:
  • "Charm"derivative of "Delta" with respect to the time until expiration
    "Color"derivative of "Gamma" with respect to the time until expiration
    "Delta"derivative of "Value" with respect to the time until expiration
    "Gamma"derivative of "Delta" with respect to the current price
    "Rho"derivative of the value with respect to the interest rate
    "Speed"derivative of "Gamma" with respect to the current price
    "Theta"derivative of the value with respect to the time until expiration
    "Value"value on the reference date
    "Vanna"derivative of "Vega" with respect to the current price
    "Vega"derivative of the value with respect to the volatility
    "Zomma"derivative of "Gamma" with respect to volatility
  • The following options can be given:
  • "Device"AutomaticCUDA device used in computation
    MethodAutomaticspecify method to be used in calculation; other possible values are "BlackScholes", "Binomial", and "MonteCarlo"
    "DerivativeMethod"Automaticspecify method to be used for calculating mathematical derivatives

范例

打开所有单元关闭所有单元

基本范例  (2)

First, load the CUDALink application:

This generates random numbers:

This computes the price of Asian arithmetic call options corresponding to the random data:

Note that Asian arithmetic options require Monte Carlo pricing, so repeated runs will produce slightly differing results:

This generates random numbers:

This computes the first-order derivative of price with respect to volatility ("Rho") for American put options specified by the random data:

Scope  (1)

This implementation is considerably faster than FinancialDerivative. To demonstrate, this generates random numbers:

This computes the European call option price:

Compare with FinancialDerivative:

Wolfram Research (2010),CUDAFinancialDerivative,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAFinancialDerivative.html.

文本

Wolfram Research (2010),CUDAFinancialDerivative,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAFinancialDerivative.html.

CMS

Wolfram 语言. 2010. "CUDAFinancialDerivative." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAFinancialDerivative.html.

APA

Wolfram 语言. (2010). CUDAFinancialDerivative. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDAFinancialDerivative.html 年

BibTeX

@misc{reference.wolfram_2024_cudafinancialderivative, author="Wolfram Research", title="{CUDAFinancialDerivative}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDAFinancialDerivative.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cudafinancialderivative, organization={Wolfram Research}, title={CUDAFinancialDerivative}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAFinancialDerivative.html}, note=[Accessed: 22-November-2024 ]}