知识卡片
按条件依次采样恢复联合
若联合分解为P(Z)P(X|Z)P(Y|X),可先采Z,再按该z采X,最后按该x采Y。重复得到符合此联合模型的样本。执行顺序表达概率依赖;只有附加因果假设后,才可把这些步骤解释为现实生成机制。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 概率生成建模入门
原书出处 · 1 处
- · 查看原书依据
generator.forward_sample(size=1) #7 #1 P(Z) #2 P(X|Z=z) #3 P(X|Z=z) #4 P(Y|X=x) #5 Create a BayesianNetwork object. The arguments are edges of a directed graph, which we’ll cover in chapter 3. #6 Add the conditional probability distributions to the model. #7 Create a BayesianModelSampling object from the BayesianNetwork object. #8 Sample from the resulting object This produces one row in a pandas DataFrame, shown in figure 2.17.
参考来源
- 位置:《Causal AI》第02章《概率生成建模入门》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-2.xhtml)
- 结论依据:摘录中关于按条件依次采样恢复联合的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:generator.forward_sample(size=1) #7 #1 P(Z) #2 P(X|Z=z) #3 P(X|Z=z) #4 P(Y|X=x) #5 Create a BayesianNetwork object. The arguments are edges of a directed graph, which we’ll cover in chapter 3. #6 Add the conditional probability distributions to the model. #7 Create a BayesianModelSampling object from the BayesianNetwork object. #8 Sample from the resulting object This produces one row in a pandas DataFrame, shown in figure 2.17.