Professional Documents
Culture Documents
陳俞成 離散資料分析 Categorical Data Analysis
陳俞成 離散資料分析 Categorical Data Analysis
陳俞成 離散資料分析 Categorical Data Analysis
課程綱要
參考用書
評分 . . .
Chapter 1 Introduction
離散資料分析
Categorical Data Analysis
陳俞成
2005.9.19
課程綱要
參考用書
評分 . . .
Chapter 1 Introduction
Categorical Response Data
課程綱要
I Introduction
I Two-Way Contingency Tables
I Three-Way Contingency Tables
I Generalized Linear Models
I Logistic Regression
I Loglinear Models for Contingency Tables
I Building and Applying Logit and Loglinear
Models
陳俞成 離散資料分析 Categorical Data Analysis
大綱
課程綱要
參考用書
評分 . . .
Chapter 1 Introduction
課程綱要
參考用書
I 劉應興 (2003) 類別資料分析導論, 華泰文化事業
公司
I Agresti, A. (1996). An Introduction to
Categorical Data Analysis, John Wiley & Sons,
Inc.
I Agresti, A. (2002). Categorical Data Analysis,
2nd Edition, John Wiley & Sons, Inc.
I Agresti, A. (1984). Analysis of Ordinal
Categorical Data. New York: Wiley.
陳俞成 離散資料分析 Categorical Data Analysis
大綱
課程綱要
參考用書
評分 . . .
Chapter 1 Introduction
參考用書
I Bishop, Y. V. V., S. E. Fienberg, and P.
W.Holland. (1975). Discrete Multivariate
Analysis.Cambridge, MA: MIT Press.
I Christensen, R. (1990). Log-Linear Models.
Springer-Verlag New York, Inc.
I Fienberg, S. E. (1980). The Analysis of
Cross-Classified Categorical Data, 2nd ed.
Cambridge, MA: MIT Press.
陳俞成 離散資料分析 Categorical Data Analysis
大綱
課程綱要
參考用書
評分 . . .
Chapter 1 Introduction
參考用書
評分 . . .
I 期中考 (30%)
I 期末報告 (30%)
I What is the problem
I What tool or method used to solve the problem
I The result
I What else remained unsolved
I 作業 (40%)
Introduction
Introduction
Binomial Distribution
Binomial Distribution
Binomial Distribution
I The probability mass function
p(y ) = yn π y (1 − π)n−y , y = 0, 1, 2, . . . , n
I
n
I
y
= n!/[y !(n − y )!]
I E (Yi ) = E (Yi2 ) = 1 × π + 0 × (1 − π) = π
E (Yi ) = π and var(Yi ) = π(1 − π)
P
I Y = i Yi has mean and variance
µ = E (Y ) = nπ and σ 2 = var(Y ) = nπ(1 − π)
I The skewness :
p
E (Y − µ)3 /σ 3 = (1 − 2π)/ nπ(1 − π)
Binomial Distribution
Multinomial Distribution
Multinomial Distribution
P
I yi = (yi1 , yi2 , . . . , yic ) with j yij = 1 is a
multinomial trial and is (c − 1)-dimensional.
P
I Let nj = i yij , then the counts (n1 , n2 , . . . , nc )
have the multinomial distribution.
Multinomial Distribution
I The probability mass function
P
I πj = P(Yij = 1) ∀ i, j πj = 1
Pc
j=1 nj = n with
I
nc = n − (n1 + · · · + nc−1 )
is(c − 1)-dimensional.
I p(n1 , n2 , . . . , nc ) = ( n1 !n2n!!···nc ! )π1n1 π2n2 · · · πcnc
I E (nj ) = nπj , var(nj ) = nπj (1 − πj ),
cov(nj , nk ) = −nπj πk
I nj ∼ bin(n, πj )
Poisson Distribution
I y = Y (t) is the occured counts per unit time or
space
Poisson Distribution
I y = Y (t) is the occured counts per unit time or
space
I Y (0) = 0
p[Y (h)=1]−µh
I p[Y (h) = 1] = µh + o(h) ⇔ lim h
=0
h→0
I p[Y (h) ≥ 2] = o(h)
I p[Y (s + t) − Y (s) = n|Y (s) = m]
= p[Y (s + t) − Y (s) = n]
(independent increment)
I Y has the Poission distribution with parameter µ
陳俞成 離散資料分析 Categorical Data Analysis
大綱
課程綱要
參考用書 Categorical Response Data
評分 . . .
Chapter 1 Introduction
Poisson Distribution
By C.L.T. Y√−n n
→ N(0, 1)
Overdispersion(過度分散)
X
P[(Y1 = n1 , Y2 = n2 , . . . , Yc = nc )| Yj = n]
P(Y1 = n1 , Y2 = n2 , . . . , Yc = nc )
= P
P( Yj = n)
Q ni
i [exp(−µ i )µi /ni !] n! Y ni
= P P =Q πi
exp(− µj )( µj )n /n! i ni ! i
P
where {πi = µi /( µj )}.
陳俞成 離散資料分析 Categorical Data Analysis
大綱
課程綱要
參考用書 Categorical Response Data
評分 . . .
Chapter 1 Introduction
I −E [∂ 2 L(π)/∂π 2 ] =
E [y /π 2 + (n − y )/(1 − π)2 ] = n/[π(1 − π)]
I The asymptotic variance of π̂ is π(1 − π)/n
I
q) = nπ(1 − π),
Since E (Y ) = nπ, and var(Y
we have E (π̂) = π, σ(π̂) = π(1−π)
n
Summary