Everyone wants to get to the model. It is the fun part. But almost every bad result I have seen traces back to a dataset nobody really looked at. Exploratory data analysis (EDA) is not a formality — it is where you find the problems that would otherwise hide inside a confident-looking accuracy score.
The first five minutes
Before anything clever, I answer boring questions:
- Shape and types. How many rows and columns? Is each column the type I expect — is that "age" actually numeric, or a string with stray text?
- Missingness. Which columns have nulls, how many, and are they missing at random or in a pattern? A column that is empty only for one group is a story, not just a gap.
- Ranges and units. Minimum, maximum, a few quantiles. A heart rate of 0 or 400 is a sensor error, not a patient.
- Duplicates. Are rows repeated? Are IDs unique when they should be?
Look at distributions, not just means
A mean hides everything interesting. I plot histograms and boxplots because the shape tells me what the summary cannot: is it skewed, bimodal, full of outliers? A variable that looks fine as "mean 50" might actually be two clusters at 10 and 90 — and a model will quietly average them into nonsense.
Relationships, carefully
Scatter plots and a correlation check show which variables move together. But I hold the conclusions loosely: correlation hints at structure, it does not prove cause, and a strong correlation between two features often just means I am about to leak information into my model.
Write down what you found
EDA that lives only in your head is wasted. I keep a short note: the oddities, the decisions (why I dropped a column, how I treated an outlier), and the questions still open. When the model later does something strange, that note is the first place I look.
Good EDA is not about pretty charts. It is about earning the right to trust your own results. Spend the time here and the modelling gets easier, honester, and a lot less surprising.
← All posts