112 年 國立臺灣大學資料科學碩士學位學程《工程數學(D)》
第 1. 題
- (Basis and Dimension) This problem concerns the basic definition of vector space, and its basis
and dimension.
(a) (5%) Let the set of all n-bit strings for any integer n. The set forms a
vector space over . For example, for vectors and scalars , we
have
;
;
.
What is the dimension of the vector space over ? Give a basis of the vector space over .
(b) (5%) We denote '†' by a conjugate transpose. For example:
then
A (possibly complex) matrix A is Hermitian if and only if . Consider a vector
space over field of real numbers. What is its dimension?
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 向量空間的基底與維度。
- 向量是否能由一組基底唯一表示。
- Hermitian 矩陣的定義與自由參數數量。
- 複數向量空間與實數向量空間的差異。
(a) over
解題方法
中的每個元素都是長度為 的二元向量,向量加法採逐項模 運算。
取標準單位向量:
對任意向量
都有
其中係數 。
因此, 可以生成 。
再檢查線性獨立性。若
其中 ,比較各座標可得
所以這組向量線性獨立,構成 的一組基底。
解題技巧
的元素共有 個,但「元素個數」不是維度。對有限域 而言,若維度為 ,向量空間元素個數才是 。
此處每一個座標都需要一個獨立方向,因此維度為 。
(b) Hermitian 矩陣空間 over
核心觀念
Hermitian 矩陣滿足
其中 是共軛轉置。
令
Hermitian 條件等價於
這個矩陣集合是定義在實數上的向量空間,因此每個複數自由參數要拆成實部與虛部計算。
自由參數計數
1. 對角線元素
當 時,
只有實數符合此條件,所以每個對角線元素都是一個實數。
共有
個實數自由參數。
2. 非對角線元素
對每一組 ,可任取
由 Hermitian 條件,
第 2. 題
- (Matrix Inversion)
(a) (5%) Let A be an non-singular matrix that satisfies .
Calculate the inverse of A in terms of a polynomial of A.
(b) (5%) Let for some integer n and let
Calculate the inverse of B. Express your answer in the most simplified form.
(c) (5%) Justify your answers to Problem (b).
登入後即可作答並保存紀錄。
核心觀念
本題考查兩種矩陣反矩陣的求法:
- 利用矩陣滿足的多項式關係,將高次方程式整理成 。
- 利用離散傅立葉矩陣的根單位性質,透過幾何級數證明其反矩陣。
(a)利用多項式關係求
已知 為非奇異矩陣,因此 存在,且
右乘 ,得
因為矩陣 的各次方彼此可交換,所以
移項後得到
因此
解題技巧
看到題目給出
且常數項非零時,可先將等式乘上 ,直接降一階。此題的關鍵是常數項為 ,因此最後能解出 。
(b)求矩陣 的反矩陣
令矩陣的列、欄編號皆從 開始,則 的第 列第 欄元素為
考慮矩陣 ,其元素定義為
則矩陣乘積 的第 列第 欄元素為
整理指數可得
當 時,
當 時,由於 不是 的倍數,且 ,使用幾何級數公式:
因此
所以
矩陣 可寫成
第 3. 題
- (5%) Suppose columns of a matrix A are n vectors in . Answer the following questions.
(Getting 5 points if all answers are correct. Otherwise, 0 point.)
(a) (True or False) A is an matrix.
(b) If the columns are linear independent, what is the rank of A?
(c) If the columns span , what is the rank of A?
(d) If the columns form a basis for , what can you say about the rank, n, and m?
(e) Suppose A has rank r, it means that A has r ____ columns?
(f) (True or False) The map defined by is a linear transform.
登入後即可作答並保存紀錄。
核心觀念
本題考查線性代數中矩陣維度、行向量(Column Vectors)與秩(Rank)、**基底(Basis)以及矩陣變換之線性性(Linearity)**的基本定義與關聯定理:
- 矩陣維度定義:若矩陣 由 個行向量組成,且每個向量屬於 (即每個向量有 個分量,對應矩陣的列數),則 的維度為 。
- 行空間與秩(Column Space and Rank):
- 矩陣 的秩定義為其行空間(Column Space, )的維度,亦即線性獨立行向量的最大數量:
- 行滿秩(Full column rank):若 的 個行向量線性獨立,則 。
- 列滿秩(Full row rank):若 的行向量生成(span)整個 ,即 ,則 ,亦即 。
- 基底的充要條件: 的基底是由 個線性獨立且生成 的向量所組成的集合。因此,若 個向量構成 的基底,則必有 且 。
- 線性變換(Linear Transformation):對於任意 實數矩陣 ,定義映射 為 。由矩陣乘法對純量乘法與加法的分配律可直接滿足線性性質:
解題方法與小題分析
本題為全對才給分的連鎖概念題,每一小題的詳細推導與分析如下:
-
(a) (True or False) is an matrix.
- 分析:False。
- 原因:題目指出「columns of a matrix are vectors in 」,表示矩陣共有 行(columns),且每個行向量均有 個元素(即有 列 rows)。因此,矩陣 的大小為列數乘行數,即 ,而非 。
-
(b) If the columns are linear independent, what is the rank of ?
- 分析:。
- 原因:矩陣的秩 等於其行空間的維度,亦即極大線性獨立行向量的個數。已知此 個行向量線性獨立,因此行空間的維度即為向量個數 ,故 。
-
(c) If the columns span , what is the rank of ?
- 分析:。
- 原因: 的行向量所張成的空間即為 的行空間 。
第 4. 題
- (Eigenvalues and Eigenvectors)
(a) (5%) Let
Write down the 3 eigenvalues of A with multiplicity in the decreasing order.
(b) (10%) Suppose that an matrix B satisfies
where and . Write down all the eigenvalues of B with multiplicity in the
decreasing order in terms of a, b, and n.
(c) (5%) Write down all the eigenvectors associated with the above eigenvalues of B. Note
that each eigenvector has to be normalized to have a unit Euclidean norm.
登入後即可作答並保存紀錄。
核心觀念
本題考查矩陣的特徵值與特徵向量:
- 特徵值 與特徵向量 滿足
- 對稱矩陣的不同特徵值所對應的特徵向量互相正交。
- 形如
的矩陣,其中 為全元素皆為 的矩陣,可利用全 向量與其正交補空間快速求得特徵值。
解題方法
(a) 矩陣 的特徵值
題目給定
由於前兩列、前兩行具有對稱性,先考慮向量
計算得
因此, 是一個特徵值。
接著考慮第一、二個分量相同的向量
則
若其為特徵向量,必須滿足
因此
且
整理得
當
對應特徵向量為
當
對應特徵向量為
所以三個特徵值按照遞減順序為
(b) 矩陣 的特徵值
矩陣 為
可寫成
其中 為 單位矩陣, 為所有元素皆為 的矩陣。
令全 向量為
由於每一列的元素總和為 ,因此
所以
是一個特徵值。
再考慮任意滿足分量總和為 的向量
矩陣乘法的第 個分量為
因為
所以
因此
滿足分量總和為 的向量形成一個 維空間,所以 的代數重數為 。
又因為 、,
故遞減排列為
第 5. 題
- Consider a random variable X and . Hence, its expectation exists. Let us
denote as for notational simplicity. The absolute deviation from the mean is ,
and its expectation is denoted as
Let denote the standard deviation of X if it exists.
(a) (5%) Suppose the probability density function of X, , is proportional to , for
some . Derive in terms of .
(b) (5%) Let X be a normal random variable. Derive in terms of .
(c) (5%) Is it true that for any random variable X with finite variance, ? If your
answer is "yes", prove it. If your answer is "no", give a counter example.
登入後即可作答並保存紀錄。
核心觀念
本題比較兩種離均差:
與標準差:
主要使用:
- 對稱分布的平均數為對稱中心。
- 常態分布的絕對值期望公式。
- Cauchy–Schwarz 不等式:
(a) 機率密度函數與 成正比
設
由機率密度函數總積分必須為 :
因此
故 的密度函數為
此分布關於 對稱,所以
因此
利用對稱性:
分部積分得
接著計算變異數:
由 Gamma 積分公式:
所以
因此
(b) 為常態隨機變數
設
令
則 ,且
因此
標準常態密度為
第 6. 題
- Let X be continuous random variable with cumulative distribution function , t ∈ R and
probability density function , t ∈ R. Furthermore, for any t ∈ R, and
. Let Y be another random variable, independent of X, that takes values at 1 or
-1 with equal probability, that is,
Let Z = XY, the product of X and Y.
(a) (5%) Are X and Z correlated? Justify your answer rigorously by deriving the covariance
between X and Z.
(b) (5%) Are X and Z independent? Justify your answer rigorously by deriving the joint
cumulative distribution function of X and Z.
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 對稱機率密度函數所造成的分布與期望性質。
- 共變異數的定義:
- 不相關與獨立的區別:獨立一定不相關,但不相關不必然代表獨立。
- 聯合累積分布函數:
由 ,可知 的分布關於 對稱,因此
且
又因為 與 獨立,且 以相同機率取 ,所以
(a) 與 是否相關?
解題方法
先利用 計算 與 ,再代入共變異數公式。
由 與 獨立,
另一方面,
因為 是 的函數,仍與 獨立,故
題目給定 ,因此上述期望皆存在。代入共變異數:
因此 與 不相關。
解題技巧
看到 且 是獨立、平均值為 的隨機符號時,可直接注意到
但必須注意:共變異數為 只能得到「不相關」,不能直接推論「獨立」。
(b) 與 是否獨立?
第一步:求聯合累積分布函數
由 只可能取 或 ,分情況計算:
當 時,;當 時,。因此
第一項為
第二項中, 等價於 ,因此
因為 為連續型隨機變數,
所以聯合累積分布函數為
第 7. 題
- Let U be an uniform random variable over the interval (0,1). Given U = u, are
independent and identically distributed Bernoulli u random variables. Let denote the
number of "1"s in the length-n sequence .
(a) (5%) Derive the conditional probability mass function of given U:
.
(b) (5%) Derive the conditional probability mass function of given :
.
(c) (5%) Derive the moment generating function of .
(d) (5%) Derive the probability mass function of .
(e) (5%) Derive the joint probability mass function of :
.
登入後即可作答並保存紀錄。
核心觀念
本題主要考查以下觀念:
- 給定 時, 為條件獨立且同分布的 Bernoulli 隨機變數。
- 是前 個觀察值中出現「1」的次數,因此
- 利用全機率公式,對 積分,可得到 與 的邊際分布。
- 給定 後,所有含有 個「1」的長度 序列具有相同機率。
以下令 ,並記
(a)求 給定 的條件機率質量函數
給定 時,各個 條件獨立,且
因此,
又因為
所以當 給定時, 的值被完全決定。故
因此聯合條件機率質量函數為
也可以寫成
其中 為指示函數。
(b)求 給定 的條件機率質量函數
考慮一組固定序列 ,且其中恰有 個「1」。此時
先計算該序列的邊際機率:
此積分為 Beta 函數:
而 的事件共有
組不同序列。故
因此,對於含有 個「1」的序列,
所以完整答案為
這表示:給定 後,所有含有 個「1」的序列等可能。
(c)求 的動差生成函數
動差生成函數定義為
給定 時,
因此其條件動差生成函數為
由全期望公式,
令
當 時,;當 時,。因此