Sugar Cookies Lab513 recipes

Sugar Cookies Lab

What moves together in 513 sugar cookie recipes

When a recipe uses more of one ingredient, does it tend to use more or less of another? For every pair of the 5 ingredient ratios (grams per 100 g of flour), this page ranks all 513 recipes on each and measures how closely the two rankings agree: Spearman's rho, from −1 (the more of one, always the less of the other) through 0 (unrelated) to 1 (always rise together).

10 pairs in all: 5 rise together at rho 0.20 or more, none move in opposite directions at −0.20 or less, and 1 is close to unrelated (between −0.10 and 0.10). This describes recipes as they are published; it does not say what changing one amount would do to a bake.

Every pair at once

Read a cell by its row and column. Caramel cells rise together, slate cells move in opposite directions, and the deeper the color the stronger the relationship. Pale cells with grey numbers are not distinguishable from no relationship with 513 recipes (p of 0.05 or more).

Fat and sugar: rho 0.26, weak0.26Fat and egg: rho −0.11, very weak−0.11Sugar and egg: rho 0.19, very weak0.19Fat and leavening: rho 0.06, negligible, not distinguishable from zero0.06Sugar and leavening: rho 0.34, weak0.34Egg and leavening: rho 0.11, very weak0.11Fat and salt: rho 0.23, weak0.23Sugar and salt: rho 0.39, weak0.39Egg and salt: rho 0.10, very weak0.10Leavening and salt: rho 0.25, weak0.25SugarEggLeaveningSaltFatSugarEggLeavening
All 10 pairs as a table
Spearman correlation for every pair of ratios, strongest first
PairRhoStrengthp
Sugar and salt0.39weakunder 0.001
Sugar and leavening0.34weakunder 0.001
Fat and sugar0.26weakunder 0.001
Leavening and salt0.25weakunder 0.001
Fat and salt0.23weakunder 0.001
Sugar and egg0.19very weakunder 0.001
Fat and egg−0.11very weak0.013
Egg and leavening0.11very weak0.014
Egg and salt0.10very weak0.021
Fat and leavening0.06negligible0.15

The three clearest relationships

The strongest pairs that reach rho 0.20 either way with a p-value under 0.01. Each dot is a recipe; the line joins the median of the second ingredient within each fifth of recipes ranked by the first.

  1. Recipes with more sugar tend to use more salt

    rho 0.39 across 513 recipes · weak · p under 0.001

    The third of recipes with the most sugar use a median of 0.8% salt; the third with the least sugar, 0.4%.

    0%50%100%150%200%0%1%2%3%Sugar, % of flour →↑ Salt, % of flour
  2. Recipes with more sugar tend to use more leavening

    rho 0.34 across 513 recipes · weak · p under 0.001

    The third of recipes with the most sugar use a median of 1.9% leavening; the third with the least sugar, 0.7%.

    0%50%100%150%200%0%2%4%6%Sugar, % of flour →↑ Leavening, % of flour
  3. Recipes with more fat tend to use more sugar

    rho 0.26 across 513 recipes · weak · p under 0.001

    The third of recipes with the most fat use a median of 76% sugar; the third with the least fat, 56%.

    0%50%100%150%0%50%100%150%200%Fat, % of flour →↑ Sugar, % of flour

What moves on its own

Every ingredient moves with at least one other: none has its strongest correlation under 0.15.

The pairs closest to unrelated: fat and leavening (0.06).

How the numbers are made

Spearman's rho is the ordinary correlation of the two rankings, so it measures whether one amount tends to rise with the other, in a straight line or not, and a single extreme recipe moves it little. A recipe with none of an ingredient ranks lowest on it. An ingredient fewer than 12 recipes use is left out of the matrix.

The p-value is the chance of a rho at least this far from zero if the two amounts were unrelated. With 10 pairs tested, about 0.5 would pass 0.05 by chance alone even if no ingredient were related to another, which is why the relationships explained above must pass 0.01 and reach 0.20.

Every number is divided by the same flour weight, so a recipe light on flour reads high on every ingredient at once. That nudges every correlation toward positive: part of a positive rho can be flour, not the two ingredients. A negative one holds despite it.

A correlation describes the recipes as published. “Recipes with more fat tend to use…” is a statement about what bakers write down together, not a rule that adding one forces the other. Plot any two ingredients to see the recipes behind a number.