Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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 definedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started