Vanilla Cake Lab126 recipes

Vanilla Cake Lab

What moves together in 126 vanilla cake recipes

When a recipe uses more of one ingredient, does it tend to use more or less of another? For every pair of the 6 ingredient ratios (grams per 100 g of flour), this page ranks all 126 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).

15 pairs in all: 2 rise together at rho 0.20 or more, none move in opposite directions at −0.20 or less, and 8 are 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 126 recipes (p of 0.05 or more).

Sugar and fat: rho 0.14, very weak, not distinguishable from zero0.14Sugar and egg: rho 0.18, very weak0.18Fat and egg: rho 0.39, weak0.39Sugar and liquid: rho −0.02, negligible, not distinguishable from zero−0.02Fat and liquid: rho 0.15, very weak, not distinguishable from zero0.15Egg and liquid: rho −0.11, very weak, not distinguishable from zero−0.11Sugar and leavening: rho −0.05, negligible, not distinguishable from zero−0.05Fat and leavening: rho 0.00, negligible, not distinguishable from zero0.00Egg and leavening: rho 0.11, very weak, not distinguishable from zero0.11Liquid and leavening: rho 0.01, negligible, not distinguishable from zero0.01Sugar and salt: rho 0.02, negligible, not distinguishable from zero0.02Fat and salt: rho 0.07, negligible, not distinguishable from zero0.07Egg and salt: rho −0.03, negligible, not distinguishable from zero−0.03Liquid and salt: rho 0.22, weak0.22Leavening and salt: rho −0.03, negligible, not distinguishable from zero−0.03FatEggLiquidLeaveningSaltSugarFatEggLiquidLeavening
All 15 pairs as a table
Spearman correlation for every pair of ratios, strongest first
PairRhoStrengthp
Fat and egg0.39weakunder 0.001
Liquid and salt0.22weak0.014
Sugar and egg0.18very weak0.041
Fat and liquid0.15very weak0.095
Sugar and fat0.14very weak0.12
Egg and liquid−0.11very weak0.20
Egg and leavening0.11very weak0.20
Fat and salt0.07negligible0.46
Sugar and leavening−0.05negligible0.56
Egg and salt−0.03negligible0.76
Leavening and salt−0.03negligible0.77
Sugar and liquid−0.02negligible0.81
Sugar and salt0.02negligible0.81
Liquid and leavening0.01negligible0.84
Fat and leavening0.00negligible0.51

The one clear relationship

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 fat tend to use more egg

    rho 0.39 across 126 recipes · weak · p under 0.001

    The third of recipes with the most fat use a median of 62% egg; the third with the least fat, 51%.

    0%50%100%150%0%25%50%75%100%Fat, % of flour →↑ Egg, % of flour

What moves on its own

  • Leavening. Nearly independent of the rest: its strongest correlation with any other ingredient is 0.11, with egg. A recipe's amount of leavening says almost nothing about its other amounts.

The pairs closest to unrelated: fat and leavening (0.00), liquid and leavening (0.01), sugar and salt (0.02) and sugar and liquid (−0.02).

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 15 pairs tested, about 0.8 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 sugar 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.