<jupyter_start><jupyter_text>Problem 3.5_Consider the SCM $X\gets Y^2+N_X,Y\gets N_Y$ and $N_X,N_Y$ unit normal. Generate 200 iid samples._Like all DAG SCMs, just generate in topological order of the graph.<jupyter_code>y = np.random.randn(200)
x = y ** 2 + np.random.randn(200)
sns.scatterplot(x, y)
plt.xlabel('X')
plt.ylabel('Y')
plt.show()<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup