Let's first look at how to use a polygon vector layer with zones to extract the statistics from a continuous raster layer.