Gradient
Lesson 2.8MathCode~45 min

Sums & averages

Σ is just a for-loop. Averages, and the notation that scares people for no reason.

Module 2 · 0/9 done

Σ is a for-loop

This symbol scares more people away from machine learning than anything else: ∑\sum. It’s the Greek capital letter sigma (an “S”, for sum), and it means exactly one thing: add up a list of terms. You already know how — it’s the loop you wrote in Module 1.

Fig 2.15Each term becomes a bar; the bars add up to the total. Change the term and the stopping point n.