Code Monkey home page Code Monkey logo

gender-bias-ucb-grad-admissions's Introduction

Gender Bias in UCB Grad Admissions

UCBAdmissions dataset in base R. Female and male admitted or rejected from the 6 largest departments at Berkeley, 4526 students applied to Berkeley in 1973.

  • 44.5% of male applicants were accepted into Berkeley, as opposed to 30.4% of female applicants

gg_bar <- ucb_tidy_aggregated %>% ggplot(aes(x = Gender, y = prop, fill = Gender)) + geom_col() + geom_text(aes(label = percent(prop)), vjust = -1) + labs(title = "Acceptance rate of male and female applicants", subtitle = "University of California, Berkeley (1973)", y = "Acceptance rate") + scale_y_continuous(labels = percent, limits = c(0, 0.5)) + guides(fill = FALSE)

  • Men were more likely to be admitted into Departments C and E, women were more likely to be admitted into the other departments
  • 108 women, 825 men applied to Department A

gg_bar_faceted <- ucb_by_dept %>% ggplot(aes(Gender, prop, fill = Gender)) + geom_col() + geom_text(aes(label = percent(prop)), vjust = -1) + labs(title = "Acceptance rate of male and female applicants", subtitle = "University of California, Berkeley (1973)", y = "Acceptance rate") + scale_y_continuous(labels = scales::percent, limits = c(0, 1)) + facet_wrap(~Dept) + guides(fill=FALSE)

  • Simpson's paradox: effect of gender disappears when control for the effect of department on admission %. No campus-wide bias against applicants of either gender.
  • bias != discrimination

gender-bias-ucb-grad-admissions's People

Contributors

eycye avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.