DAX 正态分布

DAX Normal Distribution

我正在 DAX 中寻找与 Excel 中的 NORM.DIST 函数类似的函数。我有一个 X 值、平均值和标准差,我正在寻找累积分布(精度至少为 6 sigma)。

我已经搜索过 DAX statistical functions, but I could not find any function that does this. I'm looking for the most economical way to perform this calculation. Is the Bell approximation 最佳路线的官方列表?这将在大约 10,000 行的 table 上迭代。

=.5*(1+SIGN([X])*(1-EXP(-2*([X])/[Sigma])^2/PI()))^.5)

对我有用。这可能是最快的方式,这可能不是。 Idk.

编辑

最大误差 = .0031458

 SIGN([X])*0.5*(1-(1/30)*(7*EXP(-([X]^2)/2)+16*EXP(-([X]^2)*(2-SQRT(2)))+(7+0.25*PI()*[X]^2)*EXP(-([X]^2))))^0.5+0.5

假设 [X] 已经标准化。最大误差 = .0000304

错误:

与之前的解决方案相比:

http://mathworld.wolfram.com/NormalDistributionFunction.html (14)