Analyzing Individual Quantities
This lesson focuses on how to analyze different quantities to look for skewness and bias in the data.
We'll cover the following...
Analyzing individual variables is usually the way to start with EDA after figuring out data types. Summarizing a variable or looking at its distribution can be very helpful.
We will be using the Default of Credit Card Clients Dataset. This dataset contains information on default payments, demographic factors, credit data, history of payment, and bill statements of credit card clients in Taiwan from April 2005 to September 2005. However, we will use the cleaned version of the dataset from the lesson Inconsistent Data. The details of individual columns are mentioned below.
Summary stats
Summarizing a variable can give us useful information which can be used to draw conclusions or make decisions. Some common summarizing statistics are:
- mean
- median
- quartiles
We can use the describe function on our dataframe which summarizes individual columns for us, or we can select the columns that we want and use functions like mean, std, and max on them.
We have selected two variables and then called the function describe on them in line 4. The output of line 4 gives us the count, mean, standard deviation, quartiles, minimum, and maximum.
By looking at the output, we find out that
- The average age is and the