The Maths You Actually NeedLesson 40 of 76

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

Exponentials, decay, and the memory of a moving average

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 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

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

Repeated multiplication has a shape

Multiply 0.9 by itself and watch what happens.

Text
0.9^1  = 0.900
0.9^5  = 0.590
0.9^10 = 0.349
0.9^22 = 0.098
0.9^44 = 0.010

Every ten steps the value falls by roughly the same factor, about 0.35. That is exponential decay, and it has a half-life: the number of steps to halve. For a factor β the half-life is ln 0.5 / ln β. For 0.9 that is −0.693 / −0.105 = 6.6 steps. For 0.99 it is 69 steps; for 0.999 it is 693. The half-life of β close to 1 is approximately 0.693 / (1 − β), a rule worth memorising.

Growth is the mirror image. 1.01^100 = 2.70, which is e to two decimal places, and this is not a coincidence: (1 + 1/n)^n approaches e as n grows, which is why e turns up whenever something compounds continuously.

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) ‘Exponentials, decay, and the memory of a moving average’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/exponentials-decay-and-moving-averages (Accessed: 29 November 2026).