CoxIngersollRossProcess[μ,σ,θ,x0]
表示 Cox–Ingersoll–Ross过程,其中长期均值为μ,波动率为 σ,调整速度为 θ,初始条件为 x0.
CoxIngersollRossProcess
CoxIngersollRossProcess[μ,σ,θ,x0]
表示 Cox–Ingersoll–Ross过程,其中长期均值为μ,波动率为 σ,调整速度为 θ,初始条件为 x0.
更多信息
- CoxIngersollRossProcess 也称为 CIR 过程.
- CoxIngersollRossProcess 是一个连续时间连续状态随机过程.
- Cox–Ingersoll–Ross 过程的状态
满足微分方程
,其中
服从标准WienerProcess[]. - CoxIngersollRossProcess 允许 x0 为任意正实数,σ 为任意非零实数,θ 和 μ 为具有相同符号的任意非零实数.
- CoxIngersollRossProcess 可以与诸如 Mean、PDF、Probability 和 RandomFunction 等函数一起使用.
范例
打开所有单元 关闭所有单元基本范例 (3)
data = RandomFunction[CoxIngersollRossProcess[.3, .5, 1, 2], {0, 1, 0.01}]ListLinePlot[data, Filling -> Axis]Mean[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t]]Variance[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t]]CovarianceFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]], s, t]Plot3D[CovarianceFunction[CoxIngersollRossProcess[.3, .5, 1, 2], s, t], {s, 0, 5}, {t, 0, 5}, ColorFunction -> "Rainbow"]范围 (14)
基本用法 (9)
模拟 Cox–Ingersoll–Ross 过程的随机路径集合:
data = RandomFunction[CoxIngersollRossProcess[.3, .5, 1, 2], {0, 1, 0.01}, 3]ListLinePlot[data, Filling -> Axis]RandomFunction[CoxIngersollRossProcess[1 / 10, 1 / 3, 1, 2], {0, 1, 1 / 4}, WorkingPrecision -> 20]["Path"]sample[μ_] := (SeedRandom[14];RandomFunction[CoxIngersollRossProcess[μ, .3, .4, 1], {0, 1, .01}])ListStepPlot[sample[#], Filling -> Axis, PlotLabel -> StringJoin["μ = ", ToString[#]]]& /@ {.3, 1, 2}sample[σ_] := (SeedRandom[1];RandomFunction[CoxIngersollRossProcess[.5, σ, .4, 1], {0, 1, .01}])ListStepPlot[sample[#], Filling -> Axis, PlotLabel -> StringJoin["σ = ", ToString[#]]]& /@ {-1, 0.2, 1}sample[θ_] := (SeedRandom[1];RandomFunction[CoxIngersollRossProcess[.5, 1, θ, 1], {0, 1, .01}])ListStepPlot[sample[#], Filling -> Axis, PlotLabel -> StringJoin["θ = ", ToString[#]]]& /@ {0.2, 1, 4}模拟不同起始点的 Cox–Ingersoll–Ross 过程:
proc[x_] := CoxIngersollRossProcess[1, .4, .3, x];pts = {.5, 1, 3};SeedRandom[2];
ListLinePlot[RandomFunction[proc[#], {0, 10, .01}]& /@ pts, Filling -> Axis, PlotLegends -> (StringJoin["x = ", ToString[#]]& /@ pts)]data = RandomFunction[CoxIngersollRossProcess[.3, .5, 1, 2], {0, 100, 0.01}];EstimatedProcess[data, CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]]]CorrelationFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]], s, t]AbsoluteCorrelationFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]], s, t]过程切片性质 (5)
proc = CoxIngersollRossProcess[.3, .5, 1, 2];times = {.5, 1, 2};Plot[Evaluate@Table[PDF[proc[t], x], {t, times}], {x, 0, 3}, Filling -> Axis, PlotLegends -> {StringJoin["t = ", ToString[#]]& /@ times}]PDF[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], x]Plot3D[PDF[CoxIngersollRossProcess[-.9, 1.2, -2.1, 3][{1, 2}], {x, y}], {x, 0, 10}, {y, 0, 15}]PDF[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][{1, 2}], {x, y}]Expectation[x[t] ^ 2, xCoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]]]Probability[x[t] < 6, xCoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]]]Skewness[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t]]//Simplify[#, σ > 0]&Kurtosis[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t]]//SimplifyMoment[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], r]CharacteristicFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], w]MomentGeneratingFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], w]CentralMoment 及其母函数:
CentralMoment[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], 2]CentralMomentGeneratingFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], w]FactorialMoment 及其母函数:
FactorialMoment[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], 2]FactorialMomentGeneratingFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], w]Cumulant 及其母函数:
Cumulant[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], r]CumulantGeneratingFunction[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]][t], w]属性和关系 (3)
WeakStationarity[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]]]Table[Plot[NProbability[(x[5] <= Subscript[x, 2])(x[2] == Subscript[x, 1]), xCoxIngersollRossProcess[.3, 1, .3, 1.2]], {Subscript[x, 2], 0, 6}, Filling -> Axis, PlotLabel -> Row[{"SubscriptBox[x, 1] = ", Subscript[x, 1]}]], {Subscript[x, 1], {.3, 1, 2.3, 3}}]Cox–ingersoll–Ross 过程是一个特殊的 ItoProcess:
ItoProcess[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]]]StratonovichProcess 也是如此:
StratonovichProcess[CoxIngersollRossProcess[μ, σ, θ, Subscript[x, 0]]]巧妙范例 (3)
SeedRandom[103];sample = RandomFunction[CoxIngersollRossProcess[.3, .5, 1, 2], {0, 1, .001}, 2]["ValueList"];ListLinePlot[Transpose@sample, ColorFunction -> "FallColors"]proc = CoxIngersollRossProcess[-.4, .5, -1.3, 2];
SeedRandom[123];
sample = Table[RandomFunction[proc, {0, 1, 0.01}, 3]["ValueList"], {6}];Graphics3D@Table[{ColorData["SolarColors"][RandomReal[]], Tube@Line@sample[[i]]}, {i, 6}]模拟 Cox–Ingersoll–Ross 过程的500个路径:
data = RandomFunction[CoxIngersollRossProcess[.4, .5, .3, 2], {0, 1, .01}, 500];sd = data["SliceData", 1];cf = ColorData["Rainbow"];
sliced = BarChart[Last[#], Axes -> False, BarOrigin -> Left, AspectRatio -> 4, ChartStyle -> (cf /@ Rescale[MovingAverage[First[#], 2], {Min[sd], Max[sd]}, {0, 1}]), ImageSize -> 62]&[HistogramList[sd, {Range[Min[sd], Max[sd], (Max[sd] - Min[sd]) / 20]}]];ListLinePlot[data, ImageSize -> 400, PlotRange -> All,
AspectRatio -> 3 / 4, Epilog -> Inset[sliced, {1.01, 2}, {0, 10}], PlotStyle -> (cf /@ Rescale[sd]), BaseStyle -> Directive[Thin, Opacity[0.5]], PlotRangePadding -> {{0, .25}, {.5, .5}}]文本
Wolfram Research (2012),CoxIngersollRossProcess,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CoxIngersollRossProcess.html.
CMS
Wolfram 语言. 2012. "CoxIngersollRossProcess." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CoxIngersollRossProcess.html.
APA
Wolfram 语言. (2012). CoxIngersollRossProcess. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CoxIngersollRossProcess.html 年
BibTeX
@misc{reference.wolfram_2026_coxingersollrossprocess, author="Wolfram Research", title="{CoxIngersollRossProcess}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/CoxIngersollRossProcess.html}", note=[Accessed: 12-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_coxingersollrossprocess, organization={Wolfram Research}, title={CoxIngersollRossProcess}, year={2012}, url={https://reference.wolfram.com/language/ref/CoxIngersollRossProcess.html}, note=[Accessed: 12-September-2026]}