我用PDF ^(0,1)[NormalDistribution,...]和CDF ^(0,1)[NormalDistribution,...]获得表达式,该函数是函数第二个参数的派生形式。
我如何要求Mathematica进一步“转换”这些表达式以获得仅包含PDF [NormalDistribution,...]的最终表达式?
感谢您的帮助!
flnl[x1_, x2_] :=
Log[CDF[NormalDistribution, (x1)]*PDF[NormalDistribution, x1] +
CDF[NormalDistribution, x2]*PDF[NormalDistribution, x2 ]]
In[76]:= D[flnl[x1,x2],x1]
Out[76]= (PDF[NormalDistribution,x1] (CDF^(0,1))[NormalDistribution,x1]+CDF[NormalDistribution,x1] (PDF^(0,1))[NormalDistribution,x1])/(CDF[NormalDistribution,x1] PDF[NormalDistribution,x1]+CDF[NormalDistribution,x2] PDF[NormalDistribution,x2])
答案 0 :(得分:0)
检查语法。请参阅CDF-概述和扩展中的示例。
您需要使用功能括弧,即NormalDistribution[]
。
flnl[x1_, x2_] :=
Log[CDF[NormalDistribution[], (x1)]*PDF[NormalDistribution[], x1] +
CDF[NormalDistribution[], x2]*PDF[NormalDistribution[], x2]]