Skip to content
Learn Python with BNHR

Primer P2 · Intermediate

Primer: survey sampling in one page

Primer P2 of Python for Survey Statistics, for any time: survey sampling on one page, for a learner without survey theory.

Extra P2Level Intermediate
On this page
  1. Overview
  2. Its notebooks
  3. Certification and support

Survey sampling on one page: the design, strata and PSUs, weights, the finite population correction (as fractions or counts in R, as population counts in svy), the variance of a stratified estimate and its CV. A small worked example is computed both with svy and with a few lines of numpy, and they agree. The variance follows Lohr, Sampling: Design and Analysis.

The notebooks are in your course folder; here you can read them without running anything. For reference in any module: primer: from r to python and glossary.

Certification and support

We offer additional resources, certificates, ongoing support, and other perks to those who join our instructor-led training.

Join an upcoming training to take this as an instructor-led course, or contact us to arrange one for your team or organization.

Something new

Identify results
LayerExplore a debugging drill
Debugging drill D1Debugging drill: five broken functions
AboutThe debugging drill of Python for Data Management, after module 3: five broken functions, each with one everyday mistake, to read, find, fix and explain in twenty minutes.
CoursePython for Data Management, free