Before you can read a single formula in the parent note, you need to know what each little symbol is. This page builds every one of them from nothing. Read top to bottom — each idea is used by the next.
Everything in pooling happens on a grid of numbers. This whole subject lives inside a CNN — a Convolutional Neural Network, a kind of image-processing network that stacks convolution and pooling steps. Inside a CNN this grid is called a feature map, but for now just picture a spreadsheet of numbers.
Why does the topic need this? Because pooling is nothing but an operation on such a grid — the input goes in as a grid, and a smaller grid comes out. If you don't picture the grid first, none of the symbols land anywhere. These grids are produced by convolutional layers before pooling touches them.
The grid has a number of rows and a number of columns.
Look at the figure above: it is 4 rows tall and 4 columns wide, so H=4 and W=4. We say the grid is H×W, read "H by W".
Pooling turns a bigger grid into a smaller one, so we need to distinguish the two:
Why the topic needs them: the output-size formula computes Hout, WoutfromHin, Win. Without the tags you couldn't tell which height the formula is talking about.
We need a way to point at one specific cell and say "that number, right there."
Because rows are numbered 0 up to one less than the count, the indices have a valid range:
Why the topic needs it: every pooling formula is a rule that says "take these particular cells and combine them." To say which cells, you must be able to name a cell. Xi,j is that naming tool.
We never summarise the whole grid at once — we summarise it patch by patch. The patch is a small square.
Picture a 2×2 cardboard frame you lay over the grid. Only the cells inside the frame get combined into one output number. This frame idea is closely tied to the receptive field — the region of input one output neuron "sees."
Why the topic needs it: p decides how many cells collapse into one, which controls how much the grid shrinks and how "local" the summary is.
This is the scariest-looking symbol in the parent note. Let's earn it piece by piece.
We have two coordinate systems now:
(i,j) = which output cell we are building (row/column in the small result grid),
(m,n) = which cell inside the window, starting at the window's top-left corner (m down, n right, both from 0).
The window-local indices only run across the window, so their range is fixed by p:
Read it as a two-step walk:
i⋅sjumps to where output cell i's window starts (stride s times the output index).
+m then steps inside that window to the cell we want.
Why the topic needs it: without this address formula you cannot say which input cells feed which output cell. It is the bridge between the small output grid and the big input grid.
The output-size formula is Hout=⌊sHin−p⌋+1. One new symbol: the floor.
Why the topic needs it: a window can only sit on the grid if it fits completely. A fractional number of windows is impossible — you can't have 2.5 patches. Rounding down throws away the leftover strip that no full window can cover.
Where does the +1 come from? Count the starting positions the window can take.
The same reasoning runs left-to-right for the columns, so there are two size formulas — one per direction: