7.2. Visualizing Numerical Distributions — Computational and Inferential Thinking
Many of the variables that data scientists study are quantitative or numerical. Their values are numbers on which you can perform arithmetic. Examples that we have seen include the number of periods in chapters of a book, the amount of money made by movies, and the age of people in the United States. The values of a categorical variable can be given numerical codes, but that doesn’t make the variable quantitative. In the example in which we studied Census data broken down by age group, the categorial variable SEX had the numerical codes 1 for ‘Male,’ 2 for ‘Female,’ and 0 for the aggregate of both groups 1 and 2. While 0, 1, and 2 are numbers, in this context it doesn’t make sense to subtract 1 from 2, or take the average of 0, 1, and 2, or perform other arithmetic on the three values. SEX is a categorical variable even though the values have been given a numerical code. For our main example, we will return to a dataset that we studied when we were visualizing categorical data. It is t
Redirecting... Redirecting to https://inferentialthinking.com/chapters/07/2/visualizing-numerical-distributions/index.html
related reading
- Seeing Theoryseeing-theory.brown.edu
- Amelia Wattenbergerwattenberger.com
- Datacurve | The data engine for frontier AIdatacurve.ai
- Data Humanism - giorgialupigiorgialupi.com
- From data to Viz | Find the graphic you needdata-to-viz.com
- Sundial: Opinionated Intelligence for data teamssundial.ai
- Making Internet Things, part 3: Storytellingpudding.cool
- Anthropic/values-in-the-wild · Datasets at Hugging Facehuggingface.co
- Notebooksbactra.org
- How to Measure Anything — LessWronglesswrong.com
- The Visual Display of Quantitative Information | Edward Tufteedwardtufte.com
- Books Similar To Good Charts By Scott Berinato (updated 2025) | Good Booksgoodbooks.io