Outline Clustering Clustering Clustering is a widely used - - PowerPoint PPT Presentation

outline clustering
SMART_READER_LITE
LIVE PREVIEW

Outline Clustering Clustering Clustering is a widely used - - PowerPoint PPT Presentation

Collaboration with Rudolf Winter-Ebmer , Capturing Unobserved Heterogeneity in Department of Economics, Johannes Kepler University Linz the Austrian Labor Market Using Finite Supported by the Austrian Science Foundation (FWF) under grant P 17


slide-1
SLIDE 1

Capturing Unobserved Heterogeneity in the Austrian Labor Market Using Finite Mixtures of Markov Chain Models

Sylvia Fr¨ uhwirth-Schnatter and Christoph Pamminger

Department of Applied Statistics and Econometrics Johannes Kepler University Linz, Austria

UseR! 2006 – p. 1

Collaboration with Rudolf Winter-Ebmer, Department of Economics, Johannes Kepler University Linz Supported by the Austrian Science Foundation (FWF) under grant P 17 959 ( “Gibbs Sampling for Discrete Data” )

UseR! 2006 – p. 2

Outline

Clustering Motivating Example

  • Research Question
  • Data Description

Markov Chain Model Dirichlet Multinomial Model

  • Bayesian Analysis
  • MCMC-Estimation

Estimation Results

UseR! 2006 – p. 3

Clustering

Clustering is a widely used statistical tool to determine subsets Frequently used clustering methods are based on distance-measures However, distance-measures are difficult to define for more complex data (e.g. time series) ⇒ Model-based clustering methods (mixture models) We present an approach for model-based clustering of discrete-valued time series data following ideas discussed in Fr¨ uhwirth-Schnatter and Kaufmann (2004)

UseR! 2006 – p. 4

slide-2
SLIDE 2

Motivating Example

Wage Mobility in the Austrian labor market Describes chances but also risks of an individual to move between wage categories Assumption of different career progressions or income careers of employees Task: Find groups of employees with similar behavior in terms of transition probabilities (focus on one-year transitions) Data provided by the Austrian social security authority

UseR! 2006 – p. 5

Data Description

Time series for N = 9, 809 individuals (only men, because of data inconsistencies with e.g. female part-time workers) Gross monthly wage at May of successive years (with individual length Ti) divided into 6 categories corresponding to quintiles of the particular income distribution (1-5) and zero-income (0) according to Weber (2002) → yi = (yi0, yi1, yi2, . . . , yit, . . . , yi,Ti), i = 1, . . . , N Income careers of the first four employees in the data set

[1] 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 [2] 1 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 4 4 4 4 4 [3] 4 0 0 1 0 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 1 0 5 [4] 3 2 3 5 4 4 4 4 5 5 2 3 3 2 3 3 3 4 4 4 4 4 4 4 4 4 4

UseR! 2006 – p. 6

Illustration

5 10 15 20 25 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5 5 10 15 20 1 2 3 4 5 5 10 15 20 25 1 2 3 4 5

Figure 1: Individual wage mobility time series of nine selected employees.

UseR! 2006 – p. 7

Markov Chain Model

yit = k if subject i ∈ {1, . . . , N} belongs to wage category k ∈ {0, 1, . . . , K} in year t ∈ {0, . . . , Ti} Markov chain yi is modeled with a (time-homogeneous) Markov process with unknown transition matrix ξ, where ξjk = P{yit = k|yi,t−1 = j} and

K

  • k=0

ξjk = 1 ξ =       ξ0 · ξ1 · . . . ξK ·       =       ξ00 ξ01 · · · ξ0K ξ10 ξ11 · · · ξ1K . . . ... . . . ξK0 ξK1 · · · ξKK      

UseR! 2006 – p. 8

slide-3
SLIDE 3

Bayesian Analysis

Prior-distribution of ξj ·, j = 0, . . . , K: ξj · ∼ D(e0,j0, . . . , e0,jK). Posterior-distribution of ξj · : ξj · ∼ D(eN,j0, . . . , eN,jK) with eN,jk = e0,jk + Njk, where Njk = #{yit = k, yi,t−1 = j} is the number of transitions from state j to state k over all subjects i = 1, . . . , N ⇒ ξ ∼ product of (K + 1 indep.) Dirichlet-distributions

UseR! 2006 – p. 9

Modeling Hidden Groups

Assumptions and notations

  • H hidden groups with group-specific transition

matrices ξh, h = 1, . . . , H

  • Individual transition matrices ξs

i, i = 1, . . . , N

  • Latent indicator variable S = (S1, . . . , SN) for group

membership: Si = h, if subject i belongs to group h

  • Relative group sizes η = (η1, . . . , ηH):

P{Si = h|η} = ηh, h = 1, . . . , H

UseR! 2006 – p. 10

Modeling Heterogeneity

  • 1. Simple model:

ξs

i|(Si = h) = ξh

(fixed) ⇒ ξh|S ∼ product of (K + 1 indep.) Dirichlet-distributions

  • 2. Apply a multinomial logit model with random

effects (Rossi et al., 2005). High-parametrical model including high-dimensional covariance matrices

  • 3. Dirichlet Multinomial Model:

ξs

i,j·|(Si = h) ∼ D(eh,j0, . . . , eh,jK)

with group-specific parameter eh = {eh,j·}, j = 0, . . . , K

UseR! 2006 – p. 11

Dirichlet Multinomial Model

Group-specific transition matrix ξh is given by ξh,jk = E(ξs

i,jk|Si = h, eh) =

eh,jk K

k=0 eh,jk

So each row of eh determines the corresponding row of ξh Finite mixture model representation: Yi ∼ ph(yi|eh) . . . product of K + 1 Dirichlet-distributions Unconditional density: p(Yi|e1, . . . , eH) =

H

  • h=1

ηh ph(yi|eh)

UseR! 2006 – p. 12

slide-4
SLIDE 4

Group-specific parameter eh

The variance of ξs

i,jk is given by

V ar(ξs

i,jk|Si = h, eh) = ξ2 h,jk ·

  • l=k eh,jl

K

k=0 eh,jk ·

  • 1 + K

k=0 eh,jk

  • If K

k=0 eh,jk is very large (for each row in each group) →

amount of heterogeneity (in each group) is small ⇒ leads to the simple model with fixed ξh If K

k=0 eh,jk is small ⇒ the individual transition matrices are

allowed to deviate from the group mean within each group

UseR! 2006 – p. 13

Bayesian Analysis

Prior-assumptions:

  • All eh,j · are independent and eh,j · − 1 ≥ 0 (to avoid

problems with empty groups and non-informative priors)

  • eh,j · −1 is a discrete-valued multivariate random variable
  • eh,j · − 1 ∼ negative multinomial distribution
  • η ∼ Dirichlet-distribution

All parameters e1, . . . , eH, S, η are jointly estimated by means of MCMC-Sampling

UseR! 2006 – p. 14

MCMC-Estimation (Gibbs Sampler)

Choose initial values for η and e1, . . . , eH (H fixed in advance) and repeat following steps (m = 1, . . . , M):

  • 1. Bayes-classification for each subject i:

draw S(m)

i

from p(Si|yi, η(m−1), e(m−1)

1

, . . . , e(m−1)

H

).

  • 2. sample Group sizes η:

draw η(m) from D(α(m)

1

, . . . , α(m)

H ) with

α(m)

h

= N(m)

h

+ α0 and N(m)

h

= #{S(m)

i

= h}.

  • 3. sample group-specific parameters e1, . . . , eH:

draw e(m)

h,j· row-by-row from p(eh,j·|y, S(m)) (not of

closed form!) using a Metropolis-Hastings step (with discrete random walk proposal).

UseR! 2006 – p. 15

Estimation Results

Here we show the results for 3 groups which allow very sensible interpretations according to our economist (M = 10,000 with 2,000 burn-in)

  • Transition probabilities
  • Typical group members
  • Classification probabilities
  • Equilibrium distributions

UseR! 2006 – p. 16

slide-5
SLIDE 5

Transition Probabilities

1 2 3 4 5 1 2 3 4 5 ti.1 ti

S = 1 ( 0.2152 )

1 2 3 4 5 1 2 3 4 5 ti.1 ti

S = 2 ( 0.2487 )

1 2 3 4 5 1 2 3 4 5 ti.1 ti

S = 3 ( 0.5361 )

Figure 2: 3D-Visualizations of transition probabilities ˆ

ξh (vol- umes of balls are proportional to probs) and estimated group sizes ˆ η indicated in brackets (posterior means).

UseR! 2006 – p. 17

Typical Group Members

5 10 15 20 1 2 3 4 5

member of group 1

5 10 15 20 25 1 2 3 4 5

member of group 1

5 10 15 20 25 1 2 3 4 5

member of group 1

5 10 15 20 25 1 2 3 4 5

member of group 2

5 10 15 20 25 1 2 3 4 5

member of group 2

5 10 15 20 25 1 2 3 4 5

member of group 2

5 10 15 20 25 1 2 3 4 5

member of group 3

5 10 15 20 25 1 2 3 4 5

member of group 3

5 10 15 20 25 1 2 3 4 5

member of group 3

Figure 3: Selected typical group members (with high classification prob).

UseR! 2006 – p. 18

Classification Probabilities

i\h 1 2 3 1 0.00016 0.35852 0.64132 2 0.01319 0.98676 0.00005 3 0.13440 0.25522 0.61039 4 0.34690 0.00462 0.64848 5 0.00035 0.99965 0.00000 6 0.13326 0.86632 0.00042 7 0.00011 0.99989 0.00000 8 0.81248 0.18748 0.00004 9 0.00008 0.99992 0.00000 10 0.05821 0.18316 0.75863 . . . 9809 0.51099 0.29038 0.19863

Table 1: Classification probabilities for each individual.

UseR! 2006 – p. 19

Equilibrium Distributions

j\h 1 2 3 0.25028 0.60154 0.03993 1 0.22435 0.10482 0.10655 2 0.13299 0.06598 0.13688 3 0.14742 0.03524 0.16979 4 0.15030 0.03786 0.23205 5 0.09466 0.15456 0.31480

Table 2: Equilibrium distributions in each group.

UseR! 2006 – p. 20

slide-6
SLIDE 6

Open Problem

Further research has to be done to find formal criterions to determine the number of groups. Possible approaches:

  • Model selection based on marginal likelihoods
  • Classification likelihood information criterion (using

entropy)

  • Integrated classification likelihood

UseR! 2006 – p. 21

Summary

  • Discrete-valued time series
  • Categorical variable
  • Markov chains
  • Individual transition matrices
  • Dirichlet multinomial model (allows for heterogeneity

within groups): mixture model with (products of) Dirichlet-distributions with group-specific parameters

  • Estimation via MCMC (number of groups fixed)
  • → Group-specific transition matrices

UseR! 2006 – p. 22

References

Fr¨ uhwirth-Schnatter, Sylvia (2006). Finite Mixture and Markov Switching Models. Springer Series in Statistics. New York: Springer (to appear). Fr¨ uhwirth-Schnatter, Sylvia and Kaufmann, Sylvia (2004). Model-Based Clustering of Multiple Time Series. IFAS Research Paper Series, 2004-02, http://www.ifas.jku.at/. Rossi, Peter E., Allenby, Greg and McCulloch, Rob (2005). Bayesian Statistics and Marketing. John Wiley and Sons. Weber, Andrea (2002). State Dependence and Wage Dynamics: A Heterogeneous Markov Chain Model for Wage Mobility in Austria, Economics Series 114, Institute for Advanced Studies.

UseR! 2006 – p. 23