Bechdel and Other Tests


Written by Erin McCoy, Katie Creel, Diana Navas, Juliette Woodrow, and Elyse Cornwall. Inspired by “The Next Bechdel Test”.

List Comprehensions

Temps, Revisited

Let's revisit a problem from last section: we have a list of temperatures temps_f in Fahrenheit, and we want to produce a list temps_c of those temperatures in Celsius.

        
          temps_f = [45.7, 55.3, 62.1, 75.4, 32.0, 0.0, 100.0]
        
      

Last section, we saw how to do this with map. Now, write a list comprehension to create the list temps_c.

Movie Tuples

Suppose we have a list of tuples representing movies, for example:

        
        movies = [('alien', 8, 1), ('titanic', 6, 9), ('parasite', 10, 6), ('caddyshack', 4, 5)]
      
      
The first element of each movie tuple is the movie name, the second element is the overall score, and the third element is the "date score" (how appropriate the movie is for a date). Write list comprehensions to do the following, given some list movies like the one above.
  1. Produce a list of the second elements (overall scores) of each tuple.
  2. Produce a list of the sum of the second and third elements (overall score plus date score) of each tuple.
  3. Produce a list of the first elements (movie name) of each tuple, except that the first character of each name is made uppercase. You can assume that each movie name has at least one character, and don't worry about movie names that are multiple words.


Bechdel and Other Tests

A Short History

Named for Alison Bechdel, the Bechdel Test seeks to analyze the representation of women in fictional media. To pass the Bechdel Test, a film must:

  1. Feature two women
  2. Who have a conversation
  3. About something other than a man
Here's a graph showing what percentage of movies made in a given year satisfy these rules, dating from 1888 to 2019. Although a majority of movies today pass the Bechdel Test, roughly a third do not!

Graph showing that most movies failed all 3 bechdel requirements in the early 1900s but about a third of them pass all three today.

The popularity of the Bechdel Test has inspired others to create their own tests measuring other inequities in media. Here are a few examples:

For more information about Bechdel and definitions of other tests, take a look at “The Next Bechdel Test” article.

Overview

In this section, you will use your nested data structure and matplotlib skills to build your very own data visualization program. You will use a dataset consisting of about 50 movies, along with which tests each movie passes and fails. Your goal is to build a piece of software that helps you investigate representation and bias in movies.

This problem is a natural extension of the interesting ethical topics that we have talked about in CS106A so far this quarter. Our hope is that by introducing these topics early in your computer science education, we can help the next generation of computer scientists - which now includes you! - be mindful of the potential social implications of their work, and use their powerful skills to help others.

Plotting Data