Just a quick note for clarification that might be useful to others...In the beginning of exercise 3-6 it says:
Which is certainly helpful. However, from the documentation for the function...help(random.gauss), the second parameter is expected to be the standard deviation, and not the variance (which is sigma ** 2):
I guess that based on the text we are supposed to use the variance, which is ok for this exercise but you need to be very careful in practical applications.
asked 10 Mar '12, 03:21