Saltar al contenido

Lección 1 · Getting Started

What Is Exploratory Data Analysis?

Learn what exploratory data analysis is, who it helps, what you need to start, which examples run in your browser, and how this EDA tutorial is organized.

Exploratory data analysis, usually shortened to EDA, is the work you do to get to know a dataset before you trust it. You look at its rows, summarize its columns, draw pictures, compare groups and question anything surprising. The goal is not to prove a point. The goal is to learn what the data can and cannot tell you.

The statistician John Tukey made the term popular in the 1970s. He argued that looking at data with an open mind deserves as much care as formal testing. That idea still holds. A model, a dashboard or an AI assistant can only be as reliable as your understanding of the data behind it.

Why explore first?

Imagine that someone sends you a sales file and asks, "What is our average order value?" You could answer in one line of code. But the file might contain test orders, refunds stored as negative numbers, prices in two currencies or the same week exported twice. The one-line answer would be precise and wrong.

EDA helps you with four jobs:

  • Understand what each row and column means.
  • Detect problems such as gaps, duplicates and impossible values.
  • Discover patterns and form ideas worth testing.
  • Decide what to do next: clean, collect more data, model, report or stop.

Exploration and confirmation

It helps to separate two kinds of analysis.

Two kinds of analysis

Exploratory Find questions and ideas
Confirmatory Test one idea fairly

Use different data for each when you can

1 / 3

If you search a dataset until something looks interesting, you have found a hypothesis, not proof. The same rows that suggested the idea cannot give it a fair test. You will return to this point in common EDA pitfalls.

Who this tutorial is for

This tutorial is for students, analysts, developers, researchers and anyone who receives data and has to say something honest about it. You need:

  • Basic Python: variables, lists, dictionaries, loops and functions. If these are new, start with the Python tutorial.
  • School-level math: averages, percentages and simple graphs.
  • Curiosity and a little patience.

You do not need advanced statistics. When a statistical idea matters, you will get a plain explanation first.

What runs on this site

The examples use three tools:

Tool Used for Runs here?
Python standard library Showing exactly how summaries work Yes
pandas and Matplotlib Everyday table work and charts Yes, in the browser
SQL (SQLite) Exploring data that lives in a database Yes

The browser loads Python the first time you press Run, so the first run takes longer. Examples that import pandas or Matplotlib load those packages too.

Almost all datasets are small and made up. Some are generated with a fixed random seed, so each run gives the same numbers. They are designed to show one idea clearly. Do not treat any result as a fact about the real world.

This is an independent tutorial. It is not affiliated with or endorsed by any tool or company that it mentions.

Your first exploration

Here is a short list of delivery times in minutes. Before you run the code, look at the numbers and guess the typical delivery time.

Python A first look at delivery times

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The mean is much higher than the median because of one value: 240 minutes. Is it a typing error, a courier who forgot to close the order, or a real four-hour delay? The code cannot tell you. You have to ask someone who knows how the data was recorded.

Try it yourself: remove the 240 and run the block again. The mean falls sharply, while the median hardly moves. That small experiment contains the whole attitude of EDA: look, summarize, notice, ask, and only then conclude.

Do not delete a strange value just because it spoils your average. Find out where it came from first, and write down what you decided.

What EDA is not

  • It is not a fixed checklist that you can run without thinking. Checklists help, but each dataset raises its own questions.
  • It is not only charts. Tables, counts and conversations with data owners matter too.
  • It is not the same as cleaning. EDA finds problems; cleaning fixes them. In practice you move back and forth.
  • It is not proof of cause and effect. Patterns in observed data can have many explanations.

How to study this course

Read a lesson, run each example, then change something. Add an extreme value, remove a group or use a different threshold. Predict the new output before you press Run. When your prediction is wrong, you have found something to learn.

If you have data of your own that you are allowed to use, try each idea on it as well. Keep private or company data on approved systems, and do not paste it into websites or AI tools without permission.

What you should have at the end

A good first exploration leaves behind more than a few charts. Aim for a short list of facts about the data, a list of problems with a decision for each one, and a list of open questions with the name of someone who might answer them. If a colleague can read those three lists and continue your work, your exploration was useful.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the main goal of exploratory data analysis?

    EDA is about understanding the data, finding problems and forming questions.
  2. 2. You search a dataset and notice an interesting pattern. What do you have now?

    Data that suggested an idea cannot test it fairly on its own.
  3. 3. One delivery time is far larger than all the others. What should you do first?

    An extreme value can be an error or the most important event in the data.
  4. 4. How is EDA related to data cleaning?

    Exploration reveals problems; after fixing them you explore again.

Summary

  • EDA is how you get to know a dataset before you rely on it.
  • It helps you understand, detect problems, discover ideas and decide what to do next.
  • Exploration produces hypotheses; a fair test usually needs fresh data.
  • Examples here use plain Python, pandas, Matplotlib and SQLite on small invented datasets.
  • Unusual values call for questions, not automatic deletion.

Next: Questions and the EDA Loop

Tu progreso se guarda en este navegador. No necesitas una cuenta.