114 年 國立臺北大學都市計劃研究所《統計學》
第 1 題25 分
- (25%) In response to the construction of the Neihu MRT, the Taipei City Department of Transportation hopes to understand the commuting conditions and needs of Neihu residents through a telephone survey. The questionnaire covers basic demographic information, the type of commuting tools used, commuting costs (in NT dollars), and commuting time (in minutes). The basic demographic information includes age (in years), gender, and education level (1 = high school or below; 2 = university; 3 = graduate school or above). Exploratory data analysis (EDA) is an important statistical analysis procedure. Data visualization is one aspect of EDA.
The commonly used statistical figures include:
(A) Bar chart
(B) Box plot
(C) Histogram
(D) Line chart (折線圖)
(E) Pie chart
(F) QQ plot
(G) Scatter plot
Use the letters (A) - (G) to answer the following questions. Multiple figures may be possible for the following questions.
(1) Write down the appropriate figures to visualize the type of commuting tools used.
(2) Write down the appropriate figures to visualize commuting costs.
(3) Write down the appropriate figures to visualize the association between commuting costs and commuting time.
(4) Write down the appropriate figures to visualize the association between gender and commuting time.
(5) Write down the appropriate figures to visualize the association between gender and the type of commuting tools used.
登入後即可作答並保存紀錄。
核心觀念
本題的核心在於探索性資料分析(Exploratory Data Analysis, EDA)中的資料視覺化(Data Visualization)原則。選擇合適統計圖表的關鍵在於辨識變數的衡量尺度(Scale of Measurement)與變數維度(單變量或雙變量關聯):
-
變數型態分類:
- 類別變數 / 定性變數(Categorical / Qualitative Variable):
- 通勤工具類型(Type of commuting tools used):名目尺度(Nominal scale)。
- 性別(Gender):名目尺度(二元類別)。
- 數值變數 / 定量連續變數(Quantitative / Continuous Numerical Variable):
- 通勤費用(Commuting costs,單位為新台幣元):等比尺度(Ratio scale)。
- 通勤時間(Commuting time,單位為分鐘):等比尺度(Ratio scale)。
- 類別變數 / 定性變數(Categorical / Qualitative Variable):
-
圖表適用原則:
- 單一類別變數:適合呈現各類別的次數、相對次數或比例結構,常用長條圖(Bar chart)與圓餅圖(Pie chart)。
- 單一連續數值變數:適合呈現資料的集中趨勢、離散程度、偏態、對稱性或常態性,常用直方圖(Histogram)、盒鬚圖(Box plot)與常態機率圖(QQ plot)。
- 雙連續數值變數之關聯:適合呈現兩個連續變數間的相關方向、線性程度、聚集趨勢或異常值,標準工具為散佈圖(Scatter plot)。
- 一類別與一數值變數之關聯:適合將數值變數依類別變數分組,並列比較各組的分布與統計量,最常用並列盒鬚圖(Side-by-side box plot),亦可使用比較直方圖(Comparative / Back-to-back histogram)。
- 雙類別變數之關聯:適合呈現兩類別變數交叉分類(列聯表)的次數或百分比分布,最常用分組長條圖(Clustered bar chart)或堆疊長條圖(Stacked bar chart)。
- 時間序列資料:隨時間先後演進的連續趨勢才使用折線圖(Line chart)。
解題方法
檢視考卷原頁(第 1 頁),題幹為臺北市交通局針對內湖科技園區/捷運通勤狀況進行之電話民意調查,屬於橫斷面抽樣資料(Cross-sectional survey data)。題幹給出 (A) 至 (G) 共 7 種常用統計圖表,以下依據各小題探討之變數特性進行判斷:
-
第 (1) 小題:視覺化「通勤工具類型」
- 變數性質:單一類別變數(名目尺度)。
- 切入點:需呈現受訪者使用各項通勤工具的次數分配或百分比組成。(A) 長條圖(Bar chart)以長條長度代表各工具使用次數;(E) 圓餅圖(Pie chart)以扇形角度代表各工具所占比例,兩者皆為適當圖表。
-
第 (2) 小題:視覺化「通勤費用」
- 變數性質:單一連續數值變數(等比尺度)。
- 切入點:需呈現費用的分布形狀、集中趨勢、分散程度與極端值。(B) 盒鬚圖(Box plot)以五數綜合摘要呈現中位數、四分位距與離群值;(C) 直方圖(Histogram)以連續組距呈現費用分配之峰度與偏態;(F) QQ 圖(QQ plot)則常用於檢驗該費用數據是否符合常態分配。此三者皆屬 EDA 中呈現單一連續數值變數的適當工具。
-
第 (3) 小題:視覺化「通勤費用」與「通勤時間」的關聯性
- 變數性質:兩個連續數值變數(雙變量定量資料)。
- 切入點:探討兩連續變數之間是否存在線性或非線性相關,標準且唯一的雙變量圖表為 (G) 散佈圖(Scatter plot),兩軸分別設定為費用與時間,以點的位置展示兩者的共變趨勢。
-
第 (4) 小題:視覺化「性別」與「通勤時間」的關聯性
- 變數性質:一個類別變數(性別:男/女)與一個連續數值變數(通勤時間)。
- 切入點:比較男性與女性在通勤時間上的分布差異。最標準且推薦的工具為 (B) 盒鬚圖(繪製並列盒鬚圖 Side-by-side box plot),可清楚對比兩組的中位數與變異程度;此外,亦可使用 (C) 直方圖(繪製重疊直方圖或背對背直方圖 Comparative histogram)比較兩性別的時間分布。
-
第 (5) 小題:視覺化「性別」與「通勤工具類型」的關聯性
- 變數性質:兩個類別變數(雙變量定性資料,交叉列聯表結構)。
- 切入點:探討不同性別受訪者在通勤工具選擇上的分佈偏好與關聯性。最標準的圖表為 (A) 長條圖(繪製分組長條圖 Clustered bar chart 或堆疊長條圖 Stacked bar chart);若以廣義視角繪製男、女兩組獨立之 (E) 圓餅圖(Multiple pie charts)比較結構比重亦屬可行,但視覺比較精確度以長條圖為首選。
選項分析
針對題目所列 (A) 至 (G) 七種圖表逐一評析:
-
(A) Bar chart(長條圖):
- (1) 正確:長條圖橫軸為互斥類別,縱軸為次數或相對次數,完美適用於呈現單一類別變數「通勤工具類型」。
- (2) 錯誤:通勤費用為連續數值變數,長條圖各柱之間有間隔且適用於離散類別,不適用於連續變數之機率密度或分配形狀展示。
- (3) 錯誤:無法同時表示兩個連續數值變數之間的雙變量點對點關聯。
- (4) 不適合:若僅繪製性別組別的「平均時間長條圖」(Dynamite plot),會遺失分散度、偏態與極端值等完整分布資訊,現代統計 EDA 強烈建議使用盒鬚圖。
- (5) 正確:可繪製「分組長條圖」(Clustered bar chart)或「百分比堆疊長條圖」(Stacked bar chart),是展現雙類別變數交叉關聯性的標準手法。
-
(B) Box plot(盒鬚圖):
- (1) 錯誤:通勤工具為名目尺度,無法計算中位數、四分位數與四分位距(),不能繪製盒鬚圖。
- (2) 正確:五數綜合摘要(最小值、第一四分位數 、中位數、第三四分位數 、最大值)能清楚展現通勤費用的分散程度與極端高額花費之離群值。
- (3) 錯誤:標準盒鬚圖為單變量統計圖,無法直接展示兩個連續變數的成對雙變量共變關係。
- (4) 正確:並列盒鬚圖(Side-by-side box plot)將男、女兩組並列呈現,是比較分組連續變數分布差異最簡練且具統計說服力的標準圖表。
- (5) 錯誤:兩變數皆為類別變數,無法計算分位數,不能使用盒鬚圖。
-
(C) Histogram(直方圖):
- (1) 錯誤:直方圖橫軸為連續數值區間(組距),長條之間緊密相連無間隔,專用於連續型數值,不適用於名目類別資料。
- (2) 正確:透過將通勤費用劃分連續組距,能直接觀察費用分配之單峰/多峰性、對稱度或右偏特徵。
- (3) 錯誤:標準直方圖為單變量工具,無法取代散佈圖展現雙變量關聯。
- (4) 正確:可透過比較直方圖(Comparative histograms / Back-to-back histogram)同時呈現男、女兩組通勤時間之連續分配外觀。
第 2 題25 分
- (25%) In response to the construction of the Neihu MRT, the Taipei City Department of Transportation hopes to understand the commuting conditions and needs of Neihu residents through a telephone survey. The questionnaire covers basic demographic information, the type of commuting tools used, commuting costs (in NT dollars), and commuting time (in minutes). The basic demographic information includes age (in years), gender, and education level (1 = high school or below; 2 = university; 3 = graduate school or above). Exploratory data analysis (EDA) is an important statistical analysis procedure. The followings are some commonly 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.
(1) Write down the appropriate summary statistics to summarize the type of commuting tools used.
(2) Write down the appropriate summary statistics to describe the central tendency of commuting costs.
(3) Write down the appropriate summary statistics to describe the variability of commuting costs.
(4) Write down the appropriate summary statistics to describe the shape of the distribution of commuting costs.
(5) Write down the appropriate summary statistics to summarize the association between commuting cost and commuting time.
登入後即可作答並保存紀錄。
核心觀念
本題評量探索性資料分析(Exploratory Data Analysis, EDA)中摘要統計量的選擇原則。核心概念在於變數之測量尺度(Scales of Measurement)與其對應之統計描述維度:
- 變數測量尺度與適用的統計量:
- 名目尺度(Nominal Scale):如通勤工具種類(捷運、公車、機車、自用車、步行等),僅具分類性質,類別間無法進行大小比較與四則運算。僅能量測各類別出現的「次數(Frequency)」、「百分比(Percent)」及出現次數最多的類別「眾數(Mode)」。
- 等比尺度(Ratio Scale):如通勤費用(元)、通勤時間(分鐘),具有絕對零點且差距與比值皆有實質意義,可計算各項數值統計量(集中趨勢、離散程度、分佈形狀與關聯性)。
- 單變量與雙變量之統計描述維度:
- 集中趨勢(Measures of Central Tendency):描述資料分佈的中心或代表值,包含平均數(Mean)、中位數(Median,原題誤植為 Medium)、眾數(Mode)。
- 變異性/離散趨勢(Measures of Variability / Dispersion):描述資料的分散或波動程度,包含四分位距(Interquartile Range, )、標準差(Standard Deviation)、變異數(Variance)、全距(Range)等。
- 分佈形狀(Measures of Shape):描述機率密度分配曲線的外觀幾何特徵,主要為偏態係數(Skewness,衡量對稱性)與峰態係數(Kurtosis,衡量尾部厚重程度與陡峭度)。
- 關聯性(Measures of Association):描述兩個數值變數間線性或單調相依程度的統計量,最常用者為相關係數(Correlation)。
解題方法
依考卷原卷圖示,本題給出 (A) 至 (L) 共 12 個常用摘要統計量選項,並針對內湖居民通勤問卷調查中的各項變數,依據變數尺度與分析目的選取適當的統計量(各小題均可複選)。
解題切入點為:
- 確認變數屬性:判定目標變數屬於「類別型(名目/順序)」或「數值型(等距/等比)」。
- 對齊統計目的:依題目指定之描述面向(摘要類別、集中趨勢、變異性、分配形狀、兩變數關聯),篩選數學定義符合的量數。
- 檢核複選可能性:將符合條件的所有統計量完整列出。
選項分析
一、12 個選項之統計意涵總覽
- (A) Correlation(相關係數):衡量兩數值變數間線性相依方向與強度的雙變量統計量。
- (B) Frequency(次數/頻率):各類別或區間內觀測值的出現次數,適用於類別資料或分組資料。
- (C) Interquartile(四分位距,即 IQR):定義為第三四分位數減第一四分位數: 衡量資料中間 50% 數值之分散寬度,為不具極端值敏感性的離散度指標。
- (D) Kurtosis(峰度/峰態):標準化四階動差,量化機率分配之尾部厚度(Tail fatness)與尖銳度。
- (E) Mean(平均數):數值資料總和除以樣本數,為最常用的集中趨勢指標。
- (F) Medium(中位數,考卷原文誤植為 Medium,實指 Median):排序後位於 50% 位置的數值,能抵抗極端值的集中趨勢指標。
- (G) Minimum(最小值):資料集內的極小觀測值,屬於單一位置極端值,單獨使用不能直接代表變異性、集中趨勢或形狀。
- (H) Mode(眾數):出現頻率最高的值或類別,為類別資料唯一的集中趨勢量數,亦可用於數值資料。
- (I) Percent(百分比/相對次數):各類別次數除以總樣本數所得之比率,為類別資料最常見的相對頻率呈現方式。
- (J) Skewness(偏態/偏態係數):標準化三階動差,衡量分配不對稱方向(左偏或右偏)。
- (K) Standard deviation(標準差):離均差平方和平均後開根號,與原變數具相同單位之離散度量數。
- (L) Variance(變異數):離均差平方和平均,為衡量資料離散程度的基本統計量。
二、各小題逐題解析
(1) Write down the appropriate summary statistics to summarize the type of commuting tools used.
- 分析與篩選:
- 通勤工具(捷運、公車、機車、開車等)為名目尺度(Nominal Scale)的類別資料。
- 對於類別資料,無法進行加減運算,故不能計算平均數 (E)、中位數 (F)、變異數 (L)、標準差 (K)、四分位距 (C)、峰度 (D)、偏態 (J) 或相關係數 (A)。
- 摘要類別資料最標準的方法是建立次數分配表,列出各類別的次數(Frequency, B)與所佔百分比(Percent, I);此外,最常被搭乘的工具即為分佈的眾數(Mode, H)。
- 本小題適用選項:(B), (H), (I)。
(2) Write down the appropriate summary statistics to describe the central tendency of commuting costs.
- 分析與篩選:
- 通勤費用(新台幣元)為連續數值型變數(Ratio Scale)。
- 描述數值資料中心位置的集中趨勢量數包含:
- 平均數(Mean, E):全體受訪者通勤費用的算術平均。
- 中位數(Median / 題作 Medium, F):費用排序後的正中間金額,特別適合於所得或費用這種常呈右偏的分佈。
- 眾數(Mode, H):分佈中最常出現的金額(或直方圖中峰值所在的數值)。
- 其餘選項如變異數、標準差、四分位距為離散度;偏態、峰度為形狀;最小值為單一極值;相關係數為雙變量關聯量數,皆非集中趨勢。
- 本小題適用選項:(E), (F), (H)。
(3) Write down the appropriate summary statistics to describe the variability of commuting costs.
- 分析與篩選:
- 衡量通勤費用分散、變異或波動程度(Variability / Dispersion)的統計量包含:
- 變異數(Variance, L):離均差平方之平均。
- 標準差(Standard deviation, K):變異數的正平方根,具直接金額單位。
- 衡量通勤費用分散、變異或波動程度(Variability / Dispersion)的統計量包含:
第 3 題15 分
- (15%) In response to the construction of the Neihu MRT, the Taipei City Department of Transportation hopes to understand the commuting conditions and needs of Neihu residents through a telephone survey. The questionnaire covers basic demographic information, the type of commuting tools used, commuting costs (in NT dollars), and commuting time (in minutes). The basic demographic information includes age (in years), gender, and education level (1 = high school or below; 2 = university; 3 = graduate school or above). Besides EDA, it is also important to identify possible association among variables. The following provides commonly used test statistics:
(A) Chi-square test
(B) Correlation
(C) McNemar test
(D) One-Way Analysis of Variance (ANOVA)
(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 may be possible for the following questions.
(1) Write down the appropriate test statistics for testing the association between gender and the type of commuting tools used.
(2) Write down the appropriate test statistics for testing the association between commuting costs and age.
(3) Write down the appropriate test statistics for testing commuting time and gender.
登入後即可作答並保存紀錄。
核心觀念
本題評量統計推論中「依據變數的衡量尺度(Measurement Scales)與研究目的選擇合適的統計檢定方法」之基本判斷能力。關鍵觀念包括:
- 變數衡量尺度:
- 名義尺度(Nominal Scale):如性別(二元類別:男、女)、通勤運具種類(多元類別:捷運、公車、機車、汽車等)。
- 次序尺度(Ordinal Scale):如教育程度(1、2、3)。
- 等距/等比之連續尺度(Interval / Ratio Scale):如通勤時間(分鐘)、通勤費用(新台幣元)、年齡(歲)。
- 檢定方法選用準則:
- 兩類別變數的關聯性:採用列聯表卡方獨立性檢定(Chi-square test of independence)。
- 兩連續變數的關聯性:採用相關分析(Correlation)檢定相關係數是否為 0,或建立簡單線性迴歸(Simple linear regression)檢定斜率係數是否為 0。
- 一二元類別變數與一連續變數的關聯性/組間差異:常態假設下採用兩獨立樣本 檢定(Two independent sample T test)或等價的單因子變異數分析(One-Way ANOVA);非常態分配或欲使用無母數方法時,採用威爾卡森秩和檢定(Wilcoxon rank sum test)。
解題方法
由考卷第 2 頁原題掃描圖可知,本題為臺北大學都市計劃研究所 114 學年度統計學第 3 題。題幹明確界定調查問卷之各項變數型態,並提供 (A) 至 (H) 八種常用檢定統計量,要求選出合適的檢定方法(題目特別註明各小題可能有一個以上的合適選項)。
各小題涉及的變數類型與切入點如下:
- 第 (1) 小題(性別 vs 通勤運具種類):
- 變數屬性:性別為二元名義變數,通勤運具種類為多元名義變數。
- 分析目的:檢定兩名義變數之間是否相互獨立(即不同性別在運具選擇上是否有顯著關聯)。
- 選用方法:雙向列聯表之卡方檢定(Chi-square test)。
- 第 (2) 小題(通勤費用 vs 年齡):
- 變數屬性:通勤費用為連續變數(以新台幣元計),年齡為連續數值變數(以歲計)。
- 分析目的:檢定兩連續變數之間是否存在線性關聯或相關性。
- 選用方法:
- 相關分析(Correlation):直接檢定總體 Pearson 積差相關係數 是否顯著不為 0()。
- 簡單線性迴歸(Simple linear regression):檢定迴歸斜率係數 是否顯著異於 0()。在單變數線性迴歸中,斜率檢定的 統計量等價於相關分析檢定。
- 第 (3) 小題(通勤時間 vs 性別):
- 變數屬性:通勤時間為連續變數(以分鐘計),性別為具 2 個獨立水準之類別自變數。
- 分析目的:檢定男女兩組的通勤時間平均數或分佈是否有顯著差異。
- 選用方法:
- 兩獨立樣本 檢定(Two independent sample T test):常態假設下檢定兩獨立組別平均數差異的標準母數方法。
- 威爾卡森秩和檢定(Wilcoxon rank sum test):當通勤時間偏態或非常態時,比較兩獨立組別等級分佈的標準無母數方法。
- 單因子變異數分析(One-Way ANOVA):當組別數 時,單因子 ANOVA 之 檢定在數學上與等變異獨立樣本 檢定完全等價(),亦為常用母數檢定。
選項分析
針對題目提供的 (A) 至 (H) 八個選項逐一分析其適用時機與在本題各小題之正確性:
-
(A) Chi-square test(卡方檢定):
- 說明:主要用於列聯表之獨立性檢定(Test of Independence)或齊一性檢定(Test of Homogeneity),適用於自變數與應變數皆為「類別尺度(名義或次序)」之情境。
- 各小題適用性:
- (1) 正確:性別與通勤運具皆為類別變數,構成 列聯表,正以此檢定。
- (2) 錯誤:通勤費用與年齡皆為連續變數,若未人為組別化無法直接使用卡方檢定。
- (3) 錯誤:通勤時間為連續變數,不應以列聯表卡方檢定分析。
-
(B) Correlation(相關分析):
- 說明:檢定兩數值型/連續變數間是否存在顯著線性相關(Pearson 相關係數)或單調相關(Spearman 秩相關)。
- 各小題適用性:
- (1) 錯誤:運具種類為多元名義尺度,無法計算標準相關係數。
- (2) 正確:通勤費用與年齡皆為連續變數,為檢定關聯性的標準方法。
- (3) 錯誤:二元類別與連續變數一般不直接使用常規相關分析,通常使用組間均數比較。
-
(C) McNemar test(麥內瑪檢定):
- 說明:專用於「成對/相依樣本(Paired/Matched samples)」之二元變數檢定,常用於前後測之變化分析。
- 各小題適用性:
- (1)、(2)、(3) 皆錯誤:電話調查受訪者彼此為獨立樣本,且運具種類非二元對稱配對資料,故完全不適用。
-
(D) One-Way Analysis of Variance, ANOVA(單因子變異數分析):
- 說明:用於檢定一個具 個水準()的類別因子對連續應變數之平均數是否有顯著差異。
- 各小題適用性:
- (1) 錯誤:應變數(運具)為類別尺度,非連續變數。
- (2) 錯誤:年齡為連續變數而非類別因子。
- (3) 正確(等價母數方法):性別為具 2 個水準之類別變數,通勤時間為連續變數;當 時,ANOVA 的 檢定與獨立樣本雙尾 檢定等價()。
-
(E) Paired T test(成對樣本 t 檢定):
- 說明:用於同一受試者或配對組在同一連續變數上的前後測差異比較。
- 各小題適用性:
- (1)、(2)、(3) 皆錯誤:調查樣本彼此獨立。
第 4 題10 分
- (10%) Let X denote commuting costs. Assume that the distribution of X approximately follows a normal distribution with mean 30 NT dollars and standard deviation 2 NT dollars.
(1) Find the probability that commuting costs exceeds 32 NT dollars.
(2) Assume the expert would like to know the average commuting costs for Neihu residents. The expert would like to collect a sample data to estimate the mean commuting costs μ. Assume the standard deviation equals 2 NT dollars. How large a sample is necessary if he want the estimate to be within 0.28 NT dollar of the actual mean value μ, with 95% confidence?
登入後即可作答並保存紀錄。
核心觀念
本題評量常態分配機率計算與母體平均數之樣本數估計:
- 常態分配標準化(Standardization):若連續隨機變數 服從常態分配 ,則透過標準化轉換式 ,可轉換為標準常態分配 。
- 標準常態累積機率查表:標準常態分配表通常提供累積機率 ,大於特定數值的右尾機率為 。
- 估計母體平均數之樣本數公式:在母體標準差 已知的情形下,以樣本平均數 估計母體平均數 時,在 信賴水準下的最大抽樣誤差(Margin of Error)為 。經移項可得所需之最小樣本數:
解題方法
考卷第 3 頁附有「Table 1: Area under the standard normal curve 」,提供標準常態變數累積至 值(小數點後兩位)的累積機率數值(四捨五入至小數後三位),解題時所有機率與臨界值均對應此表查閱。
(1) 計算通勤成本超過 32 NT dollars 的機率
已知通勤成本 ,欲求 。
- 標準化轉換:
計算 所對應的標準化值 :
- 計算右尾機率並查表:
查閱考卷附表 Table 1,找到 列與 欄交會處,得累積機率 。
代入計算:
(若依未四捨五入之標準常態理論值 ,則結果為 ;依原卷附表讀數計算則為 。)
(2) 計算在 95% 信賴水準下使估計誤差在 0.28 NT dollar 內之樣本數
- 確認已知參數與統計量:
- 母體標準差 NT dollars。
- 最大允許誤差 NT dollar。
- 信賴水準 ,雙尾對稱各分配 。
- 尋找臨界值 :
對應雙尾 95% 信賴水準,標準常態分配的累積機率為:
查閱考卷附表 Table 1,累積機率值 出現在 列與 欄之交會處,故臨界值為:
- 推導並計算所需樣本數 :
由誤差公式:
第 5 題15 分
- (15%) Assume the target commuting costs equals 30 NT dollars. Suppose a sample of size 25 residents are asked and assume the probability that the residents would be willing to pay more than 30 NT dollars equal 0.1. Let X equal the number of residents who pay more than 30 NT dollars to commute.
(1) Find P[X = 1].
(2) Find the probability that no residents pay more than 30 NT dollars for their daily commute.
(3) Find mean and variance of X.
登入後即可作答並保存紀錄。
核心觀念
本題評量二項分配(Binomial Distribution)的基本性質與機率計算,涵蓋以下核心觀念:
- 白努利試驗與二項隨機變數:
若隨機試驗滿足以下條件,則隨機變數 服從二項分配,記作 :- 試驗重複進行 次。
- 每次試驗結果僅有「成功」與「失敗」兩種互斥情況。
- 各次試驗互相獨立(Independent trials)。
- 每次試驗「成功」的機率固定為 ,「失敗」的機率為 。
- 二項分配之機率質量函數(PMF):
- 二項分配之期望值與變異數:
- 平均數(期望值,Mean):
- 變異數(Variance):
解題方法
檢視考卷原頁(第 2 頁第 5 題),卷首載明「可使用計算機」;題幹給定抽樣樣本數為 位居民,目標通勤成本為新台幣 30 元,居民願意支付超過 30 元通勤費之機率為 。令 為 25 位居民中通勤費超過 30 元的人數,因每位居民抽樣彼此獨立,故 服從參數為 、 的二項分配,即 ,其中未超過 30 元的機率為 。
(1) 求
題目要求 25 位受訪者中恰好有 1 位通勤費超過 30 元的機率,代入二項分配機率質量函數 :
展開計算組合數與各項:
以計算機計算數值:
故 約為 0.1994(或 19.94%)。
(2) 求無人通勤費超過 30 元之機率
「No residents pay more than 30 NT dollars」代表 25 位居民中沒有任何人通勤費超過 30 元,對應事件為 。代入機率質量函數 :
以計算機計算數值:
故無人通勤費超過 30 元之機率約為 0.0718(或 7.18%)。
(3) 求 的平均數(Mean)與變異數(Variance)
直接代入二項分配之參數公式(,):
- 平均數(Mean):
- 變異數(Variance):
第 6 題10 分
- (10%) The Taipei City Department of Transportation expects that there exists a gender difference in commuting time. Assume that the distributions of the commuting time for female and male are normally distributed. Let the sample mean and sample deviation of commuting time for female and male be:
| n | Sample mean | Sample variance | Sample standard deviation | |
|---|---|---|---|---|
| Female | 25 | 53.35 | 100.41 | 10.02 |
| Male | 25 | 55.53 | 112.20 | 10.59 |
Assume that the variance of the commuting time are roughly equal between female and male.
(1) Write down the hypotheses. The proper notation should be used.
(2) Use a 5% significance level to make your inference.
登入後即可作答並保存紀錄。
核心觀念
本題評量兩獨立常態母體平均數差之假設檢定(Two-Independent-Sample -Test)。
關鍵觀念與公式包括:
- 假設設定:題目欲探討男女通勤時間是否存在「性別差異(gender difference)」,為無特定方向性的雙尾檢定(two-tailed test)。
- 檢定方法選擇:
- 兩母體皆為常態分佈(normally distributed)。
- 兩組為獨立抽樣樣本(、)。
- 母體標準差未知,但題目明確給定兩母體變異數大致相等()。
- 故採用合併變異數兩樣本 檢定(Pooled-Variance Two-Sample -Test)。
- 統計量與自由度:
- 合併變異數估計量(Pooled Variance):
- 檢定統計量:
- 自由度為 。
解題方法
從考卷第 2 頁題目表格與第 4 頁 Table 2( 分配表)讀取關鍵數據:女性樣本數 、樣本平均 、樣本變異數 ;男性樣本數 、樣本平均 、樣本變異數 。
(1) 建立假設(Hypotheses)
定義符號:
- 令 代表台北市女性通勤時間之母體平均數。
- 令 代表台北市男性通勤時間之母體平均數。
題目欲檢驗台北市交通局預期通勤時間是否存在性別差異,假設設定為雙尾檢定:
(2) 進行 5% 顯著水準下的統計推論(Inference)
步驟一:計算合併樣本變異數()與標準誤()
由於 :
估計之平均數差標準誤為:
步驟二:計算檢定統計量()
(若以男性減女性計算,則為 ,其絕對值皆為 )
步驟三:決定拒絕域與臨界值
- 自由度:。
- 顯著水準 ,雙尾檢定各側尾端機率為 。
- 查第 4 頁 Table 2(Selected quantiles of the distribution):
- 當 時,
- 當 時,