113 年 國立成功大學電腦與通信工程研究所丁組《線性代數與機率》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題30 分

  1. (30%) Two coins are simultaneously tossed until one of them comes up a head and the other a tail. The first coin comes up a head with probability pp, and the second coin comes up a head with probability qq. All tosses are assumed independent.
    (a) Find the probability mass function (PMF) of the number of tosses. (10%)
    (b) Find the expected value of the number of tosses. (10%)
    (c) What is the probability that the last toss of the first coin is a head? (10%)

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

每一輪同時擲兩枚硬幣,停止條件是兩枚硬幣結果不同:

  • 第一枚為正面、第二枚為反面:HTHT
  • 第一枚為反面、第二枚為正面:THTH

因此,每一輪「停止」的機率為

s=P(HT)+P(TH)=p(1−q)+(1−p)q.s=P(HT)+P(TH) =p(1-q)+(1-p)q.

整理得

s=p+q−2pq.s=p+q-2pq.

每一輪結果彼此獨立,因此停止所需的擲骰輪數服從幾何分布。


解題方法

令 NN 表示直到兩枚硬幣出現一正一反為止所需的同時擲幣次數。

在前 n−1n-1 次都尚未停止,表示每次結果相同,即出現 HHHH 或 TTTT。每次「繼續」的機率為

r=P(HH)+P(TT)=pq+(1−p)(1−q).r=P(HH)+P(TT) =pq+(1-p)(1-q).

由於每次不是停止就是繼續,所以

r+s=1.r+s=1.

因此

r=pq+(1−p)(1−q)=1−p−q+2pq.r=pq+(1-p)(1-q) =1-p-q+2pq.

(a) NN 的 PMF

事件 {N=n}\{N=n\} 表示:

  1. 前 n−1n-1 次兩枚硬幣結果相同;
  2. 第 nn 次兩枚硬幣結果不同。

故對 n=1,2,3,…n=1,2,3,\ldots,

P(N=n)=rn−1s=[pq+(1−p)(1−q)]n−1[p(1−q)+(1−p)q].\begin{aligned} P(N=n) &=r^{n-1}s\\ &=\left[pq+(1-p)(1-q)\right]^{n-1} \left[p(1-q)+(1-p)q\right]. \end{aligned}

所以 NN 服從參數為 ss 的幾何分布:

P(N=n)=[pq+(1−p)(1−q)]n−1[p(1−q)+(1−p)q]\boxed{ P(N=n) = \left[pq+(1-p)(1-q)\right]^{n-1} \left[p(1-q)+(1-p)q\right] }

其中 n=1,2,3,…n=1,2,3,\ldots。


(b) NN 的期望值

幾何分布在「第一次成功所需次數」的定義下,其期望值為

E[N]=1s.E[N]=\frac{1}{s}.

代入停止機率 ss:

E[N]=1p(1−q)+(1−p)q=1p+q−2pq\boxed{ E[N] = \frac{1}{p(1-q)+(1-p)q} = \frac{1}{p+q-2pq} }

亦可由遞迴直接推導。第一次擲幣後:

  • 以機率 ss 停止,總次數為 11;
  • 以機率 rr 繼續,之後還需平均 E[N]E[N] 次。

因此

E[N]=1+rE[N].E[N]=1+rE[N].

移項得

E[N](1−r)=1.E[N](1-r)=1.

因為 1−r=s1-r=s,所以

E[N]=1s.E[N]=\frac{1}{s}.

(c) 最後一次第一枚硬幣為正面的機率

停止發生時,最後一次結果必須是 HTHT 或 THTH。

「最後一次第一枚硬幣為正面」等同於停止時最後一次結果為 HTHT。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題20 分

  1. (20%) A dart is equally likely to land at any point inside a circular target of radius 4. Let R be the distance of the landing point from the origin.
    (a) Find and plot the probability density function (pdf) of R. (10%)
    (b) The 'bull eye' is the central disk in the target of radius 1.
    Find the probability that the dart is outside of the bull eye. (10%)
    Hint: Let S be a subset of the plane with area A(S) (which means "area of S"]. A point is said to be randomly selected from S if, for any subset T of S with area A(T), the probability that the point selected falls in T is A(T)/A(S), i.e., the ratio of "area of T" to "area of S".

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

飛鏢在半徑為 44 的圓形標靶內均勻落點,表示落在某區域的機率等於該區域面積除以整個標靶面積。

整個標靶面積為

A=π(4)2=16π.A=\pi(4)^2=16\pi.

令 RR 表示落點到原點的距離,則 0≤R≤40\le R\le 4。半徑距離不超過 rr 的事件,對應於半徑為 rr 的圓盤。


解題方法

先求累積分布函數 FR(r)=P(R≤r)F_R(r)=P(R\le r),再對 rr 微分得到 pdf:

fR(r)=FR′(r).f_R(r)=F_R'(r).

採用面積比的原因是題目明確給出均勻落點的定義,而距離事件 R≤rR\le r 正好能以圓盤面積表示。


(a) 求 RR 的 pdf 並作圖

當 0≤r≤40\le r\le 4 時,

FR(r)=P(R≤r)=半徑 r 的圓盤面積標靶面積=πr216π=r216.F_R(r) =P(R\le r) =\frac{\text{半徑 }r\text{ 的圓盤面積}}{\text{標靶面積}} =\frac{\pi r^2}{16\pi} =\frac{r^2}{16}.

完整的累積分布函數為

FR(r)={0,r<0,r216,0≤r≤4,1,r≥4.F_R(r)= \begin{cases} 0, & r<0,\\[4pt] \dfrac{r^2}{16}, & 0\le r\le 4,\\[6pt] 1, & r\ge 4. \end{cases}

對 rr 微分,得到 RR 的機率密度函數:

fR(r)={r8,0<r<4,0,其他情況.f_R(r)= \begin{cases} \dfrac{r}{8}, & 0<r<4,\\[6pt] 0, & \text{其他情況}. \end{cases}

端點 r=0,4r=0,4 的函數值不影響機率,寫成 0≤r≤40\le r\le 4 亦可。

pdf 圖形為一條通過 (0,0)(0,0) 與 (4,12)(4,\frac12) 的直線,區間外為 00:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題20 分

  1. (20%) Mark each of the following statements True (T) or False (F). (Need not to give reasons.)
    (a) If the column vectors of a matrix A are linearly independent, then the row vectors of A are also linearly independent.
    (b) Let S be a linearly independent set in a vector space V. If u is a vector in V and u ∉\notin S, then SUu is also a linearly independent set.
    (c) Let T and S be two linear transformations (operations) on a vector space V, then T² + 2S is also a linear transformation on V.
    (d) Let M be a square matrix. We have that M and M² must be linearly independent.

登入後即可作答並保存紀錄。

這一題的完整詳解

本題考驗線性代數中的線性獨立性、向量空間、線性轉換等基本概念。

核心觀念:

  1. 線性獨立性:一組向量線性獨立,是指它們的任何線性組合等於零向量時,所有係數都必須為零。
  2. 矩陣的秩 (Rank):矩陣的行秩等於列秩,這個值等於該矩陣的列向量(或行向量)的最大線性獨立子集的維度。
  3. 向量空間的性質:線性組合的封閉性。
  4. 線性轉換的性質:線性轉換的組合(加法、數乘、複合)仍是線性轉換。

解題步驟:

(a) If the column vectors of a matrix A are linearly independent, then the row vectors of A are also linearly independent.

令 AA 為一個 m×nm \times n 的矩陣。
如果 AA 的列向量是線性獨立的,這意味著矩陣 AA 的秩 (rank) 等於 nn (列的數量)。
矩陣的行秩等於列秩,所以 rank(A)=nrank(A) = n.
如果 rank(A)=nrank(A) = n, 則 AA 的 nn 個行向量是線性獨立的。
若要使 AA 的行向量也線性獨立,則 rank(A)rank(A) 必須等於 mm (行的數量)。
因此,除非 m=nm=n (即 AA 是方陣),否則列向量線性獨立不保證行向量線性獨立。
例如,考慮矩陣 A=(100100)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{pmatrix}.
列向量 (100)\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} 和 (010)\begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} 是線性獨立的 (n=2n=2)。
行向量 (10)\begin{pmatrix} 1 & 0 \end{pmatrix}, (01)\begin{pmatrix} 0 & 1 \end{pmatrix}, (00)\begin{pmatrix} 0 & 0 \end{pmatrix}。這三個行向量是線性相關的,因為其中一個是零向量,或者 (00)=0⋅(10)+0⋅(01)\begin{pmatrix} 0 & 0 \end{pmatrix} = 0 \cdot \begin{pmatrix} 1 & 0 \end{pmatrix} + 0 \cdot \begin{pmatrix} 0 & 1 \end{pmatrix}。
因此,這個敘述是錯誤的。

【答案】F

(b) Let S be a linearly independent set in a vector space V. If u is a vector in V and u ∉\notin S, then SUu is also a linearly independent set.

這句話的敘述有問題。「SUu」通常表示集合的聯集。如果 u∈Su \in S, 則 S∪{u}=SS \cup \{u\} = S. 如果 SS 本身線性獨立,那麼 S∪{u}=SS \cup \{u\} = S 也線性獨立。
但題目明確說 u∉Su \notin S.
如果 S={v1,v2,…,vk}S = \{v_1, v_2, \dots, v_k\} 是一個線性獨立的集合,並且 u∉Su \notin S.
要判斷 S∪{u}={v1,v2,…,vk,u}S \cup \{u\} = \{v_1, v_2, \dots, v_k, u\} 是否線性獨立,我們需要看是否存在 uu 的線性組合等於 SS 中的某個向量,或者 uu 本身可以被 SS 中的向量線性表示。
如果 uu 可以被 SS 中的向量線性表示,即 u=c1v1+⋯+ckvku = c_1 v_1 + \dots + c_k v_k 對於某些係數 cic_i。
那麼我們可以寫成 c1v1+⋯+ckvk−u=0c_1 v_1 + \dots + c_k v_k - u = \mathbf{0}.
這是一個非零係數的線性組合等於零向量 (因為 uu 不是零向量,且係數 −1-1 不為零)。
因此,如果 uu 是 SS 的一個線性組合,則 S∪{u}S \cup \{u\} 是線性相關的。

例如,在 V=R2V = \mathbb{R}^2 中,設 S={(10)}S = \{\begin{pmatrix} 1 \\ 0 \end{pmatrix}\}. SS 是線性獨立的。
令 u=(20)u = \begin{pmatrix} 2 \\ 0 \end{pmatrix}. 顯然 u∉Su \notin S.
S∪{u}={(10),(20)}S \cup \{u\} = \{\begin{pmatrix} 1 \\ 0 \end{pmatrix}, \begin{pmatrix} 2 \\ 0 \end{pmatrix}\}.
我們可以找到非零係數的線性組合等於零向量:
2⋅(10)−1⋅(20)=(20)−(20)=(00)2 \cdot \begin{pmatrix} 1 \\ 0 \end{pmatrix} - 1 \cdot \begin{pmatrix} 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 2 \\ 0 \end{pmatrix} - \begin{pmatrix} 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}.
所以 S∪{u}S \cup \{u\} 是線性相關的。

這個敘述只有在 uu 不能被 SS 中的向量線性表示時才成立。但題目沒有這個假設。
因此,這個敘述是錯誤的。

【答案】F

(c) Let T and S be two linear transformations (operations) on a vector space V, then T² + 2S is also a linear transformation on V.

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題30 分

  1. (30%) Consider a linear transformation T on R³, define by
    T(xyz)=(x+yy+zz+x)T \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} x+y \\ y+z \\ z+x \end{pmatrix}
    Find the standard matrix of T. Also, find the inverse of T. (Express your answer as
    T−1(xyz)=…T^{-1} \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \dots
    ). What is the rank of T?

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查三個觀念:

  1. 線性轉換的標準矩陣:矩陣的各欄分別是標準基底向量的像。
  2. 反矩陣:若標準矩陣可逆,則可利用聯立方程式求出 T−1T^{-1}。
  3. 線性轉換的秩:等於其標準矩陣的秩;若矩陣可逆,則秩等於矩陣大小,即為 33。

令標準基底為

e1=(100),e2=(010),e3=(001).e_1=\begin{pmatrix}1\\0\\0\end{pmatrix},\qquad e_2=\begin{pmatrix}0\\1\\0\end{pmatrix},\qquad e_3=\begin{pmatrix}0\\0\\1\end{pmatrix}.

解題方法一:求標準矩陣

對三個標準基底分別作用 TT:

T(e1)=T(100)=(101),T(e_1) = T\begin{pmatrix}1\\0\\0\end{pmatrix} = \begin{pmatrix}1\\0\\1\end{pmatrix}, T(e2)=T(010)=(110),T(e_2) = T\begin{pmatrix}0\\1\\0\end{pmatrix} = \begin{pmatrix}1\\1\\0\end{pmatrix}, T(e3)=T(001)=(011).T(e_3) = T\begin{pmatrix}0\\0\\1\end{pmatrix} = \begin{pmatrix}0\\1\\1\end{pmatrix}.

因此,TT 的標準矩陣 AA 為

A=(110011101).A= \begin{pmatrix} 1&1&0\\ 0&1&1\\ 1&0&1 \end{pmatrix}.

也就是

T(xyz)=A(xyz).T\begin{pmatrix}x\\y\\z\end{pmatrix} = A\begin{pmatrix}x\\y\\z\end{pmatrix}.

解題方法二:求反轉換

設

(uvw)=T(abc).\begin{pmatrix}u\\v\\w\end{pmatrix} = T\begin{pmatrix}a\\b\\c\end{pmatrix}.

根據題目定義:

u=a+b,v=b+c,w=c+a.u=a+b,\qquad v=b+c,\qquad w=c+a.

將三式聯立:

由 u+w−vu+w-v 得

u+w−v=(a+b)+(c+a)−(b+c)=2a,u+w-v=(a+b)+(c+a)-(b+c)=2a,

所以

a=u−v+w2.a=\frac{u-v+w}{2}.

同理,

u+v−w=(a+b)+(b+c)−(c+a)=2b,u+v-w=(a+b)+(b+c)-(c+a)=2b,

因此

b=u+v−w2.b=\frac{u+v-w}{2}.

再由 v+w−uv+w-u 得

v+w−u=(b+c)+(c+a)−(a+b)=2c,v+w-u=(b+c)+(c+a)-(a+b)=2c,

因此

c=−u+v+w2.c=\frac{-u+v+w}{2}.

故

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題