liveBook · Manning

Counting

As explained in Statistics Every Programmer Needs

A counting method is a mathematical procedure or rule for determining the number of possible outcomes or arrangements.

Counting determines how many possible outcomes arise in probability and combinatorics. It provides a foundation for quantifying uncertainty, assessing risk, and structuring later statistical problem solving. section 2.0 section 2.2

Use two fundamental rules to count outcomes:

  • Apply the multiplication rule when events occur simultaneously or sequentially; multiply the numbers of choices across stages. section 2.2
  • Apply the addition rule when scenarios are mutually exclusive; add their possible outcomes. section 2.2
  • Distinguish counting rules from combinations and permutations, which address different arrangements and selections of objects. section 2.0 section 1.4.3

Counting belongs among the basic probability concepts that precede random variables, probability distributions, and more advanced quantitative techniques. Its role is conceptual and computational: clarify the outcome structure before calculating probabilities or interpreting uncertainty. section 2.0 section 1.4.3

How Statistics Every Programmer Needs covers it

How deep it goes
Defines multiplication and addition rules and distinguishes combinations from permutations, without supplying detailed worked calculations.
Examples
Uses simultaneous, sequential, and mutually exclusive event scenarios to motivate multiplication and addition rules.
What it assumes
Teaches counting within foundational probability and assumes no advanced probability background.
What you can do after
Evaluate possible-outcome structures using multiplication and addition rules before computing probabilities.
How it connects
Connects counting with probability, combinatorics, combinations, permutations, random variables, and probability distributions.

Related concepts

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