Curated · Approximate Inference Through Sampling

NAT · 1 mark · Problem AI-UNCR-0028

In the network \(A\to B\) (binary), \(P(A=1)=0.4\), \(P(B=1\mid A=1)=0.7\) and \(P(B=1\mid A=0)=0.2\). Prior sampling sets a variable to \(1\) when its uniform random number \(u\) satisfies \(u<P(\text{variable}=1\mid\text{parents})\). Four samples use the pairs \((u_A,u_B)\):\[(0.35,\ 0.80),\quad (0.62,\ 0.15),\quad (0.10,\ 0.65),\quad (0.90,\ 0.25).\]The resulting estimate of \(P(B=1)\) is .

Numerical answer (NAT).

Solve it on GATE DA practice →More Reasoning Under Uncertainty problems

Show the worked solution\[\boxed{x=1 \iff u<P(x=1\mid\text{parents})}\]Sample 1: \(A=1\) (\(0.35<0.4\)); \(B\): \(0.80\ge0.7\), so \(B=0\).Sample 2: \(A=0\); \(B\): \(0.15<0.2\), so \(B=1\).Sample 3: \(A=1\); \(B\): \(0.65<0.7\), so \(B=1\).Sample 4: \(A=0\); \(B\): \(0.25\ge0.2\), so \(B=0\).Estimate \(=2/4=0.5\) (the true value is \(0.4(0.7)+0.6(0.2)=0.4\); four samples are noisy).Answer: 0.5

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com