Skip to content

Instantly share code, notes, and snippets.

@akelleh
Created August 20, 2016 20:56
Show Gist options
  • Save akelleh/2e74983e27fa30695f5da470a2306eea to your computer and use it in GitHub Desktop.
Save akelleh/2e74983e27fa30695f5da470a2306eea to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"size = 1000\n",
"y = np.random.normal(size=size)\n",
"x = y + np.random.normal(size=size)\n",
"z = y + np.random.normal(size=size)\n",
"X_fork = pd.DataFrame({'x': x, 'y': y, 'z': z})\n",
"\n",
"x = np.random.normal(size=size)\n",
"z = np.random.normal(size=size)\n",
"y = x + z + np.random.normal(size=size)\n",
"X_collider = pd.DataFrame({'x': x, 'y': y, 'z': z})"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment