Dr. Cheng-Han Yu Department of Mathematical and Statistical Sciences Marquette University
Categorical vs. Numerical Variables
A categorical (qualitative) variable provides non-numerical information which can be placed in one (and only one) category from two or more categories.
Gender (Male 👨, Female 👩, Other 🏳️🌈)
Class (Freshman, Sophomore, Junior, Senior, Graduate)
Country (USA 🇺🇸, Canada 🇨🇦, UK 🇬🇧, Germany 🇩🇪, Japan 🇯🇵, Korea 🇰🇷)
A numerical (quantitative) variable is recorded in a numerical value representing counts or measurements.
GPA
The number of relationships you’ve had
Height
Data: Lending Club
Lending Club is a platform that allows individuals to lend to other individuals.
Not all loans are created equal – ease of getting a loan depends on ability to pay back the loan.
Data includes loans made, these are not loan applications.
Take a Peek at Data
library(openintro) ## for loading the data setdplyr::glimpse(loans_full_schema)