111 年 國立臺北大學都市計劃研究所甲組《統計學》
第 1 題25 分
- (25%) Consider a data for investigating the housing price (unit: thousand dollars) in an area. Five attributes were collected including the location (metropolitan area, urban and suburban), floor size (units: feet), distance to the metro station (units: kilometer), number of bathrooms (1, 2, 3) and having the balcony (yes and no). Exploratory data analysis (EDA) is an important statistical analysis procedure. Data visualization is one of the EDA. The following provides common used statistical figures:
(A) 🖼️【此處有附圖,請對照原卷】
(B) 🖼️【此處有附圖,請對照原卷】
(C) 🖼️【此處有附圖,請對照原卷】
(D) 🖼️【此處有附圖,請對照原卷】
(E) 🖼️【此處有附圖,請對照原卷】
(F) 🖼️【此處有附圖,請對照原卷】
(G) 🖼️【此處有附圖,請對照原卷】
(H) 🖼️【此處有附圖,請對照原卷】
(I) 🖼️【此處有附圖,請對照原卷】
Use the letters A - I to answer the following questions. Multiple figures might be possible for the following questions.
(i) Write down the appropriate figures for visualizing distance to the metro station.
(ii) Write down the appropriate figures for visualizing location.
(iii) Write down the appropriate figures for visualizing location and housing price.
(iv) Write down the appropriate figures for visualizing distance to the metro station and housing price.
(v) Write down the appropriate figures for visualizing having balcony and the location.
登入後即可作答並保存紀錄。
核心觀念
先依變數型態選圖:距離與房價都是連續數值變數;地點是三類的類別變數;是否有陽台是二類的類別變數。單一連續變數可用直方圖、盒鬚圖或常態 Q-Q 圖呈現;兩個連續變數可用散佈圖;類別變數搭配連續變數可用分組盒鬚圖;兩個類別變數可用分組長條圖。
解題方法
原卷圖中,A 是長條圖;B 是盒鬚圖;C 是直方圖;D 是分組長條圖;E 是散佈圖;F 是依類別分組的盒鬚圖;G 是水平區間圖;H 的橫軸標示理論分位數,是 Q-Q 圖;I 是折線圖。依各圖能呈現的變數型態與關係,逐題配對即可。
各圖判讀
- A:長條圖。 用柱高比較類別的次數或比例,適合呈現單一類別變數,例如地點。
- B:盒鬚圖。 顯示連續變數的中位數、四分位數、分布範圍與離群值,適合呈現距離的分布。
- C:直方圖。 以數值區間的柱高顯示連續變數的頻率分布,適合呈現距離的分布形狀。
- D:分組長條圖。 比較兩個類別變數組合下的次數或比例,適合呈現陽台與地點的組合。
- E:散佈圖。 每個點代表一筆資料,可呈現兩個連續變數的關係,適合比較距離與房價。
- F:分組盒鬚圖。 以各類別的盒鬚圖比較連續數值的分布,適合比較不同地點的房價。
- G:水平區間圖。 以水平線段呈現各組的區間或範圍;本題所問的單一變數分布、兩數值變數關係或類別組合,均非此圖的主要用途。
第 2 題20 分
- (20%) Consider a data for investigating the housing price (unit: thousand dollars) in an area. Five attributes were collected including the location (metropolitan area, urban and suburban), floor size (units: feet), distance to the metro station (units: kilometer), number of bathrooms (1, 2, 3) and having the balcony (yes and no). The first step for the data analyses is to compute descriptive statistics for each variables. The following provides common used summary statistics:
(A) Correlation
(B) Frequency
(C) Interquartile
(D) Kurtosis
(E) Mean
(F) Medium
(G) Minimum
(H) Mode
(I) Percent
(J) Skewness
(K) Standard deviation
(L) Variance
Use the letters A - L to answer the following questions. Multiple summary statistics might be possible for the following questions.
(i) Write down the appropriate summary statistics for describing the centrality of the distance to the metro station.
(ii) Write down the appropriate summary statistics for describing the variability of the distance to the metro station.
(iii) Write down the appropriate summary statistics for describing the shape of the distribution of the distance to the metro station.
(iv) Write down the appropriate summary statistics for summarizing the location.
登入後即可作答並保存紀錄。
核心觀念
本題評量統計學中「變數衡量尺度(Scales of Measurement)」與「單變數敘述統計量(Univariate Descriptive Statistics)」之分類與應用:
- 變數類型與衡量尺度:
- 連續數值變數(Continuous Numerical Variable):如「捷運站距離(distance to the metro station)」,具等比尺度(Ratio scale),具有實際數值意義與真實零點,可進行各級動差計算,適用於描述中心趨勢、離散程度與分配形狀。
- 名目類別變數(Nominal Categorical Variable):如「區位(location)」,由大都會區(metropolitan area)、市區(urban)、郊區(suburban)組成,類別之間無順序大小與數值距離關係,僅能以計數與佔比彙總。
- 單變數敘述統計量之分類:
- 中心趨勢度量(Measures of Centrality / Central Tendency):指出資料集中分布位置的代表值,常見指標包含平均數(Mean)、中位數(Median)、眾數(Mode)。
- 離散與變異程度度量(Measures of Variability / Dispersion):反映數值相對於中心發散或波動程度,常見指標包含四分位距(Interquartile Range, IQR)、變異數(Variance)、標準差(Standard Deviation)。
- 分配形狀度量(Measures of Distribution Shape):描述次數分配曲線之幾何外觀,常見指標包含衡量不對稱性的偏態(Skewness)與衡量尾部厚度及尖銳程度的峰態(Kurtosis)。
- 類別資料摘要(Summarizing Categorical Data):以各分組之次數(Frequency)、相對次數/百分比(Percent),以及出現最多次之類別(眾數 Mode)進行摘要。
解題方法
檢視原卷第 2 頁影像,第 2 題提供由 (A) 至 (L) 共 12 個摘要統計量之對照表格,題幹說明資料包含 5 個變數,其中捷運站距離(distance to the metro station)為連續型數值變數,區位(location)為三分類名目變數;原卷題末文字雖誤植為「Use the letters A - I...」,但選項表格完整羅列 (A)~(L),作答時應以全表 (A)~(L) 為範圍。
針對各小題切入分析:
- 子題 (i) 捷運站距離之中心趨勢(centrality):
捷運站距離為連續變數,描述中心位置之典型統計量為算術平均數(Mean)、排序中點之數值中位數(Median,表格中拼寫為 Medium),以及出現頻率最高點之眾數(Mode)。 - 子題 (ii) 捷運站距離之離散程度(variability):
描述數值變數離散趨勢的統計量中,四分位距(Interquartile / IQR)衡量中間 資料的分布寬度且具耐抗性;變異數(Variance)為離均差平方之平均;標準差(Standard deviation)為變異數之正平方根,具備與原變數相同之量綱(公里)。 - 子題 (iii) 捷運站距離之分配形狀(shape):
連續變數之機率分配形狀由標準化三級動差偏態(Skewness,判定正偏/右偏或負偏/左偏)與標準化四級動差峰態(Kurtosis,判定高狹峰或低闊峰)共同描述。 - 子題 (iv) 區位變數之資料摘要(summarizing the location):
區位為三分類的名目資料,無法進行加減運算與計算距離,不能使用平均數或標準差;適用的摘要方式為列出各分類出現的次數(Frequency)、計算各分類佔全體樣本之比例百分比(Percent),以及指出樣本中出現最多之區位類別(Mode)。
選項分析
針對表格所列 (A) 至 (L) 共 12 個選項逐一說明其定義與適用性:
- (A) Correlation(相關係數):
錯誤。相關係數衡量兩個數值變數之間的線性相關方向與強度,屬於雙變數(Bivariate)統計量,不可用於單變數之中心、離散、形狀或類別摘要。 - (B) Frequency(次數/頻率):
適用於 (iv)。次數用以記錄名目類別資料中各類別觀測值的個數,為建立類別分配表之核心摘要指標;對於連續數值變數,單一數值的次數無法作為全體資料中心或離散的代表指標。 - (C) Interquartile(四分位距,即 Interquartile Range, IQR):
適用於 (ii)。定義為第 3 四分位數與第 1 四分位數之差:
用以衡量中間 資料之離散範圍,不受極端值影響,屬於離散度量(variability)。 - (D) Kurtosis(峰態/峰度):
適用於 (iii)。標準化四級中心動差,衡量分配相較於標準常態分配之尖銳程度與厚尾程度,用以描述機率分配之形狀(shape)。 - (E) Mean(平均數):
適用於 (i)。所有數值觀測值之總和除以樣本數:
為連續數值變數衡量中心趨勢(centrality)最基礎且最常用之統計量。 - (F) Medium(題意筆誤,實為 Median 中位數):
適用於 (i)。將數值由小至大排序後居於正中央位置之數值,為衡量中心趨勢(centrality)之耐抗性指標(原卷表格拼字為 Medium,按統計學上下文顯屬 Median 之誤植)。 - (G) Minimum(最小值):
錯誤。
第 3 題15 分
- (15%) Consider a data for investigating the housing price (unit: thousand dollars) in an area. Five attributes were collected including the location (metropolitan area, urban and suburban), floor size (units: feet), distance to the metro station (units: kilometer), number of bathrooms (1, 2, 3) and having the balcony (yes and no). The second step for the data analyses is to find the bivariate association between housing price and other attributes. The following provides common used test statistics:
(A) One-Way Analysis of Variance (ANOVA)
(B) Correlation
(C) Chi-square test
(D) McNemar test
(E) Paired T test
(F) Simple linear regression
(G) Two independent sample T test
(H) Wilcoxon rank sum test
Use the letters A - H to answer the following questions. Multiple test statistics might be possible for the following questions.
(i) Write down the appropriate test statistics for testing the association between the housing price and location.
(ii) Write down the appropriate test statistics for testing the association between the housing price and the floor size.
(iii) Write down the appropriate test statistics for testing the association between the housing price and having the balcony.
登入後即可作答並保存紀錄。
核心觀念
本題評量雙變量關聯分析(Bivariate Association Analysis)與假設檢定方法的選用原則。選擇適當檢定統計量與方法的關鍵在於判斷兩變數的衡量尺度(Scale of Measurement)與樣本結構:
- 依變數尺度:房價(Housing price)的單位為千美元(thousand dollars),為連續型數值變數(Continuous quantitative variable / Ratio scale)。
- 自變數尺度與組數:
- 多類別名義變數( 組獨立樣本):檢定各組連續平均數之差異,採用單因子變異數分析(One-Way ANOVA)之 檢定。
- 連續型數值變數:探討兩連續變數之線性關聯強度與方向,採用皮爾森相關分析(Pearson Correlation)之 檢定;探討影響關係與預測,採用簡單線性迴歸(Simple Linear Regression)之斜率 檢定或迴歸 檢定。
- 二元分類變數( 組獨立樣本):檢定兩獨立組別在連續變數上的平均數差異,母數檢定採用獨立雙樣本 檢定(Two independent sample test);若不符合常態分佈假設,無母數檢定採用威爾卡森秩和檢定(Wilcoxon rank sum test)。
解題方法
依據原卷第 2 頁第 3 題表格內容,題目列出 (A) 至 (H) 共 8 種常用的統計檢定方法,並註明各子題可能有複數個適用選項。分析各子題變數型態與對應檢定如下:
-
子題 (i) 房價(Housing price)與區位(Location):
- 變數屬性:房價為連續型數值變數;區位(Location)包含大都會區、市區、郊區(metropolitan area, urban, suburban)共 3 個組別,屬於 的獨立分類名義變數。
- 檢定選擇:比較 3 組獨立母體平均數是否相等(),標準統計方法為單因子變異數分析(One-Way ANOVA),檢定統計量為:
- 適用選項為 (A)。
-
子題 (ii) 房價(Housing price)與室內面積(Floor size):
- 變數屬性:房價與室內面積(單位為呎)皆為連續型數值變數。
- 檢定選擇:
- 探討兩連續變數是否存在線性相關,使用相關分析(Correlation),檢定母體相關係數 ,檢定統計量為:
- 建立雙變數線性模型 ,使用簡單線性迴歸(Simple linear regression),檢定斜率係數 ,檢定統計量為:
在雙變數情境下, 且兩者檢定結果完全等價。
- 探討兩連續變數是否存在線性相關,使用相關分析(Correlation),檢定母體相關係數 ,檢定統計量為:
- 適用選項為 (B), (F)。
-
子題 (iii) 房價(Housing price)與是否有陽台(Having the balcony):
- 變數屬性:房價為連續型數值變數;是否有陽台包含「有(yes)」與「無(no)」共 2 個組別,屬於 的獨立二元分類變數。
- 檢定選擇:
- 母數檢定(常態分佈假設):檢定兩獨立組別之母體平均房價是否相等(),使用獨立雙樣本 檢定(Two independent sample test),對應選項 (G)。
- 無母數檢定(非常態或偏態資料):房價資料常具右偏特性,若不滿足常態假設,檢定兩組分佈位置或中位數是否相同,使用威爾卡森秩和檢定(Wilcoxon rank sum test)(等價於曼-惠特尼 檢定),對應選項 (H)。
- 模型等價性視角:當自變數為 2 組時,單因子變異數分析 (A) 之 檢定與獨立雙樣本 檢定(等變異假設下)在數學上完全等價();以 0/1 虛擬變數進行簡單線性迴歸 (F) 的斜率檢定亦完全等價於獨立雙樣本 檢定。因此 (A) 與 (F) 亦具備方法可行性,但最專用之標準檢定為 (G) 與 (H)。
- 適用選項為 (G), (H)(學理上納入廣義模型等價則包含 (A), (F))。
選項分析
針對題目提供的 (A) 至 (H) 選項,逐一評估其統計定義與適用性:
-
(A) One-Way Analysis of Variance (ANOVA):
- 說明:單因子變異數分析,用於比較單一分類因子( 組獨立樣本)對單一連續數值依變數的平均數差異。
- 適用性:
- (i) Location 具 3 組獨立樣本,完全正確(適用)。
- (ii) Floor size 為連續變數,非分類因子,不適用。
- (iii) 組數為 2 時, 檢定與獨立雙樣本雙尾 檢定等價(),學理上可適用,但標準首選為 檢定。
-
(B) Correlation:
- 說明:相關分析,用於檢驗兩個連續數值變數間的線性關聯性強弱與方向(如 Pearson 相關係數)。
- 適用性:
- (i) Location 為類別變數,無法直接計算 Pearson 相關係數,不適用。
- (ii) Housing price 與 Floor size 均為連續變數,完全正確(適用)。
- (iii) Having balcony 為名義二分變數,非連續變數,不適用。
-
(C) Chi-square test:
- 說明:卡方獨立性檢定(Chi-square test of independence),用於檢定兩個類別變數(Categorical vs. Categorical)之間是否獨立。
- 適用性:本題依變數 Housing price 為連續數值變數,若未人為分組離散化,無法編製二維列聯表進行卡方檢定,故 (i)、(ii)、(iii) 皆不適用。
-
(D) McNemar test:
- 說明:麥克尼馬檢定,專用於成對相依樣本(Paired / Dependent samples)之二元類別變數變動檢定(如受試者介入前後的是/否變化)。
- 適用性:本題各房屋為截面獨立觀測值,非成對重複量測,且房價為連續變數,故 (i)、(ii)、(iii) 皆不適用。
-
(E) Paired T test:
- 說明:成對樣本 檢定,用於檢定相依配對樣本在連續變數上的平均差異(如同一組對象的前後測差值)。
- 適用性:不同區位或不同房屋之間互為獨立樣本,不存在配對結構,故 (i)、(ii)、(iii) 皆不適用。
-
(F) Simple linear regression:
- 說明:簡單線性迴歸,以單一自變數(連續或二元虛擬變數)建立對連續依變數的線性方程式,並檢定回歸係數之顯著性。
- 適用性:
第 4 題10 分
- (10%) Let denote the housing price. Assume that the distribution of approximately follows a normal distribution with mean 75 millions and standard deviation 100 millions.
(i) Find the probability that the housing price exceeds 90 millions.
(ii) Assume a businessman would like to know the reasonable housing price. He would like to conduct a study to collect a sample to estimate the mean housing price . Assume the standard deviation equals 100 millions. How large a sample is necessary if he want the estimate to be within 2 millions of the actual mean value , with 95% confidence?
登入後即可作答並保存紀錄。
核心觀念
- 常態分配的標準化(Standardization):
設隨機變數 服從常態分配 ,透過轉換公式: 可將一般常態隨機變數轉換為標準常態隨機變數 ,並利用標準常態累積機率表求解特定區間的機率。 - 估計母體平均數的樣本數決定(Sample Size Determination for Mean):
在母體標準差 已知下,以樣本平均數 作為母體平均數 的點估計量。在信賴水準為 時,估計的邊際誤差(Margin of Error)公式為: 經由代數移項,可求得使估計誤差不超過容許範圍 所需的最小樣本數 :
解題方法
依據考卷第 3 頁題幹與第 4 頁附表「Table 1: Area under the standard normal curve」,題目文字與第 3 頁完全一致,第 4 頁提供了標準常態分配累積機率 之查表值。
(i) 計算房價超過 90 百萬的機率
令隨機變數 代表房價(單位:百萬),已知母體平均數 、母體標準差 ,即 。
所求為 。
- 標準化轉換:
- 查表計算機率:
查閱原卷第 4 頁 Table 1,找到 (即列 與欄 之交會值): 因此,房價超過 90 百萬的機率為:
(ii) 計算在 95% 信賴水準下使誤差在 2 百萬以內的必要樣本數
商人欲估計母體平均房價 ,已知母體標準差 (百萬),容許誤差 (百萬),信賴水準為 95%。
- 求臨界值 :
信賴水準 ,雙尾臨界值各分攤 。
第 5 題10 分
- (10%) Assume a regular condo price at a given area is about 100 thousand dollars. Suppose the probability that the condo price exceeds 150 thousand dollars is 0.1. Let equal the number of condo prices that exceeds 150 thousand dollars in a sample of 30 condos selected at random from this area.
(i) Find .
(ii) Find mean and variance of .
登入後即可作答並保存紀錄。
核心觀念
- 二項分配(Binomial Distribution)之定義與性質:
- 當進行 次獨立且相同的白努利試驗(Bernoulli trial),每次試驗僅有兩種互斥結果(成功與失敗),且成功的機率固定為 、失敗機率為 時,成功的總次數 服從二項分配,記為 。
- 機率質量函數(Probability Mass Function, PMF):
- 二項分配的母體動差(Moments):
- 期望值(平均數):
- 變異數:
解題方法
檢視考卷原題(第 3 頁第 5 題),本題為文字敘述題,卷頭特別註明「可使用計算機」。題幹說明該區域一般公寓平均價格約為 10 萬美元(此為背景描述),而任選一間公寓價格超過 15 萬美元的機率為 。現從該區域隨機抽取 間公寓,由於抽樣方式為隨機抽樣,各公寓價格是否超過 15 萬美元彼此獨立,故符合二項試驗條件。令隨機變數 代表 30 間公寓中價格超過 15 萬美元的公寓數量,則 。
(i) 求
根據二項分配之機率質量函數,代入 、 及 :
各項推導計算如下:
相乘得到:
(ii) 求 的平均數(Mean)與變異數(Variance)
對於二項隨機變數 ,直接套用期望值與變異數公式:
- 平均數(Mean, ):
- 變異數(Variance, ):
第 6 題10 分
- (10%) The greatest variation in real estate price is in California, where recently there was a difference of more than 1.2 million in 2001, whereas a similar home in Bakersfield was appraised at \mu1.2 million in 2002?
(i) Write down the hypotheses.
(ii) Use a 5% significance level to make your inference.
登入後即可作答並保存紀錄。
核心觀念
本題的核心觀念為單一常態母體平均數的雙尾假設檢定以及信賴區間與雙尾假設檢定之間的對偶性(Duality of Confidence Interval and Two-Sided Hypothesis Testing)。
- 假說建立:當研究問題欲檢驗母體平均數 是否「不同於(different from)」某一特定基準值 時,應設立雙尾檢定(two-tailed test):
- 虛無假說(Null Hypothesis):
- 對立假說(Alternative Hypothesis):
- 信賴區間與假設檢定的等價關係:
在顯著水準 下,雙尾檢定 的拒絕決策,與對應的 雙尾信賴區間等價:- 若 不落在 信賴區間內,則在顯著水準 下拒絕 。
- 若 落在 信賴區間內,則在顯著水準 下不拒絕 。
解題方法
(i) 寫出假設檢定(Write down the hypotheses)
令 代表 2002 年帕羅奧圖房屋的母體平均估價(單位:百萬美元,million dollars)。
題目詢問是否有充分證據顯示平均房價 「不同於」$1.2 百萬,此為雙尾檢定:
(其中 百萬美元)。
(ii) 使用 5% 顯著水準進行推論(Use a 5% significance level to make your inference)
本題直接給定 95% 信賴區間,利用顯著水準 與 信賴區間的對偶性進行判定:
- 題目的 95% 信賴區間為:
- 虛無假說設定之目標值為 百萬美元。
- 比對數值可得:
- 決策準則:因為 未落在 95% 信賴區間之內,所以在顯著水準 下,應拒絕虛無假說 。
- 結論陳述:在 5% 顯著水準下,有充分的統計證據顯示,2002 年帕羅奧圖的房屋平均估價 顯著不同於 $1.2 百萬(實質上顯著低於 $1.2 百萬)。
選項分析
本題為非選擇題(計算問答題),無選項。各小題推論重點如下:
- 第 (i) 小題:關鍵字為「different from」,故對立假說必須使用不等號「」而非單尾檢定的「」或「」;參數必須清楚定義為 2002 年該地區房屋之母體平均估價 。
- 第 (ii) 小題:題幹並未給予原始資料或樣本標準差 ,而是直接給出 95% 信賴區間。出題者用意即為考查「95% 信賴區間與 雙尾檢定」的對偶互通性,若未能連結兩者關係,將無法直接利用題目給定條件作答。
解題技巧
第 7 題10 分
- (10%) Winthrop Boat Lines is exploring the possibility of offering a ferry service between the cities of Patna and Madura, provided there is sufficient demand to make it feasible. The firm randomly interviewed 210 commuters from the two cities, and 146 of them indicated they would patronize the ferry service instead of the present bus service.
(i) Estimate the population p of commuters from the two cities who would prefer the ferry service.
(ii) Construct a 95% confidence interval for p.
登入後即可作答並保存紀錄。
核心觀念
本題評量母體比例的統計推論(Statistical Inference for Population Proportion),包含點估計與區間估計:
- 點估計量(Point Estimator):以樣本比例 作為母體比例 的不偏估計量(Unbiased Estimator),其中 為樣本大小, 為具有特定特徵之樣本數。
- 大樣本常態近似與中央極限定理(Central Limit Theorem):當 且 (或常用 )時,樣本比例 的抽樣分配近似於常態分配:
- 母體比例之雙尾信賴區間(Confidence Interval):在 的信賴水準下,母體比例 的雙尾信賴區間公式為: 其中 為標準常態分配上尾機率為 之臨界值, 為樣本比例的估計標準誤(Estimated Standard Error, )。
解題方法
依據原卷第 3 頁第 7 題題意,訪問通勤者之樣本總數 ,其中表示偏好渡輪服務的人數 ;查閱試卷第 4 頁之「Table 1: Area under the standard normal curve」,在 處查得累積機率為 ,提供 信賴區間所需之臨界值。
(i) 估計偏好渡輪服務的通勤者母體比例
母體比例 的點估計量為樣本比例 :
(ii) 建構 的 95% 信賴區間
-
檢驗大樣本常態近似條件:
條件成立,樣本比例 可藉由常態分配進行良好近似。
-
確定臨界值 :
信賴水準為 ,顯著水準 ,雙尾分配之單側尾端機率為 。
由試卷第 4 頁 Table 1 查得累積機率 ,得: -
計算估計標準誤(Standard Error):
-
計算誤差界限(Margin of Error, ):
-
計算信賴區間上下限:
- 區間下限:
- 區間上限: