生物統計-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
L5 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 ...
生物統計-6
Continuous Random Variables
Probability Density Function (PDF)
對 continuous random variable XXX,probability density function 記為 f(x)f(x)f(x)。
區間機率由 density curve 下方的面積計算:
P(a≤X≤b)=∫abf(x) dxP(a\le X\le b)=\int_a^b f(x)\,dxP(a≤X≤b)=∫abf(x)dx
∫−∞∞f(x) dx=1\int_{-\infty}^{\infty}f(x)\,dx=1∫−∞∞f(x)dx=1
Cumulative Distribution Function (CDF)
對 continuous random variable:
F(x)=∫−∞xf(u) duF(x)=\int_{-\infty}^{x}f(u)\,duF(x)=∫−∞xf(u)du
PDF 與 CDF 的關係:
f(x)=dF(x)dxf(x)=\frac{dF(x)}{dx}f(x)=dxdF(x)
單點機 ...
生物統計-5
Poisson Process 與 Poisson Distribution
Poisson Process
描述在時間或空間區間內隨機發生的事件數量,例如電話到達、事故、缺陷數等。
主要假設:
在很短的區間 hhh 內,發生一次事件的機率約為 λh\lambda hλh (與長度成正比)。
當 hhh 很小時,同一區間發生兩次以上事件的機率可忽略。
互不重疊區間的事件發生次數彼此獨立。
在所考慮的範圍內,平均發生率 λ\lambdaλ 大致固定 (Homogeneous,均勻性)。
Poisson Random Variable
X∼Poisson(μ),μ=λtX\sim\operatorname{Poisson}(\mu),\quad \mu=\lambda tX∼Poisson(μ),μ=λt
λ\lambdaλ: 每單位時間/空間的平均發生次數。
ttt:觀察長度;μ=λt\mu=\lambda tμ=λt: 整段觀察範圍的平均事件數。
XXX: 該範圍內實際發生次數,因此只能是非負整數。
PMF: P(X=x)=e−μμxx!{P(X=x)=\frac{e^ ...









