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.
What runs in CodeSplash
- Descriptive statistics Verified in Python and R
- Frequencies (categorical variables) Verified in Python and R
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
The job
ReadYou'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 penguins1. What is one row?
In the appAdd 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
2. Missing values
PredictPredict 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.
3. Errors
In the appCheck 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.
4. One column at a time
ExploreOpen 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?
5. By group
In the appNow 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?
6. Relationships
ExploreIn 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?
View
Commit your prediction above to see the result
Make your prediction to see the result.
7. Write it down
ReflectWrite three sentences:
- What these data are, and any problems you found.
- What patterns you saw.
- 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.
Check your understanding
CheckpointCheck yourself
Put the checklist in order.
Show the answer
The order:
- Say what one row is and what you're asking
- Check missing values and errors
- Summarize one column at a time
- Split by group and look at relationships
- 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.
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