Are women more extroverted?
Susan is convinced that women are more extroverted than men, because her best friend Betsy, loves to party, and her other best friend Oliver, would rather be in his room reading books.
To support her hypothesis, she posts a survey online, asking all of her Facebook friends to score themselves on how extroverted they think they are. One indicates a complete introvert while eight indicates a complete extrovert.
She wants to compare the average male score from male_survey
, to the average female score, female_survey
, using the two-sample t-test, but must first, check out the three assumptions associated with the test.
pandas
and scipy.stats
have been loaded for you as pd
and stats
, respectively.
This exercise is part of the course
Analyzing Survey Data in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Calculate mean extroversion of males
male_mean = male_survey.____.____
print(male_mean)
# Calculate mean extroversion of females
female_mean = female_survey.____.____
print(female_mean)