Skip to Content
Introductory Statistics and Analytics: A Resampling Perspective
book

Introductory Statistics and Analytics: A Resampling Perspective

by Peter C. Bruce
December 2014
Beginner
312 pages
8h 30m
English
Wiley
Content preview from Introductory Statistics and Analytics: A Resampling Perspective

5

RELATIONSHIP BETWEEN TWO CATEGORICAL VARIABLES

In this chapter, we look at two-way tables, also called 2 × 2 tables, in which rows and columns represent binary values of two different variables. 2 × 2 tables are a subset of r × c tables (short for row × column), where the row and columns represent more than two values of their variables. After completing this chapter, you should be able to

  • build and interpret 2 × 2 tables,
  • specify how to do a resampling test for a difference between two proportions,
  • perform probability calculations involving conditional probabilities,
  • perform basic Bayesian calculations
  • define and test for statistical independence

5.1 TWO-WAY TABLES

We now return to the data previously mentioned on admission to graduate schools. The data are for the six largest academic departments, and the issue under consideration was admission rates for men and women. We begin with the two categorical variables, Gender and Admit. As before, we look at eight folks in a fragment of the database (Table 5.1).

Ignoring the department variable for now, the first person is a male who was admitted, so he goes in Table 5.2.

Then, we have a rejected male, another admitted male, and a rejected female. We will enter these data as counts in each cell (Table 5.3).

Finishing the table and adding row and column totals gives results that certainly look discriminatory (Table 5.4). However, these are only eight cases out of thousands. Table 5.5 is the full table for all 4526 applicants.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Definitive Guide to Marketing Analytics and Metrics (Collection)

The Definitive Guide to Marketing Analytics and Metrics (Collection)

Cesar Brea, Rajkumar Venkatesan, Paul Farris, Ronald T. Wilcox, Neil Bendle, Phillip E. Pfeifer, David Reibstein
Data Science for Marketing Analytics - Second Edition

Data Science for Marketing Analytics - Second Edition

Mirza Rahim Baig, Gururajan Govindan, Vishwesh Ravi Shrimali

Publisher Resources

ISBN: 9781118881354Purchase book