Skip to content

Instantly share code, notes, and snippets.

@vietjtnguyen
vietjtnguyen / classic-neural-network.ipynb
Created October 3, 2013 04:51
IPython Notebook on Neural Networks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vietjtnguyen
vietjtnguyen / logistic-regression.ipynb
Last active January 4, 2021 10:08
IPython Notebook on Logistic Regression
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vietjtnguyen
vietjtnguyen / custom.css
Last active December 23, 2015 13:39
Custom CSS for IPython Notebook
h1, h2, h3, h4, h5, h6 {
font-family: "STIX-Bold", serif;
}
p, ol, ul {
font-family: "STIX-Regular", serif;
font-size: 115%;
}
ul ul, li, ul li, li li {
font-family: "STIX-Regular", serif;
font-size: 100%;
@vietjtnguyen
vietjtnguyen / autosave.bat
Created September 12, 2013 08:26
Batch script for automatically committing to SVN every minute.
:loop
powershell -Command "&{ svn status | ? { $_ -match '^!\s+(.*)' } | %% { svn rm $Matches[1] } }"
svn add --force * --auto-props --parents --depth infinity
svn commit -m "Autosave %date% %time%"
svn update
TIMEOUT /t 60
goto loop

Causation implies correlation but not necessarily the other way around. Correlation can be a result of confounding variables (X and Y are correlated because some latent variable Z is causing both X and Y).

I think you'd enjoy a read of Judea Pearl's "Causality". If you could get your hands on the book and read just the first chapter that should suffice.

I'll attempt a sweeping blurb but I can't guarantee its correctness. I'm probably going to screw up some statistical concepts. Also, I'm going to ignore sampling effects (which can cause spurious correlations and stuff).


Anyway, say you're observing a system. It has two variables: X and Y. You collect observational data and fit a statistical model to your data. Say we find a correlation (dependence) between X and Y in the data.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vietjtnguyen
vietjtnguyen / basics.ipynb
Last active October 31, 2017 19:21
Bayesian Network IPython Notebook Test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vietjtnguyen
vietjtnguyen / cs264a.ipynb
Last active December 16, 2015 04:19
Notes for my automated reasoning class. http://nbviewer.ipython.org/5376231
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vietjtnguyen
vietjtnguyen / gist:5235885
Last active December 15, 2015 09:09
WIP Structure from Motion IPython Notebook. I just want to see if it works in the IPython Notebook Viewer (http://nbviewer.ipython.org/).
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "CS 596"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{