線性關係),以下將依此順序逐一討論(共線性(Collinearity)另於附錄七探討)。31 在進行各項檢定之前,應該先行檢視資料的分佈情況,是否存在比較特殊的 觀察值(observation),避免影響迴歸分析的結果(UCLA: Statistical Consulting Group 2016)。附圖 3 系列的四個圖呈現各模型依變數、自變數(連續變數)之
0 200000 400000 0
0 1000000 2000000
附圖 3-1 模型Ⅰ、Ⅱ各連續變數之間的分佈情形
31 各項檢定操作參考自 UCLA: Statistical Consulting Group(2016)網頁。
‧
0 1000000 2000000
附圖 3-2 模型Ⅲ、Ⅳ各連續變數之間的分佈情形
‧
0 1000000 2000000
附圖 3-4 模型Ⅶ、Ⅷ各連續變數之間的分佈情形 一、殘差的常態性(normality of residuals)
檢測殘差是否呈常態可用檢定判斷。附表 6 是 Shapiro-Wilk W 檢定針對八個
‧
Statistical Consulting Group 2016)。附圖 4 是八個模型的核密度估計圖(kernel density estimation),藍線是核密度曲線,紅線是常態密度曲線,兩相對比可以發 現八個模型的殘差程度不等地偏離常態分佈,模型Ⅰ、Ⅱ、Ⅴ、Ⅵ比常態高且窄,
模型Ⅲ、Ⅳ、Ⅶ、Ⅷ則比常態略為左偏(left-skewed)。附圖 5 是八個模型的標準 化常態機率圖(standardized normal probability plot, P-P plot),能顯現資料中段是否 符合常態;附圖 6 是八個模型的分位圖(Q-Q plot,Q 是 quantile),則是能偵測 資料尾端是否符合常態(UCLA Statistical Consulting Group 2016)。從附圖 5 與附 圖 6 來看,八個模型的資料無論在中段或尾端皆有偏離常態的情形。因此,綜合 檢定與圖形的結果,傾向認定八個模型(模型Ⅰ-Ⅷ)的殘差皆未呈現常態分佈。
二、殘差變異數的齊一性(homoskedasticity of residuals)
殘差變異數齊一性的檢定與常態性檢定同樣具有容易拒絕虛無假設的傾向
(虛無假設為「殘差變異數具齊一性」),故同時呈現檢定及圖形的檢測情形 (UCLA: Statistical Consulting Group 2016)。附表 7 是殘差變異數齊一性的檢定結 果,從 White 檢定來看,除模型 I 與模型 III 外,其餘模型並未拒絕「變異數齊 一」的虛無假設;但 Breusch-Pagan 檢定的結果則是八個模型幾乎皆未符合迴歸 模型「變異數齊一」的假定。
‧
5.000e-06 .00001.000015 密度
-200000 -100000 0 100000 200000 300000 殘差
Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 8.3e+03
核密度估計圖
0
5.000e-06 .00001.000015 密度
-100000 0 100000 200000
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 9.9e+03
核密度估計圖
附圖 4-1 核密度估計圖(模型Ⅰ) 附圖 4-2 核密度估計圖(模型Ⅱ)
012345密度
-.3 -.2 -.1 0 .1 .2
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 0.0270
核密度估計圖
0246密度
-.3 -.2 -.1 0 .1 .2
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 0.0247
核密度估計圖
-200000 0 200000 400000
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 1.4e+04
核密度估計圖
-200000 0 200000 400000
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 1.3e+04
核密度估計圖
附圖 4-5 核密度估計圖(模型Ⅴ) 附圖 4-6 核密度估計圖(模型Ⅵ)
012345密度
-.4 -.2 0 .2 .4
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 0.0301
核密度估計圖
012345密度
-.4 -.2 0 .2 .4
殘差 Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 0.0306
核密度估計圖
附圖 4-7 核密度估計圖(模型Ⅶ) 附圖 4-8 核密度估計圖(模型Ⅷ)
‧
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
附圖 5-1 標準化常態機率圖(模型Ⅰ)附圖 5-2 標準化常態機率圖(模型Ⅱ)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
附圖 5-3 標準化常態機率圖(模型Ⅲ)附圖 5-4 標準化常態機率圖(模型Ⅳ)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
附圖 5-5 標準化常態機率圖(模型Ⅴ)附圖 5-6 標準化常態機率圖(模型Ⅵ)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
0.000.250.500.751.00
Normal F[(r-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
附圖 5-7 標準化常態機率圖(模型Ⅶ)附圖 5-8 標準化常態機率圖(模型Ⅷ)
‧ 國
立 政 治 大 學
‧
N a tio na
l C h engchi U ni ve rs it y
106
-200000-100000 0
100000200000 殘差
-100000 -50000 0 50000 100000
Inverse Normal
-200000-100000 0
100000200000 殘差
-100000 -50000 0 50000 100000
Inverse Normal
附圖 6-1 分位圖(模型Ⅰ) 附圖 6-2 分位圖(模型Ⅱ)
-.3-.2-.1 0.1.2殘差
-.2 -.1 0 .1 .2
Inverse Normal
-.3-.2-.1 0.1.2殘差
-.2 -.1 0 .1 .2
Inverse Normal
附圖 6-3 分位圖(模型Ⅲ) 附圖 6-4 分位圖(模型Ⅳ)
-200000 0
200000400000 殘差
-200000 -100000 0 100000 200000
Inverse Normal
-200000 0
200000400000 殘差
-200000 -100000 0 100000 200000
Inverse Normal
附圖 6-5 分位圖(模型Ⅴ) 附圖 6-6 分位圖(模型Ⅵ)
-.4-.2 0.2.4殘差
-.2 0 .2
Inverse Normal
-.3-.2-.1 0.1.2殘差
-.2 -.1 0 .1 .2
Inverse Normal
附圖 6-7 分位圖(模型Ⅶ) 附圖 6-8 分位圖(模型Ⅷ)
‧ 國
立 政 治 大 學
‧
N a tio na
l C h engchi U ni ve rs it y
107
-200000-100000 0
100000200000 殘差
0 100000 200000 300000
估計值
-200000-100000 0
100000200000 殘差
-100000 0 100000 200000 300000
估計值
附圖 7-1 殘差與估計值散佈圖(模型Ⅰ) 附圖 7-2 殘差與估計值散佈圖(模型Ⅱ)
-.3-.2-.1 0.1.2殘差
.7 .8 .9 1
估計值
-.3-.2-.1 0.1殘差
.6 .7 .8 .9 1
估計值
附圖 7-3 殘差與估計值散佈圖(模型Ⅲ) 附圖 7-4 殘差與估計值散佈圖(模型Ⅳ)
-200000 0
200000400000 殘差
0 100000 200000 300000 400000
估計值
-200000 0
200000400000 殘差
0 100000 200000 300000 400000
估計值
附圖 7-5 殘差與估計值散佈圖(模型Ⅴ) 附圖 7-6 殘差與估計值散佈圖(模型Ⅵ)
-.4-.2 0.2.4殘差
.5 .6 .7 .8 .9 1
估計值
-.3-.2-.1 0.1.2殘差
.4 .6 .8 1 1.2
估計值
附圖 7-7 殘差與估計值散佈圖(模型Ⅶ) 附圖 7-8 殘差與估計值散佈圖(模型Ⅷ)
‧
差圖」(augmented partial residual plot or augmented component-plus-residual plot)(取 augmented component-plus-residual 四個單字的第一個字母,簡稱 acpr 圖)
依序檢測「都市化程度」、「現任議員參選比例」、「縣市長候選人得票表現」、「議 員選舉平均選區規模」、「議員選舉有效票數」五個連續變數,圖中綠線若接近迴 歸 線 且 整 體 趨 勢 一 致 , 代 表 該 變 數 與 依 變 數 呈 線 性 關 係 (UCLA Statistical Consulting Group 2016)。
依附圖結果而言,在八個模型中,各自變數與依變數並未皆符合線性關係。 項基本假定,應進一步尋求解決的方式。無論從檢定(Shapiro-Wilk W 檢定)或 圖形(核密度估計圖、標準常態機率圖與分位圖)來看,傾向認為總體資料並未 符合常態,不過「殘差是否呈常態」對於以最小平方法(ordinary least squares, OLS) 估計出不偏的迴歸係數值而言,並非如此重要(UCLA: Statistical Consulting Group 2016);故此處對違反常態性的調整姑且先忽略。其次,八個模型的殘差與估計
‧
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
-200000-100000 0
100000200000
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
附圖 8-1 地方派系因素 acpr 圖(模型Ⅰ) 附圖 8-2 地方派系因素 acpr 圖(模型Ⅱ)
-.4-.2 0.2.4
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
-.2-.1 0.1.2
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
附圖 8-3 地方派系因素 acpr 圖(模型Ⅲ) 附圖 8-4 地方派系因素 acpr 圖(模型Ⅳ)
-200000 0
200000400000
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
-200000 0
200000400000
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
附圖 8-5 地方派系因素 acpr 圖(模型Ⅴ) 附圖 8-6 地方派系因素 acpr 圖(模型Ⅵ)
-.4-.2 0.2.4
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
-.2-.1 0.1.2.3
Augmented component plus residual
0 2 4 6 8 10
地方派系因素(都市化程度)
附圖 8-7 地方派系因素 acpr 圖(模型Ⅶ) 附圖 8-8 地方派系因素 acpr 圖(模型Ⅷ)
‧
Augmented component plus residual
.2 .4 .6 .8 1
現任議員參選比例
-200000-100000 0
100000200000
Augmented component plus residual
.2 .4 .6 .8 1
現任議員參選比例
附圖 9-1 現任議員參選比例 acpr 圖(模型Ⅰ) 附圖 9-2 現任議員參選比例 acpr 圖(模型Ⅱ)
.1.2.3.4.5.6
Augmented component plus residual
.2 .4 .6 .8 1
現任議員參選比例
.1.2.3.4.5
Augmented component plus residual
.2 .4 .6 .8 1
現任議員參選比例
附圖 9-3 現任議員參選比例 acpr 圖(模型Ⅲ) 附圖 9-4 現任議員參選比例 acpr 圖(模型Ⅳ)
-200000 0
200000400000
Augmented component plus residual
0 .2 .4 .6 .8 1
現任議員參選比例
-200000 0
200000400000
Augmented component plus residual
0 .2 .4 .6 .8 1
現任議員參選比例
附圖 9-5 現任議員參選比例 acpr 圖(模型Ⅴ) 附圖 9-6 現任議員參選比例 acpr 圖(模型Ⅵ)
-.4-.2 0.2.4
Augmented component plus residual
0 .2 .4 .6 .8 1
現任議員參選比例
-.3-.2-.1 0.1.2
Augmented component plus residual
0 .2 .4 .6 .8 1
現任議員參選比例
附圖 9-7 現任議員參選比例 acpr 圖(模型Ⅶ) 附圖 9-8 現任議員參選比例 acpr 圖(模型Ⅷ)
‧
Augmented component plus residual
20 30 40 50 60 70
縣市長候選人得票表現
-200000-100000 0
100000200000
Augmented component plus residual
20 30 40 50 60 70
縣市長候選人得票表現
附圖 10-1 縣市長候選人得票表現 acpr 圖(模型Ⅰ)附圖 10-2 縣市長候選人得票表現 acpr 圖(模型Ⅱ)
-.1 0.1.2.3
Augmented component plus residual
20 30 40 50 60 70
縣市長候選人得票表現
0.1.2.3.4
Augmented component plus residual
20 30 40 50 60 70
縣市長候選人得票表現
附圖 10-3 縣市長候選人得票表現 acpr 圖(模型Ⅲ)附圖 10-4 縣市長候選人得票表現 acpr 圖(模型Ⅳ)
-200000 0
200000400000600000
Augmented component plus residual
0 20 40 60 80
縣市長候選人得票表現
-200000 0
200000400000600000
Augmented component plus residual
0 20 40 60 80
縣市長候選人得票表現
附圖 10-5 縣市長候選人得票表現 acpr 圖(模型Ⅴ)附圖 10-6 縣市長候選人得票表現 acpr 圖(模型Ⅵ)
-.2 0.2.4.6
Augmented component plus residual
0 20 40 60 80
縣市長候選人得票表現
-.2 0.2.4.6
Augmented component plus residual
0 20 40 60 80
縣市長候選人得票表現
附圖 10-7 縣市長候選人得票表現 acpr 圖(模型Ⅶ)附圖 10-8 縣市長候選人得票表現 acpr 圖(模型Ⅷ)
‧
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
-100000 0
100000200000
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
附圖 11-1 議員選舉平均選區規模 acpr 圖(模型Ⅰ) 附圖 11-2 議員選舉平均選區規模 acpr 圖(模型Ⅱ)
-.6-.5-.4-.3-.2-.1
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
-.5-.4-.3-.2-.1
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
附圖 11-3 議員選舉平均選區規模 acpr 圖(模型Ⅲ) 附圖 11-4 議員選舉平均選區規模 acpr 圖(模型Ⅳ)
-200000 0
200000400000600000
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
-200000 0
200000400000
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
附圖 11-5 議員選舉平均選區規模 acpr 圖(模型Ⅴ) 附圖 11-6 議員選舉平均選區規模 acpr 圖(模型Ⅵ)
-.4-.2 0.2
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
-.4-.2 0.2
Augmented component plus residual
2 4 6 8 10 12
議員選舉平均選區規模
附圖 11-7 議員選舉平均選區規模 acpr 圖(模型Ⅶ) 附圖 11-8 議員選舉平均選區規模 acpr 圖(模型Ⅷ)
‧
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
0
100000200000300000400000
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
附圖 12-1 議員選舉有效票數 acpr 圖(模型Ⅰ)附圖 12-2 議員選舉有效票數 acpr 圖(模型Ⅱ)
-.4-.3-.2-.1 0.1
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
-.3-.2-.1 0.1
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
附圖 12-3 議員選舉有效票數 acpr 圖(模型Ⅲ)附圖 12-4 議員選舉有效票數 acpr 圖(模型Ⅳ)
0
200000400000600000
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
0
200000400000600000
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
附圖 12-5 議員選舉有效票數 acpr 圖(模型Ⅴ)附圖 12-6 議員選舉有效票數 acpr 圖(模型Ⅵ)
-.4-.2 0.2.4
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
-.3-.2-.1 0.1.2
Augmented component plus residual
0 500000 1000000 1500000 2000000
議員選舉有效票數
附圖 12-7 議員選舉有效票數 acpr 圖(模型Ⅶ)附圖 12-8 議員選舉有效票數 acpr 圖(模型Ⅷ)