Skip to content

Capstone: an EDA checklist on the penguins

Work through a whole dataset in the app, from question to a short written account of what you found and what to test next.

Applied ~20 min10 steps

What runs in CodeSplash

You will be able to

  • Run a complete first look at a new dataset
  • Separate data problems from real patterns
  • Write down hypotheses before testing them

Read first

01

The job

Read

You've been handed a table of 344 penguins from three islands. Nobody has said what's wrong with it. Your job is to answer one question well enough to plan an analysis: how do penguin species differ in size?

You'll use the checklist below. It works on any table.

Palmer penguins
02

1. What is one row?

In the app

Add the data and open it in Insights (⌘5). Before you read any finding, write down:

  • What one row is
  • What the outcome and the groups are
  • Which columns would be identifiers, and which are measurements
03

2. Missing values

Predict

Predict first

Sex is recorded for most birds. How many of the 344 birds do you expect to be missing a value for sex?

Make your guess between 0 and 30 birds, then reveal.

Reveal

Eleven. The measurements are missing for only two birds. Ask why: sexing a bird in the field can be harder than measuring it, which would make those gaps informative. Check whether they cluster by species or year.

04

3. Errors

In the app

Check the Overview for duplicate rows, and each column's range for impossible values. Could a penguin weigh that? Is a bill that long plausible?

Findings should appear on the Overview. Read each one and decide: fix it, keep it and note it, or ignore it with a reason.

Nothing goes in a recipe unless you can explain why. Record what you decide.

05

4. One column at a time

Explore

Open body_mass and answer:

  • What's the center?
  • How spread out is it?
  • What shape, and how many peaks?

Run this on your copy of the data:

A lumpy histogram is a clue. What might separate the lumps?

06

5. By group

In the app

Now add species as the group. Show counts beside every summary.

Then draw it. In Charts, open Raincloud and use Use my data. You'll see that one species stands well apart from the other two.

Which difference looks big enough to matter to a biologist?

07

6. Relationships

Explore

In Charts, scatter bill_len against bill_dep, first for all birds, then colored by species.

Write down what you'd have concluded from the pooled chart, and what you conclude now. The same kind of reversal appears in Berkeley's admissions data:

EExplorable · Simpson's paradox: Berkeley admissions

Can a comparison reverse when you split the data into groups?

Overall, men were admitted more often. Within departments, who is usually admitted more often?

How sure?

View

45%Men30%Women

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

08

7. Write it down

Reflect

Write three sentences:

  1. What these data are, and any problems you found.
  2. What patterns you saw.
  3. Which hypothesis you'd test next, with which method, and why.

Put your account on the Dataset card. Tests you run later, on data you already explored, count as exploratory unless you can confirm them elsewhere.

09

Check your understanding

Checkpoint

Check yourself

Put the checklist in order.

  1. 1Check missing values and errors
  2. 2Write down what you found and what you'd test next
  3. 3Say what one row is and what you're asking
  4. 4Summarize one column at a time
  5. 5Split by group and look at relationships

Show the answer

The order:

  1. Say what one row is and what you're asking
  2. Check missing values and errors
  3. Summarize one column at a time
  4. Split by group and look at relationships
  5. Write down what you found and what you'd test next

Each step depends on the one before. A pattern is worth little until you trust the column it comes from.

Check yourself

How many birds are missing sex?

Show the answer

Answer: 11

Eleven, of the 344 in the bundled data.

Check yourself

Your EDA found a surprising difference between islands. What's the honest way to report a test of it on the same data?

Show the answer

Answer: b

Finding a pattern and then testing it on the same data overstates the evidence. Say how you got there, and confirm on new data when you can.

10

Recap

Recap
  • A checklist keeps you honest: one row, gaps, errors, columns, groups, relationships, write-up.
  • Errors come before patterns, and patterns are hypotheses until confirmed.
  • Your written account is the deliverable.

Concepts in this lesson