12.1 Theoretical vs. Experimental Probability, Sample Spaces & Counting Principles (Permutations/Combinations)

Key Takeaways

  • Kolmogorov's axioms (P(E) ≥ 0, P(S) = 1, and additivity for disjoint events) imply 0 ≤ P(E) ≤ 1, with P(∅) = 0 for impossible events and P(S) = 1 for the certain event.

  • The complement rule establishes that P(E') = 1 - P(E), providing an essential computational shortcut for 'at least one' problems where P(at least one) = 1 - P(none).

  • The Law of Large Numbers dictates that as the number of independent trials increases without bound, the empirical relative frequency converges toward the theoretical probability.

  • The Fundamental Counting Principle states that for k sequential stages with n₁, n₂, ..., nₖ possibilities, the total number of distinct outcomes is the product n₁ × n₂ × ... × nₖ.

  • Order matters for Permutations (P(n, r) = n! / (n - r)!), such as rankings or assigning specific roles, whereas order does not matter for Combinations (C(n, r) = n! / [r!(n - r)!]), such as selecting committees or hands of cards.

Last updated: September 2026

12.1 Theoretical vs. Experimental Probability, Sample Spaces & Counting Principles

Probability theory serves as the mathematical foundation for reasoning about uncertainty, risk, and chance. In middle-grades mathematics (Grades 4–8), students transition from qualitative descriptions of likelihood ("unlikely," "equally likely," "certain") to quantitative ratio models and formal combinatorial reasoning. For educator candidates, mastering this progression requires both a rigorous grasp of axiomatic probability and the pedagogical fluency to unpack counting principles, sample spaces, and probability models across multiple concrete and visual representations.


Formal Axioms of Probability & Foundational Terminology

Modern probability theory rests upon the axiomatic framework established by Andrey Kolmogorov in 1933. Understanding these definitions prevents common conceptual pitfalls and establishes clear boundaries for mathematical discourse.

Core Terminology

  • Random Experiment: An observational process or procedure that can be repeated under identical conditions, producing well-defined outcomes that cannot be predicted with certainty prior to execution (e.g., tossing a fair coin, rolling an eight-sided die, drawing a marble from an urn).
  • Trial: A single execution or performance of a random experiment.
  • Outcome: A single, elementary result of one trial of a random experiment.
  • Sample Space (SS or Ω\Omega): The comprehensive set of all possible elementary outcomes of a random experiment. The cardinality of a finite sample space is denoted ∣S∣|S| or n(S)n(S).
  • Event (EE): Any subset of the sample space (E⊆SE \subseteq S). An event may consist of a single elementary outcome (simple event) or multiple outcomes (compound event). An event EE is said to occur if the observed outcome of the experiment belongs to set EE.

The Kolmogorov Probability Axioms

For a sample space SS and an event E⊆SE \subseteq S, the probability function PP assigns a real number to EE satisfying three foundational axioms:

  1. Axiom 1 (Non-Negativity): The probability of any event EE is a non-negative real number: P(E)≥0P(E) \ge 0
  2. Axiom 2 (Total Probability / Certainty): The probability of the entire sample space SS equals 1: P(S)=1P(S) = 1
  3. Axiom 3 (Additivity for Mutually Exclusive Events): If events E1,E2,E3,…E_1, E_2, E_3, \dots are pairwise disjoint (mutually exclusive, meaning Ei∩Ej=∅E_i \cap E_j = \emptyset for all i≠ji \ne j), then the probability of their union is the sum of their individual probabilities: P(⋃i=1∞Ei)=∑i=1∞P(Ei)P\left(\bigcup_{i=1}^{\infty} E_i\right) = \sum_{i=1}^{\infty} P(E_i)

Direct Corollaries

  • Impossible Event: The probability of the empty set (an impossible event) is zero: P(∅)=0P(\emptyset) = 0
  • The Probability Scale: Combining the axioms shows that every probability satisfies 0≤P(E)≤10 \le P(E) \le 1. In middle-school classrooms, this scale is mapped onto benchmark representations:
    • P(E)=0P(E) = 0: Impossible event (e.g., rolling a 7 on a standard six-sided die).
    • 0<P(E)<0.50 < P(E) < 0.5: Unlikely event.
    • P(E)=0.5P(E) = 0.5 (50%50\%): As likely to occur as not (e.g., obtaining heads on a fair coin toss).
    • 0.5<P(E)<10.5 < P(E) < 1: Likely event.
    • P(E)=1P(E) = 1: Certain event (e.g., drawing a red marble from a bag containing only red marbles).

Sample Space Representations: Lists, Trees, Grids & Continuous Models

A critical competency evaluated in middle-school educator assessments is the ability to construct, enumerate, and interpret sample spaces using systematic representations.

1. Systematic Listing (Lexicographic Ordering)

When outcomes are finite and small, listing outcomes systematically prevents omissions or duplicate counting. For example, tossing three fair coins yields a sample space of size 23=82^3 = 8:

S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}S = \{\text{HHH}, \text{HHT}, \text{HTH}, \text{HTT}, \text{THH}, \text{THT}, \text{TTH}, \text{TTT}\}

Structuring the list alphabetically or hierarchically ensures that every branch of the sample space is accounted for.

2. Tree Diagrams

A tree diagram visualizes multi-stage experiments by displaying branches for each possible outcome at successive stages.

  • Root: Represents the start of the experiment.
  • First-Tier Branches: Represent outcomes of stage 1, labeled with their respective probabilities.
  • Second-Tier Branches: Extend from each first-tier node, representing conditional or sequential outcomes of stage 2.
  • Terminal Paths: Each complete path from the root to a terminal leaf represents one elementary compound outcome. The probability of any terminal outcome is the product of the branch probabilities along that path.

3. Two-Dimensional Outcome Tables and Grids

For experiments involving two simultaneous or sequential stages, a two-dimensional grid (or Cayley table) is highly effective. The classic example is rolling two standard six-sided dice:

  • Rows represent the outcome of Die 1 (1,2,3,4,5,61, 2, 3, 4, 5, 6).
  • Columns represent the outcome of Die 2 (1,2,3,4,5,61, 2, 3, 4, 5, 6).
  • Each cell represents an ordered pair (x,y)(x, y), producing ∣S∣=6×6=36|S| = 6 \times 6 = 36 equally likely elementary outcomes.
  • Examining sums reveals why sums are not equally likely: a sum of 2 occurs in only 1 cell (1,1)(1, 1), whereas a sum of 7 occurs along the main counter-diagonal in 6 cells: (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1), yielding P(Sum=7)=636=16P(\text{Sum} = 7) = \frac{6}{36} = \frac{1}{6}.

4. Continuous and Geometric Probability Models

When a sample space consists of an infinite continuum of outcomes (e.g., time, length, area, angle of a spinner), discrete counting cannot be applied. Instead, probability is determined geometrically via ratio measures:

P(E)=Measure of Event Region EMeasure of Total Sample Space SP(E) = \frac{\text{Measure of Event Region } E}{\text{Measure of Total Sample Space } S}

For a circular spinner divided into sectors with central angles θi\theta_i:

P(Sector i)=θi360∘P(\text{Sector } i) = \frac{\theta_i}{360^\circ}

For a dartboard target with an inner bullseye of radius rr inscribed within a total circular target of radius RR:

P(Bullseye)=πr2πR2=(rR)2P(\text{Bullseye}) = \frac{\pi r^2}{\pi R^2} = \left(\frac{r}{R}\right)^2

The Complement of an Event

The complement of an event EE, denoted E′E' (or EcE^c or Eˉ\bar{E}), consists of all outcomes in the sample space SS that do not belong to EE.

Because EE and E′E' partition the sample space into two disjoint subsets (E∪E′=SE \cup E' = S and E∩E′=∅E \cap E' = \emptyset), Kolmogorov's third axiom dictates:

P(E∪E′)=P(E)+P(E′)=P(S)=1P(E \cup E') = P(E) + P(E') = P(S) = 1

Rearranging produces the Complement Rule:

P(E′)=1−P(E)andP(E)=1−P(E′)P(E') = 1 - P(E) \quad \text{and} \quad P(E) = 1 - P(E')

The Strategic Value of the Complement Rule: "At Least One" Problems

On educator certification exams, direct calculation of compound probabilities involving phrases like "at least one" is computationally tedious because it requires summing probabilities for 1 success, 2 successes, 3 successes, up to kk successes. The complement of "at least one" is strictly "none" (zero successes):

P(at least one success)=1−P(zero successes)P(\text{at least one success}) = 1 - P(\text{zero successes})

Calculating the single case of zero successes and subtracting from 1 reduces multi-step algebra to a rapid, error-free computation.


Theoretical vs. Experimental Probability & The Law of Large Numbers

A central focus of middle-grades instruction is distinguishing between the ideal mathematical prediction and real-world empirical observations.

Theoretical (Classical) Probability

Theoretical probability is calculated a priori based on mathematical deduction, assuming that all elementary outcomes in a finite sample space are equally likely (the principle of indifference):

P(E)=n(E)n(S)=Number of Favorable Outcomes in ETotal Number of Possible Outcomes in SP(E) = \frac{n(E)}{n(S)} = \frac{\text{Number of Favorable Outcomes in } E}{\text{Total Number of Possible Outcomes in } S}
  • Example: In rolling a fair six-sided die, the theoretical probability of rolling a prime number (set {2,3,5}\{2, 3, 5\}) is: P(Prime)=36=0.5P(\text{Prime}) = \frac{3}{6} = 0.5

Experimental (Empirical) Probability

Experimental probability is calculated a posteriori based on observed empirical data generated across repeated trials of an experiment:

P^(E)=f(E)N=Observed Frequency of Event ETotal Number of Experimental Trials N\hat{P}(E) = \frac{f(E)}{N} = \frac{\text{Observed Frequency of Event } E}{\text{Total Number of Experimental Trials } N}
  • Example: If a student tosses a plastic cup 100 times and it lands upright 28 times, the experimental probability of landing upright is: P^(Upright)=28100=0.28\hat{P}(\text{Upright}) = \frac{28}{100} = 0.28

Notice that for asymmetric physical objects (such as thumbtacks or cups), theoretical probability cannot be deduced analytically; educators must rely entirely on experimental relative frequency.

The Law of Large Numbers (LLN)

First formulated mathematically by Jacob Bernoulli in 1713, the Law of Large Numbers bridges empirical observation and theoretical expectation:

The Law of Large Numbers: As the number of independent, identical trials NN increases without bound (N→∞N \to \infty), the empirical relative frequency f(E)N\frac{f(E)}{N} converges in probability toward the theoretical probability P(E)P(E): lim⁡N→∞P(∣f(E)N−P(E)∣<ϵ)=1for any ϵ>0\lim_{N \to \infty} P\left(\left| \frac{f(E)}{N} - P(E) \right| < \epsilon\right) = 1 \quad \text{for any } \epsilon > 0

The Law of Large Numbers vs. The Gambler's Fallacy

A persistent cognitive misconception among middle-school students (and many adults) is the Gambler's Fallacy (or "Law of Averages"). Students frequently believe that if a fair coin lands on heads 5 times in a row, a tail is "due" on the 6th flip to "even out" the distribution.

The Pedagogical Reality: Chance processes have no memory. Each toss of a fair coin is statistically independent with an unvarying probability P(Head)=0.5P(\text{Head}) = 0.5. The Law of Large Numbers does not operate by "compensating" for past streaks with opposite streaks; rather, it operates through dilution (swamping). As trials accumulate into the thousands and millions, the initial deficit of a few heads or tails becomes an infinitesimal fraction of the total trial count NN, driving the relative ratio toward 0.50.5 without any individual trial altering its fair probability.


Combinatorial Counting Principles

When sample spaces become large, manual enumeration is impossible. Combinatorial analysis provides the computational machinery to determine sample space sizes efficiently.

1. The Fundamental Counting Principle (Multiplication Principle)

If an experiment or procedure can be broken down into a sequence of kk independent successive stages or choices, such that:

  • Stage 1 can occur in n1n_1 ways,
  • Stage 2 can occur in n2n_2 ways,
  • …\dots
  • Stage kk can occur in nkn_k ways, then the total number of distinct composite outcomes for the entire procedure is the product of the number of choices at each stage:
Total Outcomes=n1×n2×n3×⋯×nk\text{Total Outcomes} = n_1 \times n_2 \times n_3 \times \dots \times n_k

Application: How many distinct 3-character security access codes can be formed using a letter followed by two digits? Stage 1 (letter): 26 choices; Stage 2 (digit): 10 choices; Stage 3 (digit): 10 choices. Total outcomes =26×10×10=2,600= 26 \times 10 \times 10 = 2,600.

2. Factorial Notation and Properties

For any positive integer nn, the factorial n!n! represents the product of all positive integers less than or equal to nn:

n!=n×(n−1)×(n−2)×⋯×3×2×1n! = n \times (n - 1) \times (n - 2) \times \dots \times 3 \times 2 \times 1

By mathematical convention and axiomatic definition:

0!=10! = 1

This convention preserves the algebraic consistency of permutation and combination formulas (e.g., P(n,n)=n!(n−n)!=n!0!=n!P(n, n) = \frac{n!}{(n-n)!} = \frac{n!}{0!} = n!).

3. Permutations (Order Matters)

A permutation is an ordered arrangement of a subset of elements chosen from a set. In permutations, changing the sequence of the selected items creates a distinctly new outcome.

  • Arranging nn distinct objects: The number of ways to arrange all nn objects in a linear sequence is: P(n,n)=n!P(n, n) = n!
  • Arranging rr objects chosen from nn distinct objects (nPrnPr or P(n,r)P(n, r)): P(n,r)=n!(n−r)!=n(n−1)(n−2)…(n−r+1)P(n, r) = \frac{n!}{(n - r)!} = n(n - 1)(n - 2)\dots(n - r + 1) Contextual Indicators: Officer positions (President, Vice President, Secretary), race rankings (1st, 2nd, 3rd place), assigning distinct classroom responsibilities, or scheduling sequential presentations.

Permutations with Indistinguishable (Repeated) Elements

If a collection of nn total objects contains n1n_1 identical items of type 1, n2n_2 identical items of type 2, ..., and nkn_k identical items of type kk (where n1+n2+⋯+nk=nn_1 + n_2 + \dots + n_k = n), the number of unique linear arrangements is:

Arrangements=n!n1!×n2!×⋯×nk!\text{Arrangements} = \frac{n!}{n_1! \times n_2! \times \dots \times n_k!}

Classic Problem: How many unique 11-letter arrangements can be formed from the word MISSISSIPPI? Total letters n=11n = 11, with frequencies: M (11), I (44), S (44), P (22):

Arrangements=11!1!×4!×4!×2!=39,916,8001×24×24×2=39,916,8001,152=34,650\text{Arrangements} = \frac{11!}{1! \times 4! \times 4! \times 2!} = \frac{39,916,800}{1 \times 24 \times 24 \times 2} = \frac{39,916,800}{1,152} = 34,650

4. Combinations (Order Does NOT Matter)

A combination is an unordered collection or subset of elements selected from a larger set. In combinations, the order of selection is completely irrelevant; a group containing {A,B,C}\{A, B, C\} is identical to {C,B,A}\{C, B, A\}.

  • Formula for Combinations (nCrnCr, C(n,r)C(n, r), or (nr)\binom{n}{r}):

    C(n,r)=(nr)=n!r!(n−r)!=P(n,r)r!C(n, r) = \binom{n}{r} = \frac{n!}{r!(n - r)!} = \frac{P(n, r)}{r!}

    Notice that the combination formula divides the permutation count P(n,r)P(n, r) by r!r!. The factor r!r! eliminates the redundancies generated by the r!r! internal orderings of the selected group.

  • Key Combinatorial Identities & Pascal's Triangle:

    • Symmetry Identity: (nr)=(nn−r)\binom{n}{r} = \binom{n}{n - r} (Choosing rr items to include is mathematically identical to choosing n−rn - r items to exclude).
    • Boundary Conditions: (n0)=1\binom{n}{0} = 1, (n1)=n\binom{n}{1} = n, (nn)=1\binom{n}{n} = 1.
    • Pascal's Addition Formula: (nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n - 1}{r - 1} + \binom{n - 1}{r}. Contextual Indicators: Selecting committees, forming study groups, choosing pizza toppings, drawing lottery numbers, or picking hands of cards.

Comparison: Permutations vs. Combinations

Analytical ParameterPermutations (nPrnPr)Combinations (nCrnCr or (nr)\binom{n}{r})
Significance of OrderOrder is essential. Reordering the selected elements produces a completely different outcome.Order is irrelevant. Reordering the selected elements produces the exact same outcome.
Algebraic FormulaP(n,r)=n!(n−r)!P(n, r) = \frac{n!}{(n - r)!}C(n,r)=n!r!(n−r)!=P(n,r)r!C(n, r) = \frac{n!}{r!(n - r)!} = \frac{P(n, r)}{r!}
Relative MagnitudeConsistently larger: P(n,r)≥C(n,r)P(n, r) \ge C(n, r) for all r≥1r \ge 1.Consistently smaller (divided by r!r!).
Contextual Problem KeywordsArrange, sequence, order, rank, position, schedule, first/second/third, code, permutation.Group, committee, team, delegation, subset, sample, hand of cards, unordered selection.
Classroom AnalogElecting a President, Vice President, and Treasurer from a club.Selecting a 3-student delegation to attend a conference.
Algebraic ConnectionArranging rr objects out of nn available.Selecting rr objects, corresponding directly to row nn of Pascal's Triangle.

Step-by-Step Worked Mathematical Examples

Worked Example 1: Differentiating Combinations from Permutations in Club Leadership

Problem: A middle school STEM club consists of 12 active members (7 girls and 5 boys).

  1. Part A: In how many ways can the club elect a President, a Vice President, and a Secretary, assuming no student can hold more than one office?
  2. Part B: In how many ways can the club choose a 4-person committee to organize a regional science fair if the committee must consist of exactly 2 girls and 2 boys?

Step-by-Step Solution:

  • Part A Analysis:

    • The three offices (President, Vice President, Secretary) represent distinct, ordered roles. Order matters, so this is a permutation of 12 students taken 3 at a time (n=12,r=3n = 12, r = 3):
    P(12,3)=12!(12−3)!=12!9!=12×11×10=1,320P(12, 3) = \frac{12!}{(12 - 3)!} = \frac{12!}{9!} = 12 \times 11 \times 10 = 1,320
    • There are 1,320 distinct ways to fill the executive positions.
  • Part B Analysis:

    • A committee is an unordered group; order does not matter within the committee, requiring combinations.
    • The selection involves two independent compound stages governed by the Fundamental Counting Principle:
      • Stage 1 (Select 2 girls from 7 available): C(7,2)=(72)=7!2!(7−2)!=7×62×1=21C(7, 2) = \binom{7}{2} = \frac{7!}{2!(7 - 2)!} = \frac{7 \times 6}{2 \times 1} = 21
      • Stage 2 (Select 2 boys from 5 available): C(5,2)=(52)=5!2!(5−2)!=5×42×1=10C(5, 2) = \binom{5}{2} = \frac{5!}{2!(5 - 2)!} = \frac{5 \times 4}{2 \times 1} = 10
    • By the Fundamental Counting Principle, multiply the counts of the two independent stages: Total Committees=C(7,2)×C(5,2)=21×10=210\text{Total Committees} = C(7, 2) \times C(5, 2) = 21 \times 10 = 210
    • There are 210 distinct valid committees.

Worked Example 2: The Complement Rule in a Multi-Coin Experiment

Problem: A student flips 6 fair coins simultaneously. What is the theoretical probability of obtaining at least one tail?

Step-by-Step Solution:

  • Step 1: Identify the total sample space size: Each coin has 2 independent outcomes (Heads or Tails). By the Fundamental Counting Principle: ∣S∣=26=64|S| = 2^6 = 64
  • Step 2: Recognize the computational complexity of direct summation: Direct calculation of "at least one tail" requires calculating the outcomes for 1 tail, 2 tails, 3 tails, 4 tails, 5 tails, and 6 tails: n(≥1 tail)=(61)+(62)+(63)+(64)+(65)+(66)=6+15+20+15+6+1=63n(\ge 1 \text{ tail}) = \binom{6}{1} + \binom{6}{2} + \binom{6}{3} + \binom{6}{4} + \binom{6}{5} + \binom{6}{6} = 6 + 15 + 20 + 15 + 6 + 1 = 63
  • Step 3: Apply the Complement Rule: The complement of the event EE ("at least one tail") is the event E′E' ("zero tails"), which means obtaining all Heads (HHHHHH): n(E′)=n(All Heads)=1n(E') = n(\text{All Heads}) = 1 P(E′)=164P(E') = \frac{1}{64}
  • Step 4: Compute P(E)P(E) via complement subtraction: P(E)=1−P(E′)=1−164=6364≈0.9844 (or 98.44%)P(E) = 1 - P(E') = 1 - \frac{1}{64} = \frac{63}{64} \approx 0.9844 \text{ (or } 98.44\%\text{)}

Diagnostic Misconceptions & Pedagogical Strategies

  1. Colloquial Terminology vs. Mathematical Meaning ("Combination Locks"): Middle-school students are confused by everyday objects called "combination locks." A dial lock where the code is 15-28-04 is mathematically a permutation lock because entering 28-15-04 will not open it (order is critical). Pedagogical strategy: Have students analyze why everyday language is mathematically inverted, reinforcing that mathematical combinations have no concept of sequence.
  2. Assuming Non-Equally Likely Outcomes are Uniform: When students roll two dice, they frequently observe 11 possible sums (integers 2 through 12) and incorrectly conclude that P(Sum=2)=111P(\text{Sum} = 2) = \frac{1}{11} and P(Sum=7)=111P(\text{Sum} = 7) = \frac{1}{11}. Pedagogical strategy: Guide students to build a full 6×66 \times 6 coordinate grid showing all 36 ordered pairs. Explicitly demonstrate that while there are 11 distinct sum values, there are 36 distinct elementary outcomes, illustrating that theoretical probability formulas apply only to sets of equally likely outcomes.
  3. Additive vs. Multiplicative Combination Errors: When solving multi-stage counting problems (such as choosing 2 seventh-graders and 2 eighth-graders), students frequently add the combinations (21+10=3121 + 10 = 31) instead of multiplying them (21×10=21021 \times 10 = 210). Pedagogical strategy: Use small concrete subsets (e.g., 2 shirts and 3 pants) and tree diagrams to physically show that each choice in the first set pairs with every choice in the second set, cementing multiplication as the required operation.
Loading diagram...
Combinatorial Counting Method Decision Tree
Test Your Knowledge

A middle school mathematics team has 14 qualifying students consisting of 8 seventh-graders and 6 eighth-graders. The coach must select a competition delegation of 4 students such that the delegation contains exactly 2 seventh-graders and 2 eighth-graders. How many distinct delegations can be formed, and which combinatorial principle governs this calculation?

A

1,001 delegations; calculated as C(14, 4) because all 14 students have an equal chance of being selected regardless of grade level.

B

1,680 delegations; calculated as P(8, 2) × P(6, 2) because students are assigned distinct competition desks.

C

420 delegations; calculated as C(8, 2) × C(6, 2) using combinations because order within the delegation does not matter, combined via the Fundamental Counting Principle.

D

43 delegations; calculated as C(8, 2) + C(6, 2) because seventh-graders and eighth-graders represent mutually exclusive grade categories.

Test Your Knowledge

During a probability investigation, middle school students roll a standard fair six-sided die 1,200 times. The face showing '4' appears 174 times (an empirical relative frequency of 0.145). A student asserts that on the next 600 rolls, the face '4' is mathematically required to appear more frequently than 1/6 of the time to compensate for the previous deficit and restore balance. Which principle accurately evaluates this student's reasoning?

A

The student's claim is refuted by the Law of Large Numbers and trial independence; each die roll is independent with a constant probability of 1/6, and relative frequency converges toward theoretical probability through accumulation of trials rather than corrective compensation.

B

The student's claim is correct under the Law of Large Numbers, because finite sample spaces must mathematically balance out so that all outcomes achieve equal frequency over 1,800 trials.

C

The student's claim is refuted by the Complement Rule, because the complement of rolling a 4 increases in probability after repeated underperformance.

D

The student's claim is supported by the Fundamental Counting Principle, because remaining outcomes in the sample space decrease in probability as previous rolls accumulate.

Test Your Knowledge

A security padlock requires a 4-digit numeric code selected from the digits 0 through 9. How many distinct valid codes can be programmed if no digit may be repeated and the first digit cannot be 0, and how is this value determined?

A

5,040 codes; calculated as the permutation P(10, 4) because 10 distinct digits are arranged in 4 ordered positions.

B

4,536 codes; calculated using the Fundamental Counting Principle with restricted choices (9 × 9 × 8 × 7) because position denotes identity and 0 is restricted from the first position.

C

3,024 codes; calculated as the permutation P(9, 4) because excluding 0 from the first position completely removes it from the usable set of digits.

D

210 codes; calculated as the combination C(10, 4) because numeric security combinations represent unordered collections of digits.

Sections you finish are checked off in the contents.