Code and notes from MITx Analytics Edge