Elementary Statistics: Picturing the World (6th Edition)

Published by Pearson
ISBN 10: 0321911210
ISBN 13: 978-0-32191-121-6

Chapter 1 - Introduction to Statistics - Section 1.3 Data Collection and Experimental Design - Exercises - Page 25: 21

Answer

Treatment group: Jake, Maria, Mike, Lucy, Ron, Adam, Bridget, Carlos, Steve Control group: Susan, Vanessa, Rick, Dan, Kate, Pete, Judy, Mary, Connie I used Python's "random" library to do the assignments and then wrote a function.

Work Step by Step

This is the Python code I wrote. There are many ways to do this, however. import random subjects = ['Jake', 'Maria', 'Mike', 'Lucy', 'Ron', 'Adam', 'Bridget', 'Carlos', 'Steve', 'Susan', 'Vanessa', 'Rick', 'Dan', 'Kate', 'Pete', 'Judy', 'Mary', 'Connie'] treatment = random.sample(subjects, 9) control = [x for x in subjects if x not in treatment] print("Treatment group:", treatment) print("Control group:", control)
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.