1 of 23

Learning with Tree-averaged Densities and Distributions

Sergey Kirshner

Alberta Ingenuity Centre for Machine Learning,

Department of Computing Science,

University of Alberta, Canada

December 5, 2007

NIPS 2007

Poster W12

2 of 23

Overview

  • Want to fit density to complete multivariate data

  • New density estimation model based on averaging over tree-dependence structures
    • Distribution = Univariate Marginals + Copula
    • Bayesian averaging over tree-structured copulas
    • Efficient parameter estimation for tree-averaged copulas
      • Can solve problems with 10-30 dimensions

Learning with Tree-averaged Densities and Distributions

2

NIPS 2007

3 of 23

Most Popular Distribution…

  • Interpretable
  • Closed under taking marginals
  • Generalizes to multiple dimensions
  • Models pairwise dependence
  • Tractable
  • 245 pages out of 691 from Continuous Multivariate Distributions by Kotz, Balakrishnan, and Johnson

Learning with Tree-averaged Densities and Distributions

3

NIPS 2007

4 of 23

What If the Data Is NOT Gaussian?

Learning with Tree-averaged Densities and Distributions

4

NIPS 2007

5 of 23

Curse of Dimensionality

Learning with Tree-averaged Densities and Distributions

5

NIPS 2007

1/n

1/n

nd cells

V[-2,2]d ≈ 0.9545d

[Bellman 57]

6 of 23

Avoiding the Curse: Step 1�Separating Univariate Marginals

Learning with Tree-averaged Densities and Distributions

6

NIPS 2007

univariate marginals,

independent variables,

multivariate dependence term,

copula

7 of 23

Monotonic Transformation of the Variables

Learning with Tree-averaged Densities and Distributions

7

NIPS 2007

8 of 23

Copula

Learning with Tree-averaged Densities and Distributions

8

NIPS 2007

Copula C is a multivariate distribution (cdf) defined on a unit hypercube with uniform univariate marginals:

9 of 23

Sklar’s Theorem

Learning with Tree-averaged Densities and Distributions

9

NIPS 2007

[Sklar 59]

=

+

10 of 23

Example: Bivariate Gaussian Copula

Learning with Tree-averaged Densities and Distributions

10

NIPS 2007

11 of 23

Useful Properties of Copulas

  • Preserves concordance between the variables
    • Rank-based measure of dependence
  • Preserves mutual information

  • Can be viewed as a canonical form of a multivariate distribution for the purpose of the estimation of multivariate dependence

Learning with Tree-averaged Densities and Distributions

11

NIPS 2007

12 of 23

Copula Density

Learning with Tree-averaged Densities and Distributions

12

NIPS 2007

13 of 23

Separating Univariate Marginals

  1. Fit univariate marginals (parametric or non-parametric)
  2. Replace data points with cdf’s of the marginals
  3. Estimate copula density

Learning with Tree-averaged Densities and Distributions

13

NIPS 2007

Inference for the margins [Joe and Xu 96]; canonical maximum likelihood [Genest et al 95]

14 of 23

What Next?

  • Aren’t we back to square one?
    • Still estimating multivariate density from data

  • Not quite
    • All marginals are fixed
    • Lots of approaches for copulas
      • Vast majority focus on bivariate case
    • Design models that use only pairs of variables

Learning with Tree-averaged Densities and Distributions

14

NIPS 2007

15 of 23

Tree-Structured Densities

Learning with Tree-averaged Densities and Distributions

15

NIPS 2007

x2

x3

x4

x5

x6

x1

16 of 23

Tree-Structured Copulas

Learning with Tree-averaged Densities and Distributions

16

NIPS 2007

17 of 23

Chow-Liu Algorithm (for Copulas)

Learning with Tree-averaged Densities and Distributions

17

NIPS 2007

A1A2

A1A3

A1A4

A2A3

A2A4

A3A4

c(a1,a2)

c(a1,a3)

c(a1,a4)

c(a2,a3)

c(a2,a4)

c(a3,a4)

a1

a3

a2

a4

0.3126

0.0229

0.0172

0.0230

0.0183

0.2603

0.3126

0.0229

0.0172

0.0230

0.0183

0.2603

c(a1,a2)

c(a1,a3)

c(a1,a4)

c(a2,a3)

c(a2,a4)

c(a3,a4)

A1A2

A1A3

A1A4

A2A3

A2A4

A3A4

a1

a3

a2

a4

a1

a3

a2

a4

18 of 23

Distribution over Spanning Trees

Learning with Tree-averaged Densities and Distributions

18

NIPS 2007

a1

a3

a2

a4

β34

β24

β13

β12

β14

β23

a1

a3

a2

a4

β34

β24

β13

β12

β14

β23

[Meilă and Jaakkola 00, 06]

a1

a3

a2

a4

β34

β24

β13

β12

β14

β23

O(d3) !!!

19 of 23

Tree-Averaged Copula

  • Can compute sum over all dd-2 spanning trees

  • Can be viewed as a mixture over many, many spanning trees
  • Can use EM to estimate the parameters
    • Even though there are dd-2 mixture components!

Learning with Tree-averaged Densities and Distributions

19

NIPS 2007

20 of 23

EM for Tree-Averaged Copulas

  • E-step: compute
    • Can be done in O(d3) per data point

  • M-step: update β and Θ
    • Update of Θ is often linear in the number of points
      • Gaussian copula: solving cubic equation
    • Update of β is essentially iterative scaling
      • Can be done in O(d3) per iteration

Learning with Tree-averaged Densities and Distributions

20

NIPS 2007

Intractable!!!

21 of 23

Experiments: Log-Likelihood on Test Data

Learning with Tree-averaged Densities and Distributions

21

NIPS 2007

UCI ML Repository

MAGIC data set

12000 10-dimensional vectors

2000 examples in test sets

Average over 10 partitions

22 of 23

Binary-Continuous Data

Learning with Tree-averaged Densities and Distributions

22

NIPS 2007

23 of 23

Summary

  • Multivariate distribution = univariate marginals + copula
  • Copula density estimation via tree-averaging
    • Closed form
  • Tractable parameter estimation algorithm in ML framework (EM)
    • O(Nd3) per iteration
  • Only bivariate distributions at each estimation
    • Potentially avoiding the curse of dimensionality
  • New model for multi-site rainfall amounts (POSTER W12)

Learning with Tree-averaged Densities and Distributions

23

NIPS 2007