probabilistic models written assignment 3 7609478