Discrete mathematics, probability and numerical methods
導入済み
6:30
T.2 · 離散数学、確率および数値計算
この単元では、数え上げ・帰結式・グラフ・論理を用い、確率・分布の性質を計算し、誤差を含む数値近似に応用する。
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| probability/ˌprɒbəˈbɪlɪti/ | A numerical measure of how likely an event is, ranging from zero to one. |
| recurrence/rɪˈkʌrəns/ | 再帰関係 |
| complete graph/kəmˈpliːt ɡræf/ | |
| tree/triː/ | A connected graph containing no cycles. |
| complement/ˈkɒmplɪmənt/ | 補事象 |
| Independence/ˌɪndɪˈpendəns/ | |
| binomial model | |
| tangent/ˈtændʒənt/ | A straight line that touches a curve at a point and has the same direction there. |
| convergence/kənˈvɜːdʒəns/ | |
| bisection/baɪˈsekʃn/ | 二分法 |
| error bound |
コミッティか、それとも3つの異なる役割か?
- 10人の学生から3人を選んでコミッティを作る場合、$\binom{10}{3}=120$組が作られる。会長、秘書、会計の役職を選ぶ場合、$10\cdot9\cdot8=720$ assignments が存在する:役割によって結果が区別される。
- 計算する前に、1つの結果が何を記録し、重複を許すかどうかを決定してください。この授業は、数え上げと確率を再帰、グラフの推論、および数値近似と結びつけます。
指定されたルールで結果を数え上げる
- $n$個の異なる物体から、重複なしに$r$個選ぶと、$0\le r\le n$に対して$n(n-1)\cdots(n-r+1)$個の順列または$\binom nr$個の順序無視部分集合ができる。重複を許す場合、順列には$n^r$通りの可能性がある。
- 例えば、利用可能な5文字を用いた3文字コードにおいて、文字の重複を許す場合、$5^3=125$ 通りの結果があります。ただし、重複を許さない場合は $5\cdot4\cdot3=60$ 通りです。ある事象の確率は、その事象が等確率である場合に限り、有利な結果の数を全結果の数で割ったものです。
A three-letter code uses A, B, C, D or E in each position. Repetition is allowed. How many codes are possible?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
There are five choices independently for each of three positions: 5³ = 125. Dividing by 3! would incorrectly merge different ordered codes.
グラフと直線には独自の仮定が必要です
- 単純無向グラフでは、辺は異なる頂点を結び、同じ辺は存在しません。完全グラフ $K_n$ は、各 unordered 頂点ペアに対して1本の辺を持ち、したがって $\binom n2$ 本の辺があります。木は連結であり、かつサイクルを持たない図形です。$n\ge1$ 個の頂点を持つ木には、$n-1$ 本の辺があります。
- 平面内の $n$ 本の異なる直線において、一般位置とは、平行な直線の組がなく、かつ任意の3本通过しないことを意味します。$k$ 番目の直線はそれ以前の直線と $k-1$ 個の異なる点で交わり、$k$ 個の領域を追加します。1つの領域から始めると、最終的に $1+n(n+1)/2$ 個の領域になります。
順序付きか順序なしか?
位置や役割が結果を区別するかを決定し、重複の有無は別途確認する。
How many edges does the complete graph $K_7$ have?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Each edge joins a pair of distinct vertices, and K₇ joins every pair: C(7, 2) = 7 · 6 / 2 = 21.
Into how many regions do 5 lines in general position divide the plane?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The n-th line in general position crosses the earlier n − 1 lines and so adds n regions. Starting from 1 region: 1 + (1 + 2 + 3 + 4 + 5) = 1 + 15 = 16.
補事象を使って重複がある値を確認する
- 補事象とは、与えられた事象が起こらないことを指します。したがって $P(A^c)=1-P(A)$ です。$n$ 種類の値から独立して $r$ 回選んだとき、順列の標本空間には $n^r$ 通り equally likely な結果があります。
- For $r\le n$, the all-distinct outcomes number $n(n-1)\cdots(n-r+1)$. With 3 picks from 10 values, their probability is $720/1000=0.72$, so at least one repeat has probability $0.28$. If $r>n$, a repeat is certain.
Three values are picked independently and uniformly from ten possible values, with replacement. What is the probability of at least one repeated value?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The all-distinct probability is (10·9·8)/10³ = 0.72. Its complement, at least one repeat, has probability 1 − 0.72 = 0.28.
独立(independent)は互いに排他的(disjoint)であることを意味しない
- 独立とは $P(A\cap B)=P(A)P(B)$ を意味します。$P(B)>0$ のとき、条件付き確率は $P(A\mid B)=P(A\cap B)/P(B)$ となり、独立であれば $B$ を知ることは $A$ の確率を変化させません。
- 互いに排他的な事象は空集合の交わりを持つため、$P(A\cap B)=0$ です。両方の確率が正であれば、その積も正であり、独立ではありません。公平なサイコロを1回振ったとき、「偶数」と「4 より大きい」は独立です:それらの交わりは $\{6\}$ であり、その確率は $1/6=(1/2)(1/3)$ です。
Two mutually exclusive events with positive probabilities cannot be independent.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
True. Exclusive means $P(A \cap B) = 0$, but independence needs $P(A \cap B) = P(A)P(B) > 0$.
On one fair six-sided die roll, let A be “even” and B be “greater than 4”. These events are
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
P(A) = 1/2, P(B) = 1/3 and P(A ∩ B) = P({6}) = 1/6. The product test holds, but the intersection is not empty.
二項分布モデルの公式使用前に確認する
- $X\sim\operatorname{Binomial}(N,p)$ は、固定された $N$ 回の独立試行における成功の数を数えるもので、各試行には2つの結果があり、同じ成功率 $p$ が適用されます。平均は $Np$ 、分散は $Np(1-p)$ です。$N=10$ と $p=0.3$ の場合、これらはそれぞれ 3 と 2.1 です。
- In this model, no successes has probability $(1-p)^N$, so at least one has probability $1-(1-p)^N$. Sampling objects without replacement generally changes the next success probability; a fixed trial count and an initial success rate alone do not establish a binomial model.
A binomial variable has $N = 10$, $p = 0.3$. Its variance is
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
$10 \times 0.3 \times 0.7$.
Four independent trials each succeed with probability 0.5. What is the probability of at least one success?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The complement is four failures, with probability (0.5)⁴ = 1/16. Hence at least one success has probability 15/16 = 0.9375.
A bag contains 4 red and 6 blue counters. Draw two uniformly at random without replacement. A student models the red count as Binomial(2, 0.4). Assess the model and find the probability of two reds.
The two draws are dependent: after a red, the next red probability is $3/9$, not $4/10$. Thus the stated binomial model is not exact. The probability of two reds is $(4/10)(3/9)=2/15$, whereas the binomial model would give $0.4^2=0.16$. Equivalently, there are $\binom42=6$ favourable unordered pairs among $\binom{10}2=45$ equally likely pairs.
再帰にも初期値が必要です
- 再帰式とは、序列の項を前の項で表す規則である。$a_n=2a_{n-1}$、$n\ge1$に対して、初期値$a_0=3$から$3,6,12,\ldots$と閉形$a_n=3\cdot2^n$が得られる。
- 2階の規則は2つの初期値を必要とする場合があります。$a_n=a_{n-1}+a_{n-2}$ と $n\ge2$ の場合、$a_0$ だけを指定すると、$a_1$ は自由となります。再帰の定義域と、すべての項を決定するために必要な十分な初期データを両方提示してください。
How many integers from 1 to 60 are divisible by 2, 3 or 5?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
30 + 20 + 12 − 10 − 6 − 4 + 2 = 44.
A fair die is rolled until the first 6 appears. What is the expected number of rolls?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The number of rolls is geometric with p = 1/6, so its mean is 1/p = 6.
X is uniform on [0, 6]. Find Var(X).
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
(b − a)²/12 = 36/12 = 3.
少数の項だけでなく、公式自体を検証する
- $b_n=2b_{n-1}+1$、$n\ge1$に対して、$b_0=0$を適用すると、$b_n=2^n-1$が得られます。初期値は正しく、代入により$2(2^{n-1}-1)+1=2^n-1$が導かれます。これにより帰納法で同じ数列が再帰的に決定されます。
- 有限個の項に一致するだけでは、$n$に対するすべての公式が成り立つことを保証しません。提案された解答は、指定された範囲全体においてすべての初期値と再帰関係を満たす必要があります。初期値を変更すると、数列そのものも変化します。
ニュートン法は接線を用いる
- 微分可能な$f$の根を近似するには、$f'(x_k)\ne0$のとき常に$x_{k+1}=x_k-f(x_k)/f'(x_k)$を使用します。次の値は、$x_k$における接線が横軸と交わる点です。
- $f(x)=x^2-2$について、$x_0=1$から始めると$x_1=3/2$および$x_2=17/12\approx1.4167$が得られ、$\sqrt2\approx1.4142$に近付きます。代わりに0から始めると、$f'(0)=0$のため公式が定義できません。

$b_0=0$ かつ $b_n=2b_{n-1}+1$ for $n\ge1$. Find $b_5$.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The verified closed form is bₙ = 2ⁿ − 1. Thus b₅ = 32 − 1 = 31. Direct iteration gives 0, 1, 3, 7, 15, 31.
賛成 $a_n=3a_{n-1}-2a_{n-2}$, $n\ge2$, with $a_0=0$ かつ $a_1=1$, prove $a_n=2^n-1$. Explain why only specifying $a_0=0$ would not determine this sequence.
The formula gives $a_0=0$ かつ $a_1=1$. Substitution yields $3(2^{n-1}-1)-2(2^{n-2}-1)=2^n-1$, so induction proves the formula for all $n\ge0$. If only $a_0=0$ were given, the all-zero sequence would also satisfy the recurrence and that initial value, but it has a different $a_1$. Both initial values matter.
定義されたニュートン法のステップでも収束しない場合があります
- 反復点での非ゼロの導関数は更新を可能にしますが、収束を保証するものではありません。初期値や関数の挙動が重要です。反復が根から遠ざかったり、ループに入ったりすることがあります。
- $f(x)=x^3-2x+2$について、0から始めます。すると$f(0)=2$、$f'(0)=-2$となり、次の値は1です。1では$f(1)=1$、$f'(1)=1$となるため、次の値は0となります。両方の導関数が非ゼロにもかかわらず、この数列は$0,1,0,1,\ldots$を繰り返します。

Apply one Newton step to $f(x) = x^2 - 3$ from $x_0 = 2$.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
x₁ = x₀ − f(x₀)/f′(x₀) = 2 − (4 − 3)/(2 · 2) = 2 − 1/4 = 1.75, already close to √3 ≈ 1.732.
このカードは新しいため、翻訳ができるまで英語で表示されます。
A defined Newton step need not converge
- Nonzero derivatives at the iterates make the updates possible; they do not guarantee convergence 收敛性. The starting value and the function's behaviour matter. An iteration can move away from a root or enter a cycle.
- For $f(x)=x^3-2x+2$, start at 0. Then $f(0)=2$, $f'(0)=-2$, so the next value is 1. At 1, $f(1)=1$, $f'(1)=1$, so the next value is 0. The sequence cycles $0,1,0,1,\ldots$ even though both derivatives are nonzero.
賛成 $f(x)=x^3-2x+2$, Newton iteration starts at 0. It alternates between 0 and 1. What does this show?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The derivatives are −2 at 0 and 1 at 1, so both updates are defined. Neither point is a root, and the two-cycle does not converge.
二分法は検証済みの区間を維持する
- 二分法は、根を含む区間を繰り返し半分に分割して保持する根探索法です。$f$が$[a,b]$上で連続であり、$f(a)f(b)<0$であることが必要です。中間値の定理により少なくとも一つの根が存在することが保証されます。端点自体が根であれば、それを返します。
- $c=(a+b)/2$をテストします。$f(c)=0$であれば停止し、そうでなければ端点で符号が異なる半分を保持します。連続性が重要です:$1/x$は$-1$と1で符号が異なりますが、0では定義されず、根も持ちません。
区間の幅を誤差上限に変換する
- 初期区間の長さが$L$の場合、$k$回の保持された半分の操作後、その幅は$L/2^k$となります。その現在の区間の中点は、保持された根から$L/2^{k+1}$以内の距離にあります。この中点はすでにテストされた最後の点であるとは限りません。
- $[1,2]$上の$x^2-2$に対して、最初に残された区間は$[1,1.5]$と$[1.25,1.5]$である。2回半分に分割した後、現在の中央値は$1.375$で誤差は最大$0.125$。4回半分に分割した後の中央値の誤差上限は$1/32=0.03125$である。
An initial continuous sign-change bracket has length 1. After four retained bisection halvings, what is the guaranteed absolute error bound for the midpoint of the current bracket?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
The current width is 1/2⁴ = 1/16. Its midpoint is at most half that width from a retained root: 1/32 = 0.03125. The question asks about the current midpoint, not the last tested midpoint.
賛成 $f(x)=x^3-x-1$, justify bisection on $[1,2]$, find the first retained half, and find the least number of retained halvings needed to bound the current midpoint error by 0.01. Explain why the same sign argument cannot be used for $1/x$ on $[-1,1]$.
The polynomial is continuous, with $f(1)=-1$ かつ $f(2)=5$. At $1.5$, $f(1.5)=0.875>0$, so retain $[1,1.5]$. The original length is 1, and after k retained halvings the current midpoint error is at most $1/2^{k+1}$. Five halvings give $1/64>0.01$; six give $1/128<0.01$, so six suffice and are the least number certified by this bound. The function $1/x$ is not continuous on $[-1,1]$ and has no root; opposite signs alone do not meet the theorem’s hypotheses.
定理の逆を無条件で適用しないでください
- 木は$n-1$本の辺を持ちますが、この辺数だけではグラフが木であることを意味しません。三角形と孤立した頂点からなる図形は4個の頂点と3本の辺を持ちますが、非連結であり、閉路を含みます。単純な無向グラフについては、连通性と$n-1$本の辺が同時に満たされれば木であることが保証されます。
- 連続関数における符号の変化は根の存在を保証しますが、根があるからといって必ず符号の変化が生じるわけではありません。関数$x^2$は0で根を持ちますが、$[-1,1]$の両端点では正の値をとります。符号変化テストが失敗したことは、根が存在しないことの証明にはなりません。
示されたテストは何を確定させるか?
二分法根証明、定義されたニュートンステップ、欠落した条件の区別を行う。
モデルと保証を分離して扱う
- 確率を数える前に、順序、重複、等確率性の仮定を明記する。二項分布モデルを使う前に独立性と一定の成功率を確認する。再帰式は規則および初期値の両方に対して検証する。
- ニュートンの更新はゼロでない導関数を必要とするが、サイクルを起こすこともある。二分割法は符号変動を持つ区間括弧の連続性を必要とし、残された幅から厳密な中央値誤差上限を得る。十分条件と必要条件を区別せよ。
Assess these claims with counterexamples: (i) Every simple undirected graph with n vertices and n − 1 edges is a tree. (ii) If a continuous function has a root in an interval, its endpoint values have opposite signs.
(i) A triangle plus an isolated vertex is a simple graph with 4 vertices and 3 edges. It is disconnected and contains a cycle, so it is not a tree. Connectivity is an additional sufficient condition with that edge count. (ii) The continuous function $f(x)=x^2$ on $[-1,1]$ has root 0 but both endpoint values equal 1. A sign change is sufficient for a continuous function to have a root, but is not necessary.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。