Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mathematical Interest Theory

Authors: Leslie Jane, James Daniel, Federer Vaaler

3rd Edition

147046568X, 978-1470465681

More Books

Students also viewed these Mathematics questions

Question

\f

Answered: 1 week ago