108 年 國立成功大學電信管理研究所乙組《線性代數》
第 1 題20 分
Forward elimination changes to a row reduced : the complete solution is
What is the 3 by 3 reduced row echelon matrix and what is ?
登入後即可作答並保存紀錄。
本題主要考查矩陣的列空間、零空間以及高斯消去法在求解線性方程組中的應用。
題目給出了線性方程組 的一個參數化通解,並指出經過向前消去法(Forward elimination)後,方程組變為 ,其中 是 3x3 的列簡約階梯矩陣(reduced row echelon matrix)。我們需要找出 和 。
從給定的通解形式 可以看出,其中 是方程組 的一個特解(particular solution),而 是對應齊次方程組 的通解。
齊次方程組 的通解空間是 的零空間(null space)。由通解的形式可知,零空間的基底是向量 和 。這表示 的零空間維度是 2,即 。
矩陣 是 3x3 的,根據秩-零度定理(Rank-Nullity Theorem),,其中 是矩陣的列數。所以,,得到 。
向前消去法會將 轉換為 ,其中 是 的行簡約階梯形式。 的秩等於 的秩,所以 。同時, 的零空間維度也等於 的零空間維度,即 。
一個 3x3 的列簡約階梯矩陣 如果秩為 1,意味著它只有一個非零列,且該列只有一個 1,其他元素皆為 0。同時,它也只有一個自由變數。
從通解 可以寫成向量形式:
第 2 題20 分
Find the matrix that projects every vector in onto the line in the direction of .
登入後即可作答並保存紀錄。
本題考查向量投影的矩陣表示。
要求一個矩陣 ,使得對於任意向量 , 是 在向量 方向上的投影。
首先,我們回憶一下向量 在向量 上的投影公式。向量 在向量 上的投影向量記為 ,其公式為:
其中 是 和 的內積, 是 的內積(即 )。
我們可以將這個公式改寫成矩陣形式。令 且 。
則 。
。
所以,
由於 是一個純量,我們可以將其移到向量 的前面:
這個形式 中的矩陣 就是我們所求的投影矩陣。
現在我們將題目給定的向量 代入公式。
首先計算 :
第 3 題20 分
About the matrix A:
(a) Find the lower triangular L and an upper triangular U so that ;
(b) If the vector is the sum of the four columns of A, write down the complete solution to .
登入後即可作答並保存紀錄。
核心觀念
本題考查:
- 矩陣的 分解:以列運算消去下三角元素,使
- 高斯消去法與增廣矩陣解法。
- 齊次方程組 的解,即 的零空間。
- 欠定系統的完整解:主變數以自由變數表示。
由於 是 矩陣,因此 為 下三角矩陣, 為 上梯形矩陣。
解題方法
原矩陣為
(a)求 與
以第一列為主元素進行消去。
第二列減去第一列的 倍:
第三列減去第一列的 倍:
得到
再以第二列消去第三列:
因此
消去過程中的倍數為
因此單位下三角矩陣為
故
(b)求 的完整解
向量 是 的四個欄向量總和,因此
直接計算得
因此必有一組特解為
為求完整解,直接解 :
第 4 題20 分
Suppose that whether or not it rains today depends on previous weather conditions through the last two days. Specifically, suppose that if it has rained for the past two days, then it will rain tomorrow with probability 0.7; if it rained today but not yesterday, then it will rain tomorrow with probability 0.5; if it rained yesterday but not today, then it will rain tomorrow with probability 0.4; if it has not rained in the past two days, then it will rain tomorrow with probability 0.2. Please transform this model into a Markov chain by saying that the state at any time is determined by the weather conditions during both that day and the previous day. The process is in state 0 if it rained both today and yesterday; state 1 if it rained today but not yesterday; state 2 if it rained yesterday but not today; state 3 if it did not rain either yesterday or today.
(a) Write down the transition probability matrix consisting of the four states 0, 1, 2, and 3.
(b) Given that it rained on Monday and Tuesday, what is the probability that it will rain on Thursday?
登入後即可作答並保存紀錄。
核心觀念
本題考「有限記憶的天氣模型」如何轉換為馬可夫鏈。
原模型中,明天天氣的機率取決於「今天與昨天」的天氣。因此,將連續兩天的天氣組合定義為一個狀態後,下一天的狀態只由目前狀態決定,符合馬可夫性:
各狀態定義如下:
- 狀態 :昨天、今天均下雨,記為 。
- 狀態 :昨天未下雨、今天下雨,記為 。
- 狀態 :昨天下雨、今天未下雨,記為 。
- 狀態 :昨天、今天均未下雨,記為 。
其中 表示下雨, 表示未下雨。
解題方法
採用「目前狀態搭配明天天氣」建立下一期狀態。
若今天狀態為 ,則明天的新狀態為:
因此,每一列的兩個非零機率,分別對應「明天下雨」與「明天不下雨」。
(a) 轉移機率矩陣
由狀態 出發
狀態 ,明天下雨的機率為 :
- 明天下雨:新狀態仍為 ,即狀態 。
- 明天不下雨:新狀態為 ,即狀態 。
因此:
由狀態 出發
狀態 ,明天下雨的機率為 :
- 明天下雨:新狀態為 ,即狀態 。
- 明天不下雨:新狀態為 ,即狀態 。
因此:
由狀態 出發
狀態 ,明天下雨的機率為 :
- 明天下雨:新狀態為 ,即狀態 。
- 明天不下雨:新狀態為 ,即狀態 。
因此:
由狀態 出發
狀態 ,明天下雨的機率為 :
- 明天下雨:新狀態為 ,即狀態 。
- 明天不下雨:新狀態仍為 ,即狀態 。
因此:
依照狀態順序 ,轉移機率矩陣為:
第 5 題20 分
Kevin figures that the total number of thousands of kilometers that a motorcycle can be driven before it would need to be junked is an exponential random variable with parameter . Henry has a used motorcycle that he claims has been driven only 10,000 kilometers. If Kevin purchases the motorcycle, what is the probability that he would get at least 20,000 additional kilometers out of it?
Repeat under the assumption that the lifetime mileage of the motorcycle is not exponentially distributed but rather is (in thousands of kilometers) uniformly distributed over (0; 40).
登入後即可作答並保存紀錄。
本題考查機率論中關於隨機變數的兩個重要分佈:指數分佈(Exponential Distribution)和均勻分佈(Uniform Distribution),以及它們在計算條件機率和剩餘壽命機率方面的應用。
首先,我們來處理指數分佈的部分。
第一部分:指數分佈
設 為機車的總壽命里程(以千公里為單位)。
服從參數為 的指數分佈。
指數分佈的機率密度函數(PDF)為 ,其中 。
累積分佈函數(CDF)為 ,其中 。
指數分佈的一個重要性質是「無記憶性」(memoryless property)。對於任意 ,有 。
題目給定 Henry 的機車已經行駛了 10,000 公里,即 10 千公里。
Kevin 購買後,希望知道他能獲得至少 20,000 公里(即 20 千公里)額外里程的機率。
這相當於計算條件機率 ,即 。
利用指數分佈的無記憶性:
現在我們計算 。
代入 :
所以,在指數分佈的假設下,Kevin 至少能獲得 20,000 公里額外里程的機率是 。
第二部分:均勻分佈
現在假設機車的總壽命里程 (以千公里為單位)服從 上的均勻分佈。
均勻分佈的 PDF 為 ,其中 。
在這裡,, 。所以 ,對於 。