Exploratory Data Analysis using Data Visualization Techniques.
Tags: datascience, analytics, data, visual
Published: 2023-10-09 14:48:04


![Exploring Data Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c45va9yax9e1bmkiu56b.jpg)
## **What is EDA?**

Exploratory Data Analysis is the process of analyzing and investigating a data set to discover patterns, characteristics, trends, anomalies, and relationships. This critical process relies on data visualization methods to accomplish its roles. 
The process involves data cleaning, data exploration, feature engineering, and data visualization. 



## **Why do We need Exploratory Data Analysis?**

<u>**A Variable**</u> - a characteristic that can be measured and that can assume different values. Height, age, income, province, etc.

1. **Missing values treatment** - This is a method of analysis that involves identifying and treating missing values and null values in a dataset. The approach involves deleting some rows and columns and implementing filling techniques to insert data.
2. **Outlier Treatment** - Treatment of outliers involves handling extreme values or values above or below the average. It is possible to get poor results if you have outliers. The majority of outliers are removed because they could be the result of an error.
3. **Variable Transformation** - Data is transformed using variable transformations to ensure their normality, linearity, and stability. It involves functions to create data usable by changing the state or the form of the data variables. The data variables are either numerical or categorical.
4. **Feature Engineering** - This is a method of analysis that involves creating new features based on existing ones. It involves identifying and extracting features from a dataset.
5. **Correlation Analysis** - This method of analysis involves discovering data variable patterns and their magnitude. This drives the actions of that relationship between the variables.



## **Types of EDA:**

1. Univariate EDA - Involves looking at a single variable at a time.
2. Bivariate EDA - involves looking at two variables at a time.
3. Multivariate EDA - Involves looking at three or more variables at a time.



![Data Visualization using Graphs, charts, etc](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/00u2y18rnbfag0ezkcuw.jpg)
## **What is Data Visualization?**

This is the representation of data using a graphical interface. This involves the use of charts, graphs, plots, infographics, animations, and many other visual techniques.


## **Why do we need data visualization?**

The need for data visualization helps us discover trends, features, data point patterns, and more outlying business parameters.


## **Data Visualization Techniques:**

1. **Charts** - line charts, Pie charts, Column charts, Bar charts, Fusion charts, high charts, pictogram charts, histogram charts, waterfall charts, etc.
2. **Plots** - Line plots, Bar plots, Box and whisker plots, scatter plots, bubble plots, violin plots, distribution plots, cartograms, etc.
3. **Maps** - Heat maps, Treemaps, Choropleth Map, etc.
4. **Diagrams and Matrices** - correlation matrix, network diagram, word cloud, Choropleth Map, bullet graphs, highlight table, timeline, etc



> These techniques use various tools and technologies to implement visualizations. These tools depend on the domain being used and have different uses and purposes. E.g. Tableau.


## **How to explore data using visualization techniques.**

Let's now explore our data. We mostly use ...

**Charts** - for

- _**Comparison**_ - comparing variables and values in a dataset.
- _**Distributions**_ - checking the distribution of variables in a dataset.
- _**Proportions**_ - checking the proportionality of the distribution of variables in a dataset.


**Plots** - for

- _**Trends**_ - Viewing upcoming behaviors in the variables in a dataset.
- _**Relationships**_ - View the correlations between different variables in a dataset.
- _**Outliers**_ - checks for possible variables that are not in range or are above the expected range.


**Maps** - for

- _**Patterns**_ - used to identify special and regular patterns in the dataset variables.
- _**Structures**_ - they identify the hierarchy of data and the composition of different variables in a dataset.
- _**Intensity**_ - Helps identify the extremeness of variables in a dataset.
- _**Density**_ - helps identify the amount of concentration of values and variables in a dataset.

**Diagrams and Matrices** -  for

- _**Connections**_ - diagrams show entity relations between variables in a dataset.
- _**Summaries**_ - they showcase summaries of data in a dataset. Help identify key performance indicators and quick insights into the data.
- _**Comparison**_ - using keys to identify differences and compare variables in a dataset.





## **How to explore data using visualization techniques.**

1. **_Understand the Data_** - know if your data is numerical, categorical, or timely data. This prepares you for the transformation of the data into the appropriate data type and range of data values.
2. **_Identify the problem or question_** - Know the purpose and expectations of your data and the idea and hypothesis of the EDA.
3. **_Choose the most appropriate visualization techniques to implement_** - Having known and understood the data, you can identify the best techniques to use for visualization. You will understand if the data is numerical, categorical, time-based, or geographical.
4. **_Visualize the Data_** - Use the appropriate tools to visualize your data. Like matplotlib, tableau, seaborn, plotly, etc.
5. **_Interpret the data_** - look for patterns, features, trends, outliers, correlations, and relationships to understand.
At this point, you can reiterate and refine the data if expectations are unclear and errors are spotted. Feedback generated drives if the process needs to be refined and re-iteration is needed.
6. **_Communication of findings_** - present and describe insights gained. Use visuals and reports to communicate findings.


> Different exploratory data analysis methods require different Data Visualization techniques. There needs to be consideration of the domain and purpose.



## **Conclusion**

EDA involves various processes to prepare and craft datasets used by models. If EDA fails or is not well crafted, the data visualization techniques used also fail to discover patterns and trends in the datasets. These two processes are dependable on each other. Being an expert in this field depends on which tools to use for certain domain knowledge.