Estimations like mean, median, standard deviation, and variance are very much useful in case of the univariate data analysis. But in the case of bivariate analysis(comparing two variables) correlation comes into play.
Contingency Table is one of the techniques for exploring two or even more variables. It is basically a tally of counts between two or more categorical variables.
Loading Libraries
Loading Data
Output:
👁 Image
Describe Data
Output:
👁 Image
Data Info
Output:
👁 Image
Data Types
Output:
👁 Image
Code #1: Contingency Table showing correlation between Grades and loan status.
Output:
👁 Image
Code #2: Contingency Table showing correlation between Purpose and loan status.
Output:
👁 Image
Code #3: Contingency Table showing correlation between Grades+Purpose and loan status.