liveBook · Manning

Sampling

As explained in Delivering Machine Learning Projects: From design to deployment

Sampling is the process of selecting a subset of observations from a larger population or data set.

Sampling selects observations for modeling, but random selection can miss important differences in how data is distributed across a range. section 6.1.3

Use exploratory analysis to make sampling decisions:

  • Inspect plots for uneven dispersal, especially where behavior differs between lower and upper value ranges. section 6.1.3
  • Check whether the selected observations preserve meaningful distributions, such as readings across the days of a year. section 6.1.3

Tips, bills, and sensor readings

A tips-versus-bills plot reveals different dispersal patterns for mid-sized and larger bills. A sensor-reading count by day exposes the expected lower frequency of leap day, helping validate coverage before modeling. section 6.1.3

Figure 6.2 Tips versus bills (checks) at a restaurant from the Wikipedia EDA page. By Visnut, own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=25703576

Use the tips-versus-bills plot to see why a random sample may fail to represent important regions of a data set. section 6.1.3

How Delivering Machine Learning Projects: From design to deployment covers it

How deep it goes
Warns against random selection and uses plots to inspect distribution, without defining formal sampling methods.
Examples
Uses restaurant tips and bills plus temperature readings distributed across days of the year.
What you can do after
Evaluate whether a sample preserves distributional information needed by modeling algorithms.
How it connects
Connects exploratory data analysis with data-set design and modeling.

Also explained in

Compare how 23 books explain sampling →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Delivering Machine Learning Projects: From design to deployment. The section links point to the parts of the book it draws on.