Beautiful Math
Path

Foundations · Lesson 3

Fractions and ratios

A fraction is a number; a ratio is a comparison. Both speak the language of relative size - the same language probability and many ML metrics will speak later.

Core ~19 minDeep study ~54 minWhat is a ratio really?Why do probabilities look like fractions?

Before this: What numbers are, Operations as transformations

How this idea was born

People rarely need only absolute size. A harvest of forty measures means little until you know forty out of two hundred. Maps need "this length stands for that length." Recipes, wages, and medicine doses speak in parts and comparisons: relative size, not only raw count.
Greek mathematics ran into a crisis when lengths appeared that were not ratios of whole numbers (the diagonal of a unit square is the classic case). The hope that "all is whole-number ratio" cracked. Eudoxus of Cnidus answered by rebuilding comparison carefully. His theory of proportion, preserved in Euclid's Book V, treats two ratios as matching when no whole-number test can tell them apart. Dedekind later tipped his hat to the same spirit while constructing the reals. The ethic is refusing to abandon a question just because the first story failed.
For a modern rereader, this chapter is still the language of relative size: fractions as numbers on the line, ratios as comparisons of like magnitudes. You will return here for percentages, map scales, probability, precision and recall, and every time someone confuses "part of a whole" with "how this compares to that."

First principles

Two ideas people blur

People say "fraction" and "ratio" as if they were twins. They are relatives, not clones.
  • A fraction ab\frac{a}{b} (with b0b \neq 0) is a number on the line.
  • A ratio a:ba : b is a comparison of two magnitudes of the same kind.
You can often encode a ratio as ab\frac{a}{b}, but Euclid's Book V is careful: it talks about when two comparisons are the same.
Start with same-kind quantities - length with length, mass with mass. Mixing kinds ("33 meters to 22 kilograms") is a rate with units, not a pure Euclidean ratio.

Parts of a whole

The school fraction 34\frac{3}{4} says: partition a whole into 44 equal parts and take 33. Equivalently, 34\frac{3}{4} is the number xx such that 4x=34x = 3.
3/46/8same ratio - different clothes
Three of four equal parts - same relative size as six of eight.
Equivalent fractions are the same relationship wearing different clothes:
34=68\frac{3}{4} = \frac{6}{8}
because 3×8=4×63 \times 8 = 4 \times 6. Cross-multiplying is not a magic spell; it is the sameness of relative relationship.
3/4
A fraction names a part of a whole. Three fourths means three equal slices out of four.

Ratios: sameness of comparison

Euclid's Book V, Definition 5 says - in modern paraphrase - that a:b=c:da : b = c : d when for every pair of whole numbers m,nm, n, the comparison of mama with nbnb matches the comparison of mcmc with ndnd.
The spirit is light: two ratios are the same when no whole-number test can tell them apart.
This mattered because some lengths are incommensurable - not a ratio of whole numbers - yet still comparable. The diagonal of a unit square and the side still have a ratio in Eudoxus's sense.
Attribution note: Archimedes associates a key proportion idea with Eudoxus; the theory as we meet it is preserved in Euclid. Historians urge some caution about sole attribution. The ethic is solid either way: rebuild comparison carefully when the first story fails.

Percentages and normalization

Percentages are ratios with denominator 100100 by convention. Softmax (later) and probability distributions are families of relative weights forced to sum to 11. Same dialect, different clothes.

Worked intuition

Example 1 - equivalence.
Is 1520\frac{15}{20} the same as 34\frac{3}{4}? Check 15×4=6015 \times 4 = 60 and 20×3=6020 \times 3 = 60. Same relative relationship.
Example 2 - map scale.
A map marked 1:50,0001:50{,}000 means one unit on the map corresponds to 50,00050{,}000 of the same length unit on the ground. That is length-to-length ratio language, often written like a fraction of like quantities.
Example 3 - dose as rate.
"55 mg per kg" mixes mass of drug with mass of body. It is a rate, not a pure Euclidean ratio of one kind. Keep the kinds straight so the units stay honest.
Example 4 - class imbalance.
A dataset with 9090 cats and 1010 dogs has class fractions 0.90.9 and 0.10.1. Accuracy can look high while the rare class is ignored. Relative size tells the truth absolute counts hide.
Example 5 - Hilbert's Hotel as countable infinity.
The positive rationals are infinite, yet they can be paired with the natural numbers (they are countable). The reals between 00 and 11 will not fit that pairing (Cantor's diagonal argument). Some infinities are larger than others. Fractions sit on the "listable" side of that cliff.

Common confusions

  • "Fraction and ratio are synonyms." Fraction: number. Ratio: comparison. Encoding a ratio as a fraction is common and useful, but Euclid's care still matters.
  • "Every comparison is a fraction of whole numbers." Not if you allow arbitrary lengths. 2:1\sqrt{2}:1 is a ratio of magnitudes that is not a ratio of integers.
  • "Bigger denominator means bigger fraction." Only with fixed numerator. 1100<110\frac{1}{100} < \frac{1}{10}. Relative size depends on both parts.
  • "Percentages always clarify." They can hide base rates. "50%50\% improvement" from a tiny baseline is not the same story as from a large one.
  • "Probability is a different subject." Probability compares like outcomes to like totals. It speaks this chapter's language.

History and stories

Once you see ratios, you start seeing them everywhere: recipes, map scales, medical dosages per kilogram, batting averages, model precision and recall.

Real world

Cooking dilutions, map scales, medicine doses per kilogram, interest rates, gear ratios - all designed so one quantity tracks another.
Surveying and architecture lean on similar figures (geometry track) whose side ratios match. Probability in medicine (true positive rates, base rates) is ratio literacy with consequences.

Open when you want the machine-learning connection. Skip freely.

Field notes, extra examples, and glossary live here when you want more than the core path.

Carry this forward

  • Fractions are numbers; ratios are comparisons.
  • Equivalence means the same relative relationship.
  • Probability and many metrics speak this language.
  • Next: variables - naming what we do not yet know.

Read more

Go deeper when curiosity hits - videos, essays, and primary trails.

Check your understanding

A short learning loop - try a few, learn from misses, mark complete when you have engaged. No timer, no scoreboard.

1.Core idea of a ratio?
2.Why fractions matter for probability/ML?
3.3/4 names…
4.Hilbert Hotel dramatizes…
5.Eudoxus/Euclid Book V cared because…

Try at least 3 core prompts, or choose I'll return later.