|
SOLUTIONS
|
MATHEMATICA 内置符号
NExpectation
NExpectation[expr, x
dist]
假定 x 服从概率分布 dist,给出 expr 的数值期望.
NExpectation[expr, {x1, x2, ...}
dist]
假定
服从多元分布 dist,给出 expr 的数值期望.
NExpectation[expr, {x1
dist1, x2
dist2, ...}]
假定
、
、... 独立且服从分布
、
、...,给出 expr 的数值期望.
NExpectation[expr
pred, ...]
已知 pred,给出 expr 的数值条件期望.
更多信息更多信息
可以用 x EscdistEsc dist 或
输入.
可以用 expr EsccondEsc pred 或
输入. - NExpectation 与 Expectation 作用相似,只是使用的是数值加和与积分法.
- 对于一个连续分布 dist,expr 的期望由
给出,其中
是 dist 的概率密度函数,并且积分在 dist 的定义域上进行. - 对于一个离散分布 dist,expr 的概率由
给出,其中
是 dist 的概率密度函数,并且加和在 dist 的定义域上进行. - NExpectation[expr, {x1
dist1, x2
dist2}] 对应于 NExpectation[NExpectation[expr, x2
dist2], x1
dist1], 因此最后一个变量首先进行加和或积分. - 如果无法得到符号式期望,N[Expectation[...]] 将调用 NExpectation.
- 可以给定下列选项:
-
AccuracyGoal ∞ 所求绝对准确度的位数 PrecisionGoal Automatic 所求精度的位数 WorkingPrecision MachinePrecision 内部计算所用的精度 Method Automatic 要使用何种方法
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

