# What advantages does Data Visualization have in EDA?

It is not clear to me what advantage the EDA data visualization provides. By advantage I mean what decision I will make according to one or the other visualization.

Could someone give me an example where the data visualization makes me decide for one or the other algorithm ?

i.e from the book "Introduction to ml with python" Visualising datasets before fitting any models can be extremely useful. It allows us to see obvious patterns and relationships,and may suggest a sensible form of analysis. With multivariate data, finding the right kind of plot is not always simple, and many different approaches have been proposed.

How does whether I have seen this visualization or not change the way to proceed?

First, visualization is just an easy and intuitive way to understand underlying patterns in your data. Everything that you can achieve through this, can also be achieved through painstakingly printing different values and statistics.

I will just mention two simple examples of algorithms chosen because of patterns in the data. They are very simple, but they can be generalized.

1. Regression

If you find out that the data is linear, Linear Regression can be a good choice of algorithm

2. Classification

If the data are linearly separable, SVM is suitable

These are visualizations of the datapoints themselves, but other visualizations like histograms can help find underlying distributions too.

In addition, visualization can be useful in other parts of the process. For example, if you see a normal distribution, you can impute missing data using the mean value, while for a skewed distribution the median is more suitable.

• Regarding you last paragraph, since mean of normal distribution is equal to median of normal distribution, couldn't you use median to impute missing data for normally distributed data? Or in other words use median to impute missing values for both normally and skewed distributions? Nov 2, 2022 at 19:55
• I mean, you are right. I meant mostly "don't use mean in skewed distributions". And there are distributions where mode is the best value for imputation. Nov 3, 2022 at 8:57

The simplest example is Anscombe's Quartet

. These four data sets are quite different, which doesn't appear just by looking at the summary stats.

• really coold I didnt know that Nov 2, 2022 at 8:38