Korean, Edit

Chapter 2. Number of Cases

Higher category: 【Statistics】 Statistics Overview


1. overview  

2. permutation  

3. combination  

4. Catalan Numbers


a. Example problems for number of cases



1. Overview

⑴ sampling

① with-replacement: re-injecting and extracting something already extracted

② without-replacement: extracting without re-injecting what has already been extracted.

⑵ types of number of cases


image

Figure 1. type of number of cases



2. Permutation

⑴ Overview

① Definition: The number of ways to arrange k balls out of n distinct balls, considering the order. This is a case of selection without replacement.

② In other words, selecting r items from n distinct elements without repetition and arranging them in a line.

③ Formula: nPr = n(n−1)(n−2)⋯(n−r+1) (Note: n!=n(n−1)(n−2)⋯2⋅1)

④ Examples: Forming a line (e.g., people standing in a row), Selecting representatives for distinct roles

⑵ Types

① Permutation with repetition: Order matters; selection with replacement

② Permutation of multisets: Permutations that include identical elements

③ Circular permutation: Number of ways to arrange elements around a circle (e.g., seating around a round table)



3. Combination

⑴ Overview

① definition: number of cases of combination of k balls among n balls. no consideration of order. without-replacement


image


② That is, choosing r items from n distinct items without considering the order and without repetition.

③ Examples: cases of selection, choosing representatives (roles that are the same).

⑵ binary coefficient may be expressed in a triangule of Pascal


image

Figure 2. binary coefficient and triangle of Pascal


⑶ combination with repetition

① definition: consideration of order. with-replacement

nHk

② equivalent expression

a1 + ··· + an = k, = k, ai ≥ 0

⇔ A1 + ··· + An = k+n, Ai ≥1

⇔ □ | □ | ··· | □,     # of □ = (k+n) and # of | = (k+n-1)

nHk = n+k-1Cn-1 = n+k-1Ck

Formula 1. The number of ways to choose r items from n items is always the same as the number of ways to choose the n-r items that are not selected.

Formula 2.


image


Formula 3.


image


Formal 4.


스크린샷 2025-02-22 오후 5 24 26


① Combinatoric interpretation

○ First equation: The number of ways to distribute n stones into 2n positions, divided into n positions on the left and n positions on the right.

○ Second equation: The number of ways to distribute K stones into N+M positions, divided into N positions on the left and M positions on the right.

Formula 5.


image


① Algebraic interpretation


image


② Combinatoric interpretation

○ nCk: number of cases in which k numbers are selected out of n numbers

n-1Ck: number of cases in which k numbers are selected excluding a specific number.

n-1Ck-1: number of cases in which k numbers are selected including a specific number 

Formula 6


스크린샷 2025-12-07 오후 2 53 14


① Algebraic interpretation: By marking Formula 5, nCk = n-1Ck + n-1Ck-1, appropriately on Pascal’s triangle, we can easily prove it.

Formula 7


스크린샷 2025-01-11 오후 5 57 38


① Algebraic interpretation


스크린샷 2025-01-11 오후 5 57 59


② Combinatoric interpretation 

○ situation: number of cases in which n+1 numbers are selected from 1 to n+m+1 numbers 

nCn: number of cases in which n+1 is the largest number of a combination

n+1Cn: number of cases in which n+2 is the largest number of a combination 

n+mCn: number of cases in which n+m+1 is the largest number of a combination 

Formula 8


image


① Algebraic interpretation

② Combinatoric interpretation

○ the probability of tossing a coin until the front or the back comes out n+1 times = 1

nCn × (½)n+1 × 2: the probability that the same side as the last side comes out n times, and the different side comes out 0 times 

n+1Cn × (½)n+2 × 2: the probability that the same side as the last side will come out n times, and the different side will come out 1 time 

○ 2nCn × (½)2n+1 × 2: the probability that the same side as the last side comes out n times, and the different side comes out n times

Formula 9


스크린샷 2025-02-22 오후 5 44 01


Algebraic Interpretation


image


② Combinatorial Interpretation

○ Assume that among n stones, there are k black stones and (n-k) white stones. Now, add one special black stone and assume that this special black stone must be the (m+1)-th black stone.

○ For each j ∈ {0, ⋯, k}: There are (j+m) stones in front of this black stone, among which m black stones must be placed. Thus, we consider j+mCj. Also, there are (n-m-j) stones behind this black stone, among which (k-j) black stones must be placed. Thus, we consider n-m-jCk-j.

○ Since the total number of cases is simply the number of ways to distribute (k+1) black stones and (n-k) white stones, the total count is n+1Ck.



Here is the clear and faithful English translation:


4. Catalan Numbers

⑴ Catalan Number

Meaning 1. Number of Dyck paths


스크린샷 2025-12-07 오후 9 41 31

Figure 3. Dyck path


○ (Number of Dyck paths) = (Total number of paths) − (Number of bad paths)

○ (Total number of paths) = number of ways to choose n steps out of 2n steps = 2nCn

○ A bad path is a path that reaches level –1 at some point; if we reflect the remaining part of the path after the first time it reaches –1, every bad path corresponds one-to-one with a path that eventually reaches level –2 → (Number of bad paths) = 2nCn+1

○ (Number of Dyck paths) = Catalan number Ck


스크린샷 2025-12-07 오후 9 42 49


Meaning 2. Number of permutations π satisfying:

○ π(i) ≠ i

○ For every integer i with 1 ≤ i ≤ 2n: (π○π)(i) = i

○ There do*not exist integers 1 ≤ a < b < c < d ≤ 2n such that π(a) > π(b) > π(c) > π(d).

Meaning 3. The number of different ways to correctly match n pairs of parentheses

Property 1. 4k ≥ Ck ≥ 22k+1 / (4k2 + 6k + 2)

⑵ Motzkin Number

Meaning 1. Number of permutations satisfying:

○ For every integer i with 1 ≤ i ≤ 2n: (π○π)(i) = i

○ There do*not exist integers 1 ≤ a < b < c < d ≤ 2n such that π(a) > π(b) > π(c) > π(d).

○ That is, it can be expressed as follows where Ck is the Catalan number:


스크린샷 2025-12-07 오후 9 45 31


Property 1. limn→∞ an 1/n = 3 (proof)



Input: 2019.06.27 09:48

results matching ""

    No results matching ""