Question: (0.5 pts) Set the random seed to 10. Create another random sample X2_men of 100 height values using the same mean and standard deviation. Evaluate
(0.5 pts) Set the random seed to 10. Create another random sample X2_men of 100 height values using the same mean and standard deviation. Evaluate the difference of the means of these two samples (i.e. mean of X1_men - mean of X2_men). In real life, what do we expect this difference of means to be? 0?

0] : # Your answer here np . random. seed (10) mean = 175 std_dev = 10 X2_men = np . random. normal (mean, std_dev, 100) mean_X1_men = np. mean (X1_men) mean_X2_men = np. mean(X2_men) difference_of_means = mean_X1_men - mean_X2_men print ("Difference of means:", difference_of_means) Difference of means: -105.61474258276525 1] : # Check your answer here. (Do not make any change to this cell. Just run this cell. ) difference NameError Traceback (most recent call last) Cell In [31], line 2 1 # Check your answer here. (Do not make any change to this cell. Just run this cell.) 2 difference NameError: name 'difference' is not defined
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
