Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何在 GAMS 中定义以下概率吗?
Z=P(x<y)
谢谢
您需要使用累积分布函数 (CDF)。要计算 P(x < y),只需将 y 的值输入 CDF。例如,均匀分布 U(0,1) 的累积分布函数为 f(x) = x。概率 P(x < 0.4) 是 f(0.4) = 0.4。
这也适用于更复杂的 CDF,只要它们可以在 GAMS 中表示。