> anishgoyal


NotesEENG 3421: Probability and Statistics for Engineers Lecture 5

Basic Counting Principles

calendar_today   article 1485 words   access_time 10 min   replay Modified

Table of Contents

Counting Methods

Theorem 05.1 (Multiplication Principle).

For any experiment containing $N$ sub-experiments with the $i$th sub-experiment having $k_i$ outcomes, the total number of outcomes, $k$, for the experiment is:

$$k = \prod_{i=1}^N k_{i}$$

Permutations

Theorem 05.2 (Number of $k$-Permutations).
$$(n)_{k} = \frac{n!}{(n-k)!}$$

Application: Sampling Without Replacement (With Ordering)

Combinations

Theorem 05.3 (Number of $k$-Combinations).
$$\binom{n}{k} = \frac{(n)_{k}}{k!} = \frac{n!}{k!(n-k)!}$$

Application: Sampling Without Replacement (And Without Ordering)

Binomial Coefficients

Independent Trials

Definition 05.4 (Independent Trials).

A sequential experiment formed by repeating the same subexperiment with replacement Each trial has the same sample space $S_{\text{sub}}$ Outcomes across trials do not change the available outcomes on later trials

Application

$$ S=\{mm,mc,mp,cm,cc,cp,pm,pc,pp\} $$
Theorem 05.5 (Ordered Sampling With Replacement).

Given $m$ distinguishable objects, the number of ordered samples of size $n$ with replacement is

$$ m^n $$

Proof. Each position in the ordered sample has $m$ choices Apply the multiplication principle across $n$ positions

Binary Sequences

$$ 2^n $$

Alphabet Words

$$ 26^n $$

Repeated Testing Example

$$ S_{\text{sub}}=\{0,1\} $$ $$ |S|=2^4=16 $$
Theorem 05.6 (Sequential Experiment Count).

For $n$ repetitions of a subexperiment with sample space $S_{\text{sub}}=\{s_0,\dots,s_{m-1}\}$ the sample space $S$ of the sequential experiment has

$$ m^n $$

outcomes

Proof. Each trial contributes one symbol from $m$ possibilities Apply the multiplication principle across $n$ trials

Grouping Outcomes by Counts

Binary Case

$$ S_{\text{sub}}=\{0,1\} $$ $$ n_0+n_1=n $$
Theorem 05.7 (Binary Count of Sequences).

The number of observation sequences for $n$ trials with $S_{\text{sub}}=\{0,1\}$ with $0$ appearing $n_0$ times and $1$ appearing $n_1=n-n_0$ times is

$$ \binom{n}{n_1}=\binom{n}{n_0} $$

Proof. Choose the $n_1$ trial indices where a $1$ appears The remaining indices contain $0$

Multigroup Case

$$ S_{\text{sub}}=\{s_0,s_1,\dots,s_{m-1}\} $$ $$ n=n_0+n_1+\cdots+n_{m-1} $$
Theorem 05.8 (Multigroup Count of Sequences).

For $n$ trials with sample space $S_{\text{sub}}=\{s_0,\dots,s_{m-1}\}$ the number of length $n$ observation sequences with $s_i$ appearing $n_i$ times is

$$ \frac{n!}{n_0!n_1!\cdots n_{m-1}!} $$

Proof. Start with $n!$ permutations of $n$ labeled positions Symbols of the same type are indistinguishable in the final sequence Divide by $n_i!$ for each subgroup of identical symbols

Multinomial Coefficient

Definition 05.9 (Multinomial Coefficient).

For integers $n\ge 0$ and integers $n_i\ge 0$ with $\sum_{i=0}^{m-1}n_i=n$

$$ \binom{n}{n_0,n_1,\dots,n_{m-1}}

\frac{n!}{n_0!n_1!\cdots n_{m-1}!} $$

and it is $0$ otherwise

Example

$$ 4^{10}=1{,}048{,}576 $$

$$ \binom{10}{2,3,3,2}

\frac{10!}{2!,3!,3!,2!} $$

Independent Trials With Probabilities

Binary Outcome Trials

$$ p $$ $$ 1-p $$ $$ p^{n_1}(1-p)^{n_0} $$ $$ (1-p)^2p^3 $$ $$ \binom{5}{3} $$
Theorem 05.10 (Probability of $n_0$ Failures and $n_1$ Successes).

In $n=n_0+n_1$ independent trials with success probability $p$

$$ P[E_{n_0,n_1}]

\binom{n}{n_1}(1-p)^{n_0}p^{n_1}

\binom{n}{n_0}(1-p)^{n_0}p^{n_1} $$

Proof. Each sequence with $n_1$ successes has probability $p^{n_1}(1-p)^{n_0}$ The number of such sequences is $\binom{n}{n_1}$ Multiply

Binomial Coefficients as Counts

Information Bit Repetition Example

$$ P[E]

P[E_{5,0}]+P[E_{4,1}]+P[E_{3,2}]

\binom{5}{5}q^5+\binom{5}{4}q^4p+\binom{5}{3}q^3p^2 $$

Multigroup Independent Trials

$$ S_{\text{sub}}=\{s_0,\dots,s_{m-1}\} $$ $$ P[s_i]=p_i $$
Theorem 05.11 (Multinomial Probability).

For $n$ independent trials with $P[s_i]=p_i$ the probability of $n_i$ occurrences of $s_i$ for $i=0,\dots,m-1$ is

$$ P[E_{n_0,\dots,n_{m-1}}]

\binom{n}{n_0,\dots,n_{m-1}} \prod_{i=0}^{m-1} p_i^{n_i} $$

Proof. Each fixed sequence with counts $(n_0,\dots,n_{m-1})$ has probability $\prod p_i^{n_i}$ The number of such sequences is the multinomial coefficient Multiply

Equal Probability Grade Example

$$ p_A=p_B=p_C=p_F=\tfrac14 $$

$$ P[E_{2,3,3,2}]

\binom{10}{2,3,3,2} \left(\tfrac14\right)^{10} $$

Binomial Theorem

Theorem 05.12 (Binomial Theorem).

For integer $n\ge 0$

$$ (x+y)^n=\sum_{k=0}^n \binom{n}{k}x^{n-k}y^k $$

Proof. Expand $(x+y)^n$ as a product of $n$ factors A term $x^{n-k}y^k$ arises from choosing $k$ factors to contribute $y$ The number of such choices is $\binom{n}{k}$

$$ ((1-p)+p)^n=1 $$ $$ 1=\sum_{k=0}^n \binom{n}{k}(1-p)^{n-k}p^k $$

Binary Outcomes With $n$ Successes and $k$ Failures

$$ n+k $$

$$ P[E_{k,n}]

\binom{n+k}{n}(1-p)^k p^n

\binom{n+k}{k}(1-p)^k p^n $$

References

Sources

Graph