Saltar al contenido

Tutorial de Exploratory Data Analysis

Exploratory data analysis tutorial: questions, first looks, one and many variables, distributions, relationships, time, groups, pitfalls, reporting and projects.

Getting Started

  1. 1 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.
  2. 2 Questions and the EDA Loop Turn a vague request into clear questions, define the population and metric, follow the EDA loop, and keep a simple analysis log that others can check.
  3. 3 Your EDA Toolkit Meet the tools for exploratory data analysis: Python, pandas, Matplotlib, SQL and notebooks, with runnable examples and habits for reproducible work.

First Look at Data

  1. 4 Loading Data and Taking a First Look Load a CSV file safely and run first checks: row and column counts, header names, sample rows, value previews and signs that the file was read wrongly.
  2. 5 Data Types and the Grain of a Table Classify variables by meaning, convert text to correct types, and find the grain and key of a table so that counts and sums are not silently inflated.
  3. 6 Missing Values and Data Quality Find hidden missing values, profile columns, check whether gaps differ by group, understand why data goes missing and screen for duplicates and bad values.

One Variable

  1. 7 Center and Spread of One Variable Use mean, median, quantiles, IQR, standard deviation and MAD to describe a numeric variable, and learn why one single number is never enough.
  2. 8 Distributions and Histograms Read the shape of a variable with histograms, box plots and ECDF charts: spot skew, multiple peaks, gaps and heaping, and see how bin width changes it.
  3. 9 Exploring Categorical Variables Explore categorical columns with frequency tables and shares, clean inconsistent labels, handle rare and high-cardinality categories, and chart them well.
  4. 10 Transforming and Binning Data Use log transforms, rates, standard scores and binning to make patterns visible, and learn what each change does to your summaries and your conclusions.

Two Variables

  1. 11 Relationships Between Two Numeric Variables Explore two numeric variables with scatter plots, Pearson and Spearman correlation and binned trends, and avoid misreading curves, outliers and clusters.
  2. 12 Comparing Numbers Across Categories Compare a numeric variable between categories with grouped summaries, side-by-side plots and effect sizes, while watching group sizes and overlap.
  3. 13 Comparing Two Categorical Variables Explore two categorical variables with contingency tables, row and column percentages, expected counts and clear charts, and read the base correctly.

Many Variables

  1. 14 Correlation Matrices and Pair Plots Screen many numeric variables with correlation matrices, heatmaps and pair plots, find redundant columns and avoid the traps of reading hundreds of pairs.
  2. 15 Confounders and Simpson's Paradox See how a third variable can create, hide or reverse a pattern, work through Simpson's paradox, and use stratification to explore confounding carefully.
  3. 16 Derived Features and Segments Create derived variables and rule-based segments during exploration, compare rows on several variables with scaling, and avoid circular or leaky features.

Time and Groups

  1. 17 Exploring Time Series Explore data over time: check gaps and partial periods, resample, smooth with rolling windows, separate trend from weekly seasonality and compare fairly.
  2. 18 Group Comparisons and Cohorts Compare groups over time with cohort tables and retention rates, separate mix changes from rate changes, and avoid unfair comparisons of young cohorts.

Pitfalls and Checks

  1. 19 Outliers and Anomalies Detect outliers with IQR fences and robust z-scores, use context to find unusual values, investigate their causes, and decide what to do and report.
  2. 20 Common EDA Pitfalls Recognize selection bias, survivorship bias, regression to the mean, the base-rate trap, leakage and the many-comparisons problem before they mislead you.
  3. 21 Sanity Checks and Uncertainty Validate your analysis with reconciliation, invariants, assertions and second methods, then use the bootstrap to show how uncertain your estimates are.

From Findings to Reports

  1. 22 Charts That Communicate Findings Turn quick exploratory plots into clear explanatory charts: pick the chart for the question, write a takeaway title, label units and design for access.
  2. 23 Writing an EDA Report Write an EDA report that leads with answers, separates facts from interpretation, states limits and next steps, and can be reproduced from your notes.

Projects and Reference

  1. 24 Project: Explore Cafe Sales Practice a complete EDA on an invented cafe dataset: profile it, find planted quality problems, summarize products and weekdays, and write your findings.
  2. 25 Project: Explore Bike Rentals with SQL and Python Explore an invented bike rental dataset with SQL and Python: check quality, study trip durations, compare rider types and test whether the mix explains it.
  3. 26 EDA Glossary and Cheat Sheet A quick reference for exploratory data analysis: a step-by-step checklist, which summaries and charts to use, common pandas and SQL calls and key terms.