維納過程的數值模擬

import numpy as np from matplotlib import pyplot as plt T=100 mu, sigma = 0.002, 0.1 # 均值和標準差 N=int(T/sigma) s = np.random.normal(mu, sigma, N) z=np.cumsum(s)*np.sqrt(sigma) t=list(range(N))
相關文章
相關標籤/搜索