The Maths You Actually NeedLesson 48 of 76

Module 5 · Logarithms, information and the shape of a loss

Power laws, and the straight line on a log-log plot

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 10 of 10 in this chapter

This chapter’s goalCompute a cross-entropy and a KL divergence by hand from two small distributions and say which part of a training loss is irreducible, derive the squared-error and cross-entropy losses from a stated noise assumption, compute a softmax and its gradient for a given set of logits, and explain by the overflow limit of float32 why every library subtracts the maximum before exponentiating.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Zipf’s law: a straight line whose slope is the exponent02.5504Log base ten of the word’s frequency rankLog base ten of its count per million words—— English word frequencies, rank 1 to 10,000A slope of minus one means frequency is proportional to one over rank, so the hundredth commonest wordappears about a hundredth as often as the first. Read the slope with a ruler, then ask what the lineis being asked to promise beyond the points it was drawn through.
A slope of minus one means frequency is proportional to one over rank, so the hundredth commonest word appears about a hundredth as often as the first. Read the slope with a ruler, then ask what the line is being asked to promise beyond the points it was drawn through.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Two shapes that look alike and are not

An exponential, y = c × b^x, grows or decays by a fixed factor for each fixed step in x. A power law, y = c × x^k, changes by a fixed factor for each fixed ratio in x: doubling x always multiplies y by 2^k, whether x goes from 1 to 2 or from a million to two million. Both curve on ordinary axes, and both are easily mistaken for each other by eye.

Logs separate them. Take logs of the power law:

Text
log y = log c + k × log x

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Power laws, and the straight line on a log-log plot’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/power-laws-and-log-log-plots (Accessed: 29 November 2026).