Do the three penguin species differ in size, and could their measurements alone tell them apart?
Capstone 1~50 minapplied Palmer penguins
The story
A field team on the Palmer Archipelago measured 344 penguins over three seasons: bill length and depth, flipper length, body mass, sex, island and species. Before the next season they want a short field report that answers two things. Do Adélie, Chinstrap and Gentoo penguins really differ in body mass, and by how much? And if a new bird came in unlabeled, would its measurements be enough to place it?
You have the whole pipeline in front of you: look at the data first, decide what to do about the birds with missing measurements, compare the species with a test that does not assume equal spread, then let clustering try to rediscover the species without being told. The report should say what you found and how sure you are, in words a field biologist can act on.
Data: Palmer penguins · CC0-1.0. Horst AM, Hill AP, Gorman KB (2020). palmerpenguins. Data collected by Dr. Kristen Gorman and the Palmer Station LTER.
Open the rows, then let Insights profile them. Note which columns have gaps and how many birds they touch, and look at body mass up close: its shape decides which summaries you can trust.
Which columns have missing values, and how many birds does that affect?
Open Data in the sidebar. Every dataset in the project lives here.
Click penguins (sample) in the list to open it.Imported data is stored as a version, so anything you do later can be traced back to exactly these rows.
Scroll through the rows. Look for empty cells and for columns that are not what their name suggests.
Now open Insights. It profiles the dataset for you the first time you visit.A profile before any test catches problems while they are still cheap to fix.
Read the top findings. They are ranked by how serious each one is and how many rows it touches.
Open any column from the list on the left to see its distribution up close.Looking at one column's shape tells you which summaries and tests can be trusted for it.
Stage 2 · prepare · ~6 min
Decide what to do about the gaps
A recipe records cleaning steps without touching the original rows. Open one on the penguins and read what Prepare suggests. Dropping or filling rows changes what every later number describes, so this is your decision, and it belongs in the report's methods paragraph.
Will you drop, keep or fill the birds with missing measurements, and why?
Open Prepare in the sidebar.
Press New recipe, pick penguins (sample), then press Create.A recipe keeps every cleaning step as a record, so the decision you make here can be read, undone or rerun.
Open the Fixes tab on the right and read what CodeSplash found in these rows.
Decide what to do about the birds with missing measurements. Write your choice down; you will need it for the report.Leaving out a row is a choice about who your results describe. Saying so is what makes the report honest.
Stage 3 · analyze · ~13 min
Compare the species
Welch's ANOVA asks whether mean body mass differs across the three species without assuming they vary equally. It says only that some difference exists, so follow it with Games–Howell comparisons to see which pairs differ and by how much.
Which species differ in body mass, by roughly how many grams, and how sure are you?
Open Analyze and find One-way ANOVA (Welch / classic).
Choose penguins (sample) as the dataset.
Set Outcome to outcome and Groups to group.
Press Run.
Read the summary and the effect size. Is the difference across species large, or only detectable?A tiny p-value with this many birds is expected. The effect size says whether the difference matters.
Now open Pairwise comparisons, with the same dataset and columns.
Keep the method on Games–Howell and press Run.
Read the table of pairs. Which species differ, and by how many grams? Note the interval as well as the difference.The report should give the size of each difference with its interval, not only which ones are significant.
Stage 4 · discover · ~13 min
Can clustering find the species?
Hold species back and let k-means group the birds by their measurements alone. Then compare the clusters with the real species: the adjusted Rand index is 1 when they match perfectly and close to 0 when they agree no better than chance.
How well do clusters built from measurements alone recover the three species?
Open Discover in the sidebar.
Choose Find segments.
Choose penguins (sample) as the data, and read which features are suggested.
Press the k-means card.
Set Label to species. It is compared with the clusters afterwards and never used to build them.
Keep k at 3 and press Run.
Find the adjusted Rand index. How closely do the three clusters match the three species?Agreement with a label the method never saw is outside evidence. Clusters that only differ on their own inputs show nothing.
Open Choose k. Do the elbow and silhouette agree that three is the right number?
Stage 5 · reports · ~9 min
Write the field report
Build the report from your saved runs, so every number in it comes from the engine. Then add the sentences only you can write: what the differences mean for the field team, and what the clustering result does and does not show.
Open Reports in the sidebar.
Press New report.
Tick the Welch ANOVA and the pairwise comparisons, then press Create report.
Press Add item and choose Text, for your own paragraph.
Write what the field team should take away, including how the gaps were handled and what clustering showed.The app states the statistics. Only you can say what they mean for the next field season.
Export the report as a PDF.
Hints
Start with the shape of body mass in Insights. It tells you whether means are a fair summary.
Welch's ANOVA and Games–Howell both allow each species its own spread, which matters because Gentoo penguins are heavier and vary more.
In Discover, keep species out of the features and set it as the label. The adjusted Rand index then measures how well the clusters recover it.
report
A two-page field report
Write a field report a biologist could act on: the question, how the data were checked and cleaned, how body mass differs between species (with sizes and intervals), how well measurements alone recover the species, and what you would not claim from this data.
Question
Data and missing values
Species differences
Clustering
Limits
Rubric
Criterion
Points
States how the birds with missing measurements were handled and why.
1
Justifies Welch's ANOVA and Games–Howell (unequal spreads) rather than the classic F test.
2
Gives each species difference in grams with its interval, not only p-values.
2
Reports the adjusted Rand index and says what agreement with species means.
2
Names a limit: observational data, three islands, three seasons, or a measurement left out.
1
Uses "compatible with" language and no causal claims.
1
Model answer
Show the model answer
Question. Do the three species differ in body mass, and do measurements alone separate them?
Data. 344 penguins; two birds have no measurements and a few more lack sex. Each analysis leaves out the rows missing the columns it uses, so the two unmeasured birds drop out of everything below; no values were filled in.
Species differences. Welch's ANOVA was used because Gentoo body mass varies more than the other two species, and the classic F test assumes equal spread. Body mass differs strongly across species, with a large effect size. Games–Howell comparisons put Gentoo penguins well above both Adélie and Chinstrap, by more than a kilogram on average; the Adélie–Chinstrap difference is small and its interval runs close to zero. Quote the differences and intervals from your own pairwise table.
Clustering. k-means with three clusters on bill, flipper and mass measurements, with species held back, agrees with the species well above chance (read the adjusted Rand index from your run). Gentoo birds form their own cluster almost completely; Adélie and Chinstrap overlap, because their body sizes are similar and they differ mostly in bill shape.
Limits. These are birds from three islands over three seasons, so the differences describe these populations, not penguins everywhere. The clusters were built from the same measurements they are described by, so only the agreement with species, a label they never saw, counts as evidence.