0% found this document useful (0 votes)
13 views2 pages

Exploratory Data Analysis Techniques

This document summarizes a student project analyzing a dataset of 12,000 car entries. The students used Python and pandas to load and explore the dataset. They investigated central tendencies and dispersion, identified and removed duplicate and null values, and detected and removed outliers. Visualizations were created to better understand patterns in the data. The overall goal was to clean the data and gain insights through exploratory analysis using various Python libraries.

Uploaded by

hardik solanki
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Exploratory Data Analysis Techniques

This document summarizes a student project analyzing a dataset of 12,000 car entries. The students used Python and pandas to load and explore the dataset. They investigated central tendencies and dispersion, identified and removed duplicate and null values, and detected and removed outliers. Visualizations were created to better understand patterns in the data. The overall goal was to clean the data and gain insights through exploratory analysis using various Python libraries.

Uploaded by

hardik solanki
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Data Visualization and Exploratory Data Analysis

Katleen Ezekeil Orata (c0848019) Hardik Solanki (0852302) Mohammad Imran Uddin (c0800487)
Artificial Intelligence & Machine Learning Artificial Intelligence & Machine Learning Artificial Intelligence & Machine Learning
Program Program Program
Lambton College Lambton College Lambton College
Toronto, Canada Toronto, Canada Toronto, Canada
c0848019@[Link] c0852302@[Link] c0800487@[Link]

Abstract—This electronic document is a “live” template and [Link]() [Link]() functions are used by the students to
already defines the components of your paper [title, text, heads, investigate the head and the tail, or the first and last rows of
etc.] in its style sheet. *CRITICAL: Do Not Use Symbols, Special the dataset. This provides the students with a quick look at the
Characters, Footnotes, or Math in Paper Title or Abstract.
information, assisting them in developing a hypothesis and
(Abstract)
giving them an indication of the type of analysis they can
Keywords—data preprocessing, exploratory data analysis, conduct. The students occasionally discovered some
central tendency, dispersion, outlier, visualization duplicated rows using [Link]() [Link]() functions, as seen
in Figure 2.
I. INTRODUCTION
The students are tasked to investigate a dataset ([Link]) that
contains 12,000 observations with 16 different attributes and
perform an exploratory data analysis. The purpose of the
assignment is for the students to investigate various Python
libraries that may be applied to the analysis, manage typical
data mistakes, and illustrate patterns and insights from the
data.

II. DATASET
The dataset contains 12,000 entries with a total of 16 columns.
Each column describes the various feature of the cars such as
make, model, engine fuel type, fuel type, popularity, etc.

III. . DATA LOADING AND OVERVIEW


For reading and exploring the dataset, we imported the Python
pandas library and utilized its various methods to load the Figure 3: Result using the .info() method
dataset and do an initial inspection of the dataset.
The [Link]() and .describe() function is also utilized
during the initial stages of the analysis. The function helped
the students gain insights not just into the number of
observations, and the total number of features but also into the
types of data and the count of non-null and null values.

IV. HANDLING DUPLICATE AND NULL VALUES


Figure 1: The head or the first five rows of the dataset
Many datasets in the real world contain a lot of incomplete
and erroneous information, giving them poor quality. One
form of inaccurate data is duplicated value or when all of the
values in at least one row match all of the values in another
row, that value is considered to be duplicate. To manage this,
the team used the pandas duplicated() to determine the total
number of duplicate values present in the dataset and then
Figure 2: The tail or the last five rows of the dataset used drop_dulicates() function to eliminate 801 rows' worth of
duplicate data.
Figure 3: The head or the first five rows of the dataset
Another form of poor quality data is the existence of null or
missing values. Prior to handling the NaN values, the team
decided to perform a review on dataset distribution and VI. OUTLIER DETECTION AND REMOVAL
dispersion which will be discussed in Section V of the paper.
The insight from this analysis will be used to decide which The term "outlier" refers to a data point or observation that
imputing technique is best suited for the dataset. significantly deviates from the data set's norm or average.
Outliers can distort perceptions of statistical results by having
a large impact on statistics like the mean and other measures
V. MEASURE OF CENTRAL TENDENCY of central tendency. In addition, it has the potential to mislead
One of the foundations of advanced analytics and data science machine learning model training, leading to longer training
is descriptive statistics. Descriptive statistics are the times, less accurate models, and ultimately subpar outcomes.
measurements that provide a summary of a set of data which
may be further subdivided into measures of central tendency To detect outliers and handle the outliers, the students used
and measures of dispersion. inter quartile range.

Pandas’ built-in function was used by the students in


measuring central tendency and measures of variability.
Measures include mean, median, mode, standard deviation,
variance, and skewness.

A. Data Loading and Overview


VII. DATA VISUALIZATION

Common questions

Powered by AI

Outliers can significantly distort statistical results by impacting measures of central tendency, such as the mean, which can mislead interpretations. In the context of machine learning models, outliers can cause the models to train on data that is not representative of the underlying distribution, leading to longer training times and reduced accuracy. Models may overfit to these anomalies, thus performing poorly on unseen data .

Understanding the dataset's central tendency and distribution is critical before handling missing values because it provides insights into the data's overall structure and helps prevent biased imputations. It allows for the selection of an appropriate imputation method that aligns with the data's inherent characteristics. For example, choosing to impute with the mean might not be suitable for skewed data, where median imputation could yield a more accurate and representative dataset .

Poorly handling duplicate data can lead to skewed insights and incorrect conclusions in exploratory data analysis. Duplicates can artificially inflate certain data points, artificially distorting measures of central tendency and variability. This results in biased analysis outcomes, impacting subsequent model training and prediction accuracy. Properly identifying and removing duplicates is therefore crucial for maintaining the integrity of insights derived from the analysis .

Using functions like .head() and .tail() during initial dataset inspection allows researchers to quickly view the first and last few rows, offering a snapshot of the data's structure and content. This can highlight potential patterns, inconsistencies, or anomalies, guiding the formation of initial hypotheses about data relationships or trends. Subsequently, these hypotheses can direct further detailed analysis and inform study designs or feature selections .

The interquartile range (IQR) is a statistical measure used to identify outliers by determining the spread of the middle 50% of the data. Outliers are typically defined as any observation below Q1 - 1.5 * IQR or above Q3 + 1.5 * IQR, where Q1 and Q3 are the first and third quartiles, respectively. This method is robust against the influence of extreme values and provides a standardized way to identify potential outliers, aiding in the subsequent analysis and model accuracy .

Strategies for deciding the best imputing technique for handling missing values include conducting a thorough analysis of data distribution, central tendency, and variability. Understanding these aspects allows selection of imputations like mean, median, or mode, suitable based on data symmetry or skewness. Imputation strategies should consider the potential impact of replacements on overall data integrity and model performance, ensuring the chosen method aligns with the data's characteristics and analysis objectives .

Measures of central tendency (mean, median, mode) and dispersion (standard deviation, variance) provide a summary of the dataset that informs data imputation strategies. By understanding these measures, analysts can decide whether to impute null values using techniques such as mean substitution or more robust methods like median, which are less affected by outliers. The variability and skewness indicated by dispersion measures help determine the sensitivity of these imputation methods to ensure realistic and balanced data representation .

In exploratory data analysis, handling duplicate and null values is crucial for improving data quality. The key functions used include the 'duplicated()' function in Python pandas to identify duplicate rows and 'drop_duplicates()' to remove them. Additionally, before handling null values, a review of dataset distribution and dispersion is recommended. This prepares for selecting appropriate imputing techniques, which may include filling nulls with measures such as mean, median, or mode, depending on the insight gained from analyzing data distribution .

Descriptive statistics provide a foundational understanding of data by summarizing features through measures of central tendency and variability. They reveal essential characteristics such as typical values, variability, and distribution patterns, which are critical for designing analysis strategies. This foundational knowledge supports advanced analytic tasks, such as model selection and feature engineering, by ensuring data-driven insights are appropriately contextualized and interpreted .

Python's pandas library facilitates exploratory data analysis through its comprehensive suite of functions for data handling and inspection. It enables efficient loading, management, and transformation of large datasets. Functions such as .info(), .describe(), and data manipulation methods like .groupby() and .merge() provide powerful tools for understanding data structure and summarizing key statistics, essential for hypothesis generation and data cleansing .

You might also like