changed analysis.py for the question2 answer, which is to set noise to zero