liveBook · Manning

Proportion

As explained in Grokking Statistics

The fraction or percentage of a population possessing a specified categorical attribute.

A proportion measures the fraction or percentage of a population with a particular categorical attribute. It fits clear yes-or-no questions, such as whether someone bikes to work or plays video games. section 5.6

Keep these distinctions in view:

  • Use a proportion when the outcome is categorical or binary; preserve a measurable quantity when one is available instead of forcing it into categories. section 5.6
  • Write the population proportion as P and the sample proportion as p̂. For example, 55 successes among 100 people gives p̂ = 0.55. section 5.6
  • For sample-proportion approximations, check the stated sample-size conditions and use standard error rather than the sample standard deviation. section 5.7

Video-game survey

Suppose 55 of 100 randomly sampled Americans play video games. Then p̂ = 55/100 = 0.55. A 95% confidence interval estimates the population proportion as 45.2%–64.8%. In Python, scipy can calculate the critical value and margin: margin = z * sqrt(p̂ * (1 - p̂) / n). Interpret the interval carefully: 95% of similarly constructed intervals would contain the true proportion. section 5.8

Figure 5.9 Modeling the sampling distribution of sample proportions, assigning different likelihoods to proportions of a sample

Visualizes the sampling distribution of sample proportions and the likelihood of obtaining values such as 55% when the population proportion is 60%. section 5.7

How Grokking Statistics covers it

How deep it goes
Defines P and p̂, explains sampling distributions and standard error, and works through confidence intervals without formal derivations.
Examples
Uses biking to work, sedentary lifestyles, daily steps, and video-game participation as categorical or percentage examples.
What it assumes
Assumes no prior statistics and builds from the distinction between samples, populations, categorical outcomes, and measurable quantities.
What you can do after
Apply proportions via Python and SciPy to calculate sample proportions, sampling probabilities, and confidence intervals.
How it connects
Connects proportions with populations, samples, sampling distributions, the central limit theorem, standard error, and confidence intervals.

Also explained in

Compare how 4 books explain proportion →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Statistics. The section links point to the parts of the book it draws on.