1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Survey Data in Python

Exercise

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.

Instructions 1/3

undefined XP
    1
    2
    3
  • Calculate the mean extroversion of male_survey.
  • Calculate the mean extroversion of female_survey.