金融的计算数学|MATH3311 Computational Mathematics for Finance

联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981

In the end, finance is concerned with making definite numerical recommendations which frequently can only be made by analysing sophisticated models using high-speed computers. This course studies the design, implementation and use of computer programs to solve practical mathematical problems of relevance to finance, insurance and risk management. A review of MATLAB, floating point numbers, rounding error and computational complexity. A selection of topics from: approximation and parameter estimation, Fourier series and the FFT, finite difference approximations, partial differential equations (heat equation), sparse linear systems, non-linear algebraic equations, trees, Monte Carlo methods and simulation, random numbers and variance reduction, numerical integration. Computing environments for mathematical finance. Practical examples and programming assignments using MATLAB.

这是一份unsw新南威尔士大学MATH3311 的成功案例

金融的计算数学|MATH3311 Computational Mathematics for Finance

问题 1.

Suppose we have uniformly distributed numbers on [0,1][0,1], i.e. the probability of obtaining a number between xx and x+dxx+d x isp(x)dx=dx;0≤x≤1?=0;?otherwise? begin{aligned} p(x) d x &=d x ; quad 0 leq x leq 1 &=0 ; quad text { otherwise } end{aligned}

证明 .

Let’s take a function of this random variable y(x)y(x). How is y(x)y(x) distributed Let p^(y) hat{p}(y) be the probability distribution of obtaining yy in [y,y+dy][y, y+d y]. Consequently, we must have (recall the law of transformation of probabilities)p(x)|dx|=p^(y)|dy| p(x)|d x|= hat{p}(y)|d y| orp^(y)=p(x)|dxdy| hat{p}(y)=p(x) left| frac{d x}{d y} right| Suppose we want p^(y) hat{p}(y) to be normal,p^(y)=e?y2/22π. hat{p}(y)= frac{e^{-y^{2} / 2}}{ sqrt{2 pi}} . If we start with a uniform distribution, p(x)=1p(x)=1 on [0,1][0,1], then from equations (4.15-4.16) we obtaindxdy=e?y2/22π frac{d x}{d y}= frac{e^{-y^{2} / 2}}{ sqrt{2 pi}} Now, for x∈[0,1]x in[0,1], we have that the probability of obtaining a number in [0,x][0, x] is∫0xdx′=x int_{0}^{x} d x^{ prime}=x but from equation (4.17) we havedx′=e?(y′)2/22πdy′. d x^{ prime}= frac{e^{- left(y^{ prime} right)^{2} / 2}}{ sqrt{2 pi}} d y^{ prime} . So, there exists a yy such that the probability of getting a y′y^{ prime} in [?∞,y][- infty, y] is equal to the probability of getting x′x^{ prime} in [0,x][0, x],∫0xdx′=∫?∞ye?(y′)2/22πdy′ int_{0}^{x} d x^{ prime}= int_{- infty}^{y} frac{e^{- left(y^{ prime} right)^{2} / 2}}{ sqrt{2 pi}} d y^{ prime} orx=∫?∞ye?(y′)2/22πdy′. x= int_{- infty}^{y} frac{e^{- left(y^{ prime} right)^{2} / 2}}{ sqrt{2 pi}} d y^{ prime} . So, if we generate uniformly distributed numbers xx on [0,1][0,1], then to determine yy which are N(0,1)N(0,1), we do the following

Generate xxFind yy such thatx=12π∫?∞ye?(y′)2/2dy′. x= frac{1}{ sqrt{2 pi}} int_{- infty}^{y} e^{- left(y^{ prime} right)^{2} / 2} d y^{ prime} . We can write this last step asy=F(x) y=F(x) where F(x)F(x) is the inverse cumulative normal distribution.

问题 2.

Recall that ifdS=μSdt+σSdZ d S= mu S d t+ sigma S d Z then from Ito’s Lemma we haved[log?S]=[μ?σ22]dt+σdZ d[ log S]= left[ mu- frac{ sigma^{2}}{2} right] d t+ sigma d Z

证明 .

Now, suppose that we observe asset prices at discrete times tit_{i}, i.e. S(ti)=SiS left(t_{i} right)=S_{i}, with Δt=ti+1?ti Delta t=t_{i+1}-t_{i}. Then from equation (9.2) we havelog?Si+1?log?Si=log?(Si+1Si)??[μ?σ22]Δt+σ?Δt begin{aligned} log S_{i+1}- log S_{i} &= log left( frac{S_{i+1}}{S_{i}} right) & simeq left[ mu- frac{ sigma^{2}}{2} right] Delta t+ sigma phi sqrt{ Delta t} end{aligned} where ? phi is N(0,1)N(0,1). Now, if Δt Delta t is sufficiently small, then Δt Delta t is much smaller than Δt sqrt{ Delta t}, so that equation (9.3) can be approximated bylog?(Si+1?Si+SiSi)=log?(1+Si+1?SiSi)??σ?Δt begin{aligned} log left( frac{S_{i+1}-S_{i}+S_{i}}{S_{i}} right) &= log left(1+ frac{S_{i+1}-S_{i}}{S_{i}} right) & simeq sigma phi sqrt{ Delta t} end{aligned} Define the return RiR_{i} in the period ti+1?tit_{i+1}-t_{i} asRi=Si+1?SiSi R_{i}= frac{S_{i+1}-S_{i}}{S_{i}} so that equation (9.4) becomeslog?(1+Ri)?Ri=σ?Δt log left(1+R_{i} right) simeq R_{i}= sigma phi sqrt{ Delta t} Consequently, a plot of the discretely observed returns of SS should be normally distributed, if the assumption (9.1) is true. In Figure 9.19.1 we can see a histogram of log monthly returns from the TSX composite index for the period 1979?201241979-20124. The histogram has been scaled to zero mean and unit standard deviation. A standard normal distribution is also shown. Note that for real data, there is a higher peak, and fatter tails than the normal distribution. This means that there is higher probability of zero return, or a large gain or loss compared to a normal distribution.

最后,金融学关注的是提出明确的数字建议,而这些建议往往只能通过使用高速计算机分析复杂的模型来实现。本课程研究计算机程序的设计、实现和使用,以解决与金融、保险和风险管理相关的实际数学问题。回顾MATLAB、浮点数、舍入误差和计算复杂性。选择的主题有:近似和参数估计,傅里叶级数和FFT,有限差分近似,偏微分方程(热方程),稀疏线性系统,非线性代数方程,树,蒙特卡洛方法和模拟,随机数和方差减少,数值积分。数学金融的计算环境。使用MATLAB的实际例子和编程作业。

发表回复