生物統計-12
Two-sample Inference
Two-sample Comparison Overview
基本設定
兩個 independent samples:
X1i∼N(μ1,σ12)X_{1i}\sim N(\mu_1,\sigma_1^2)X1i∼N(μ1,σ12)
X2j∼N(μ2,σ22)X_{2j}\sim N(\mu_2,\sigma_2^2)X2j∼N(μ2,σ22)
且 X1i⊥X2jX_{1i}\perp X_{2j}X1i⊥X2j
研究目標是比較 μ1−μ2\mu_1-\mu_2μ1−μ2
常見 hypotheses: H0:μ1−μ2=0H_0:\mu_1-\mu_2=0H0:μ1−μ2=0
三種 alternatives:
Ha:μ1−μ2>0H_a:\mu_1-\mu_2>0Ha:μ1−μ2>0
Ha:μ1−μ2<0H_a:\mu_1-\mu_2<0Ha:μ1−μ2<0
Ha:μ1−μ2≠0H_a:\mu_1-\mu_2\neq0Ha:μ1−μ2=0
Case A: ...
圖論-L7
L7 Planar Graphs
符號定義
符號
意義
δ(G)\delta(G)δ(G)
最小度數
Δ(G)\Delta(G)Δ(G)
最大度數
χ′(G)\chi'(G)χ′(G)
邊著色數 (edge-chromatic number)
L(G)L(G)L(G)
圖 GGG 的 line graph
κ(G−S)\kappa(G-S)κ(G−S)
G−SG-SG−S 的 connected components 數量
C(G)C(G)C(G)
Hamiltonian closure
k∗(G)k^*(G)k∗(G)
spanning connectivity
kf∗(G)k_f^*(G)kf∗(G)
spanning fan-connectivity
kp∗(G)k_p^*(G)kp∗(G)
spanning pipeline-connectivity
IHC(G)IHC(G)IHC(G)
mutually independent hamiltonianicity
IHP(G)IHP(G)IHP(G)
mutua ...
生物統計-11
Power, Paired Test & Two-sample Tests
Power Function (檢定力)
假設檢定中:
α=P(Reject H0∣H0 true)\alpha=P(\text{Reject }H_0\mid H_0\text{ true})α=P(Reject H0∣H0 true),為 Type I error rate。
β=P(Fail to reject H0∣H0 false)\beta=P(\text{Fail to reject }H_0\mid H_0\text{ false})β=P(Fail to reject H0∣H0 false),為 Type II error rate。
Power 是 H0H_0H0 錯誤時,正確拒絕 H0H_0H0 的機率。因此 Power=1−βPower=1-\betaPower=1−β
也可以寫成 Power=P(Reject H0∣H0 false)Power=P(\text{Reject }H_0\mid H_0\text{ false})Power=P(Reject H0 ...
生物統計-10
Hypothesis Testing
Hypothesis Testing Framework
Hypothesis testing 的目的,是利用 sample data 判斷對 population parameter 的假設是否有足夠證據反對。
Null Hypothesis 與 Alternative Hypothesis
H0H_0H0: Null hypothesis (虛無假說),通常代表既有狀態、沒有效果或 parameter 等於指定值,例如 H0:μ=μ0H_0:\mu=\mu_0H0:μ=μ0。
HaH_aHa: Alternative hypothesis (對立假說),通常代表研究者想支持的主張,例如 Ha:μ>μ0H_a:\mu>\mu_0Ha:μ>μ0、Ha:μ<μ0H_a:\mu<\mu_0Ha:μ<μ0、Ha:μ≠μ0H_a:\mu\neq\mu_0Ha:μ=μ0。
Type I Error 與 Type II Error
真實情況
Fail to reject H0H_0H0
R ...
圖論-L6
L6 Planar Graphs
符號定義
符號
意義
δ(G)\delta(G)δ(G)
最小度數
G∗G^*G∗
對偶圖
ℓ(F)\ell(F)ℓ(F)
面 FFF 的長度
planar graph
存在無交叉畫法的圖
plane graph
已固定的一個平面嵌入
subdivision
將邊細分成路徑
edge contraction
將某條邊兩端點合併
Planar Graph 與 Plane Graph
若一個圖存在一種畫法,使任意兩條邊都不交叉,則稱為 planar graph (可平面圖)。
plane graph (平面圖) 則是 planar graph 的某一個特定平面嵌入。
所以:
planar graph: 問「是否存在不交叉畫法」
plane graph: 已經固定某一個不交叉畫法
重要例子:
K4K_4K4 是 planar
K5K_5K5 是 nonplanar
K3,3K_{3,3}K3,3 是 nonplanar
plane graph 會把平面分成數個連通區域,每個區域稱為 face。
e ...
生物統計-9
Interval Estimation
Interval Estimation Overview
假設有 random sample: (X1,…,Xn)(X_1,\ldots,X_n)(X1,…,Xn)
Parameter of interest: μ=E(Xi)\mu=E(X_i)μ=E(Xi)
對 μ\muμ 的估計可以分成:
Point estimation: 用單一數值估計 parameter
Interval estimation: Point estimator ± margin of error
對 population mean: μ^=Xˉ\hat\mu=\bar Xμ^=Xˉ
Confidence interval 的基本形式: Xˉ±margin of error\bar X\pm\text{margin of error}Xˉ±margin of error
Z interval: σ² known
T interval: σ² unknown,用 S² 估計
Confidence Level
設定 confidence level: (1−α ...
生物統計-8
Inequalities & Point Estimation
Normal Approximation to Binomial Distribution
若 Y∼Binomial(n,p)Y\sim Binomial(n,p)Y∼Binomial(n,p)
則:
E(Y)=npE(Y)=npE(Y)=np
Var(Y)=np(1−p)Var(Y)=np(1-p)Var(Y)=np(1−p)
SD(Y)=np(1−p)SD(Y)=\sqrt{np(1-p)}SD(Y)=np(1−p)
Normal approximation: Y≈N(np,np(1−p))Y\approx N(np,np(1-p))Y≈N(np,np(1−p))
標準化: Z=Y−npnp(1−p)Z=\frac{Y-np}{\sqrt{np(1-p)}}Z=np(1−p)Y−np
P(Y>a)≈P(Z>a−npnp(1−p))P(Y>a)\approx P\left(Z>\frac{a-np}{\sqrt{np(1-p)}}\right)P(Y>a)≈P(Z>n ...
圖論-L5
L5 Coloring of Graph
符號定義
符號
意義
χ(G)\chi(G)χ(G)
著色數 (chromatic number)
χ′(G)\chi'(G)χ′(G)
邊著色數 (chromatic index)
ω(G)\omega(G)ω(G)
團數 (clique number)
α(G)\alpha(G)α(G)
最大獨立集大小
G∨HG\vee HG∨H
Join of graphs
HHH-subdivision
對 HHH 的邊反覆細分後所得圖
Vertex Coloring 點著色
圖 GGG 的 kkk-著色是一個映射 f:V(G)→Sf:V(G)\to Sf:V(G)→S, 其中 ∣S∣=k|S|=k∣S∣=k。
若對任意 uv∈E(G)uv\in E(G)uv∈E(G) 都有 f(u)≠f(v)f(u)\ne f(v)f(u)=f(v),則稱為 proper kkk-coloring。
若 GGG 存在 proper kkk-coloring ,則稱 GGG 為 kkk-colorable。
所有同 ...
生物統計-7
From Probability to Statistics
Random Sample
若: X1,…,XnX_1,\ldots,X_nX1,…,Xn 形成 random sample,講義假設它們為 iid,且:
E(Xi)=μE(X_i)=\muE(Xi)=μ
Var(Xi)=σ2Var(X_i)=\sigma^2Var(Xi)=σ2
iid:
identically distributed: 每個 Xi 都有相同 distribution
independently distributed: Xi 與 Xj 彼此 independent, i ≠ j
Statistical Inference
Probability: parameters 已知,求 probability
Statistics: parameters 未知,用 sample 推論 parameters
Sample Mean
Sample mean: Xˉ=X1+⋯+Xnn\bar X=\frac{X_1+\cdots+X_n}{n}Xˉ=nX1+⋯+Xn
Xˉ\bar XXˉ 本 ...
圖論-L4
L4 連通度與路徑
符號定義
符號
意義
δ(G)\delta(G)δ(G)
最小度 (minimum degree)
NG(v)N_G(v)NG(v)
vvv 的鄰居集合 (neighborhood)
κ(G)\kappa(G)κ(G)
圖 GGG 的頂點連通度 (connectivity)
λ(G)\lambda(G)λ(G)
圖 GGG 的邊連通度 (edge-connectivity)
κ(x,y)\kappa(x,y)κ(x,y)
分開 x,yx,yx,y 所需移除的最少頂點數
λ(x,y)\lambda(x,y)λ(x,y)
講義此處用來表示 x,yx,yx,y 間最大兩兩頂點不相交路徑數
[X,Y][X,Y][X,Y]
X,YX,YX,Y 兩頂點集合之間的邊集合
Vertex Cut 與 Connectivity
Vertex Cut (點割)
對連通圖 GGG,若頂點集合 S⊆V(G)S\subseteq V(G)S⊆V(G) 滿足 G−SG-SG−S 有超過一個 connected component,則稱 SSS ...









