lecture5ccle - CATEGORICAL(FINISH NORMAL(CH 3.1 STATISTICS...

Info icon This preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon
CATEGORICAL (FINISH) NORMAL (CH. 3.1) STATISTICS 10 - LECTURE 5
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
SOME DATA - FROM THE US GOVERNMENT HOME MORTGAGE DISCLOSURE ACT - ALLOWS THE INSPECTION OF LOAN PRACTICES
Image of page 2
READING DATA AND EXAMINING ITS STRUCTURE read.csv( ), names( ) and str( ) are all useful for new datasets
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
TABLING A SINGLE VARIABLE THESE TABLES IDENTIFY THE VALUES , COUNTS & PROPORTIONS WITHIN A CATEGORICAL
Image of page 4
Contingency Tables While tabling a single categorical variable can be interesting… Creating tables involving two categorical variables (called Contingency Tables or Two Way Tables) allow us to examine the relationships between variables
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Two variables: Race/Ethnicity & Loan Approval We can now study relationships The question here is…what is the relationship between an applicant’s race and loan approval? We can see that Non Hispanic Whites have the most approvals but they also have the most disapprovals. They are the largest group
Image of page 6
SOLUTION: ADJUST BY COMPUTING ROW PROPORTIONS “WITHIN EACH GROUP, WHAT PROPORTION GOT THEIR HOME LOAN APPLICATIONS APPROVED?”
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
COMPARE: ADJUST BY COMPUTING COLUMN PROPORTIONS IT ANSWERS A SLIGHTLY DIFFERENT QUESTION: GIVEN APPROVAL, WHAT WAS THE DISTRIBUTION OF RACE
Image of page 8
THE MOSAIC PLOT - A GRAPHICAL CONTINGENCY TABLE CORRESPONDS TO THE PROPORTION OF LOANS OF EACH TYPE BY BANK
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
BOXPLOTS USE NUMERICAL & CATEGORICAL VARIABLES THE COMPARISON IS ACROSS GROUPS (RACE/ETHNICITY). WHAT CAN YOU SAY
Image of page 10
AN UNINFORMATIVE BOXPLOT - INCOME & RACE EXTREME VALUES ARE “SQUASHING” OUR BOXES
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
IMPROVED BY LOG TRANSFORMATION OF INCOME A CLEARER PICTURE OF THE RELATIONSHIP IS REVEALED WITH A TRANSFORMATION
Image of page 12
COMBINING NUMERICAL AND CATEGORICAL HISTOGRAM EXAMPLE
Image of page 13

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Take Aways 1.7 We only have a few tools for categorical variables - table, contingency table, mosaic plot What is more interesting is to examine numerical variables and categorical variables together (box plot is one way, there are others)
Image of page 14
CHAPTER 3 - DISTRIBUTIONS
Image of page 15

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern