Zum Inhalt springen

Lektion 2 · Getting Started

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.

A dataset can answer thousands of questions, and most of them do not matter. Without a question, exploration turns into endless charting. With a question that is too narrow, you miss surprises. Good EDA starts with a clear purpose and stays open to what the data shows.

In this lesson you will turn a vague request into questions you can work on, and you will learn a simple loop that keeps your work organized.

Start with the decision

Requests often arrive in vague form: "Look at our customer data" or "Why are sales down?" Before you open the file, find out what someone will do with the answer. Useful things to ask are:

  • Who will read the result?
  • Which decision could change because of it?
  • What do you already believe, and why?
  • When is the answer needed?
  • What would count as a surprising result?

If nobody can name a decision, you can still explore, but keep it short and agree on what you will deliver.

Sharpen the question

A workable question names a metric, a population, a time window and often a comparison.

Vague Workable
Are customers happy? What share of support tickets closed in March were reopened within 7 days, by product?
Why are sales down? How did weekly net revenue change in the last 12 weeks, by store and product category?
Is the app slow? What are the median and 95th percentile load times, by device type, last week?

Each part can hide a disagreement. Does "revenue" include tax? Do refunds count in the week of the sale or the week of the refund? Is a "customer" a person, an account or a company? Settle these definitions early and write them down.

Kinds of questions

Questions come in different levels, and EDA handles some better than others.

Four kinds of questions

Describe What happened?
Compare Where is it different?
Predict What may happen next?
Cause What would change it?

EDA is strongest at the first two

1 / 2

EDA describes and compares very well. It gives you clues about prediction. It rarely settles a question about cause by itself. If your stakeholder asks whether a discount caused more orders, say early that you may need an experiment or a more careful study design.

The EDA loop

Exploration is a cycle, not a straight line.

flowchart LR
  A["Ask a question"] --> B["Look at data"]
  B --> C["Summarize and plot"]
  C --> D["Notice something"]
  D --> E["Check it"]
  E --> A

Each answer usually raises a sharper question.

Suppose you ask how revenue changed. A chart shows a sharp dip in one week. You check the row counts and find that two days are missing for one store. Your next question is no longer "Why did revenue fall?" but "Did the export fail, or was the store closed?"

Write expectations first

Before you compute something, write what you expect. For example: "I expect about 200 orders on a weekday and more on weekends." An expectation gives you something to compare with. If you only react to what you see, almost any number can seem reasonable.

Python Compare expectations with the data

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.

Both weekend days are surprises. The expectation may be wrong (perhaps this is a business that sells to offices), or the data may be incomplete. Either way, you learned something and you have a next question.

Build a question backlog

New ideas will appear while you work. Do not chase each one immediately. Write it into a short list and give it a priority based on two things: how much the answer matters, and how hard it is to get.

Python Rank a question backlog

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 score is only a helper. A check on data completeness usually comes first anyway, because every later answer depends on it.

Keep an analysis log

A log lets you and others retrace your steps. A few lines per step are enough:

TEXT
Date: 2026-03-04
Data: orders_export.csv, received from the sales team, 12 weeks
Question: How did weekly net revenue change by store?
Checked: row count per day. Found: no rows for Store B on two dates.
Decision: asked the data owner. Excluded that week from store comparison for now.
Open: does "amount" include tax?

Note the source, the version of the data, each exclusion and its reason, and the questions that remain open. In a notebook, put these notes next to the code.

Know when to stop

Stop exploring when you can answer the main question with stated limits, when new views stop changing your conclusion, or when the data clearly cannot answer it. "This data cannot tell us that, and here is what we would need" is a useful result.

It also helps to agree on a time box before you start, for example one day for a first pass. At the end of it, report what you know, what you doubt and what the next day of work would add. Your reader can then decide whether more exploration is worth the cost.

A common mistake is to change the question quietly until the data gives a pleasant answer. If you change a definition or a time window, record the change and the reason.

A worked example

A manager writes: "Check whether our new checkout is working." Before touching data, you ask what "working" means. After a short talk you agree on this: among visitors who start checkout, what share finish it, by device type, for the two weeks before and the two weeks after the release?

Now you can list what you need: one record per checkout attempt, its start time, device type and whether it was completed. You can also list threats: a marketing campaign in one of the periods, a tracking change released together with the new page, or a holiday. None of these shows up in the question, but each could change the answer, so they go into your backlog.

Try it yourself

Take the request "Why are support tickets increasing?" Write three workable versions. Each should name a metric, a population and a time window. Then mark which one you could answer with a simple ticket export, and which one needs extra data such as the number of active customers.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which question is the most workable?

    It names a metric, a population and a time window.
  2. 2. Why should you write expectations before you compute results?

    A prior expectation helps you notice results that need investigation.
  3. 3. Someone asks whether a new banner caused more signups. What is the honest early advice?

    Observed patterns can have other explanations; experiments help isolate causes.
  4. 4. What belongs in an analysis log?

    A log should let someone retrace and challenge your decisions.

Summary

  • Start from the decision the analysis should support.
  • A workable question names a metric, population, time window and comparison.
  • EDA is a loop: ask, look, summarize, notice, check and ask again.
  • Write expectations first, keep a question backlog and log your decisions.
  • "The data cannot answer this" is a valid and valuable finding.

Next: Your EDA Toolkit

Dein Fortschritt wird in diesem Browser gespeichert. Kein Konto nötig.