Docsity

Advanced Probabilistic Machine Learning, Exercises of Machine Learning

Toggle sidebar
bg1
Course Notes for
EECS 9601: Advanced Probabilistic Machine Learning
John Paisley
Data Science Institute, Electrical Engineering
Columbia University
Spring 2022 (version date: February 1, 2022)
1 Poisson distribution and process, superposition and marking theorems 1
2 Completely random measures, Campbell’s theorem, gamma process 11
3 Beta processes and the Poisson process 18
4 Beta processes and size-biased constructions 24
5 Dirichlet processes and a size-biased construction 30
6 Dirichlet process extensions, count processes 37
7 Exchangeability, Dirichlet processes and the Chinese restaurant process 44
8 Exchangeability, beta processes and the Indian buffet process 52
9 Another look at constructive definitions of the beta and Dirichlet process 56
i
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d

Partial preview of the text

Download Advanced Probabilistic Machine Learning and more Exercises Machine Learning in PDF only on Docsity!

Course Notes for

EECS 9601: Advanced Probabilistic Machine Learning

John Paisley

Data Science Institute, Electrical Engineering

Columbia University

Spring 2022 (version date: February 1, 2022)

1 Poisson distribution and process, superposition and marking theorems 1

2 Completely random measures, Campbell’s theorem, gamma process 11

3 Beta processes and the Poisson process 18

4 Beta processes and size-biased constructions 24

5 Dirichlet processes and a size-biased construction 30

6 Dirichlet process extensions, count processes 37

7 Exchangeability, Dirichlet processes and the Chinese restaurant process 44

8 Exchangeability, beta processes and the Indian buffet process 52

9 Another look at constructive definitions of the beta and Dirichlet process 56

i

Chapter 1

Poisson distribution and process, superposition and

marking theorems

s (^) The Poisson distribution is perhaps the fundamental discrete distribution and, along with the

Gaussian distribution, one of the two fundamental distributions of probability.

Importance: Poisson → discrete r.v.’s Gaussian → continuous r.v.’s

Definition: A random variable X ∈ { 0 , 1 , 2 ,... } is Poisson distributed with parameter λ > 0 if P (X = n|λ) =

λn n!

e−λ, (1.1)

denoted X ∼ Pois(λ).

Moments of Poisson

E[X] =

∑^ ∞

n=

nP (X = n|λ) =

∑^ ∞

n=

λn (n − 1)!

e−λ^ = λ

∑^ ∞

n=

λn−^1 (n − 1)!

e−λ ︸ ︷︷ ︸ =

E[X^2 ] =

∑^ ∞

n=

n^2 P (X = n|λ) = λ

∑^ ∞

n=

nλn−^1 (n − 1)!

e−λ^ = λ

∑^ ∞

n=

(n + 1)λn n!

e−λ

= λ(E[X] + 1) = λ^2 + λ (1.3)

V[X] = E[X^2 ] − E[X]^2 = λ (1.4)

Sums of Poisson r.v.’s (take 1)

s (^) Sums of Poisson r.v.’s are also Poisson. Let X 1 ∼ Pois(λ 1 ) and X 2 ∼ Pois(λ 2 ). Then

X 1 + X 2 ∼ Pois(λ 1 + λ 2 ).

1

Chapter 1 Poisson distribution and process, superposition and marking theorems 3

A conjugate prior for λ

s (^) What if we have X 1 ,... , XN that we believe to be generated by a Pois(λ) distribution, but we

don’t know λ?

s (^) One answer: Put a prior distribution on λ, p(λ), and calculate the posterior of λ using Bayes’

rule.

Bayes’ rule (review)

P (A, B) = P (A|B)P (B) = P (B|A)P (A) (1.10) ⇓

P (A|B) =

P (B|A)P (A)

P (B)

posterior =

likelihood × prior evidence

Gamma prior

s (^) Let λ ∼ Gam(a, b), where p(λ|a, b) = ba Γ(a) λ

a− (^1) e−bλ (^) is a gamma distribution. Then the posterior of λ is

p(λ|X 1 ,... , XN ) ∝ p(X 1 ,... , XN |λ)p(λ) =

[ N

i=

λXi Xi!

e−λ

]

ba Γ(a)

λa−^1 e−bλ

∝ λa+

∑N i=1 Xi−^1 e−(b+N^ )λ^ (1.13) ⇓ p(λ|X 1 ,... , XN ) = Gam(a +

∑N

i=1 Xi, b^ +^ N^ )^ (1.14)

Note that E[λ|X 1 ,... , XN ] = a+

∑N i=1 Xi b+N ≈^ Empirical average of^ Xi (Makes sense because E[X|λ] = λ) V[λ|X 1 ,... , XN ] = a+∑Ni=1 Xi (b+N )^2 ≈^ Empirical average/N (Get more confident as we see more Xi)

s (^) The gamma distribution is said to be the conjugate prior for the parameter of the Poisson

distribution because the posterior is also gamma.

Poisson–Multinomial

s (^) A sequence of Poisson r.v.’s is closely related to the multinomial distribution as follows:

Let Xi ind ∼ Pois(λi) and let Y =

∑N

i=1 Xi. Then what is the distribution of X~ = (X 1 ,... , XN ) given Y?

Chapter 1 Poisson distribution and process, superposition and marking theorems 4

We can use basic rules of probability...

P (X 1 ,... , XN ) = P (X 1 ,... , XN , Y =

∑N

i=1 Xi)^ ←^ (Y^ is a deterministic function of^ X1:N^ )

= P (X 1 ,... , XN |Y =

∑N

i=1 Xi)P^ (Y^ =^

∑N

i=1 Xi)^ (1.15)

And so P (X 1 ,... , XN |Y =

∑N

i=1 Xi) =^

P (X 1 ,...,XN ) P (Y =∑Ni=1 Xi) =

∏ i P^ (Xi) P (Y =∑Ni=1 Xi) (1.16)

s (^) We know that P (Y ) = Pois(Y ; ∑N i=1 λi), so

P (X 1 ,... , XN |Y =

i Xi)^ =

[ N

i=

λX ii Xi!

e−λi

] / [

∑N

i=1 λi)

∑N i=1 Xi (

∑N

i=1 Xi)!^

e−^

∑N i=1 λi

]

Y!

X 1! · · · XN!

∏^ N

i=

λi ∑N j=1 λj

)Xi (1.17)

⇓ Mult(Y ; p 1 ,... , pN ), pi = λi/

j λj

s (^) What is this saying?

  1. Given the sum of N independent Poisson r.v.’s, the individual values are distributed as a multinomial using the normalized parameters.
  2. We can sample X 1 ,... , XN in two equivalent ways a) Sample Xi ∼ Pois(λi) independently b) First sample Y ∼ Pois(

j λj^ ), then^ (X^1 ,... , XN^ )^ ∼^ Mult

Y ; ∑λ j^1 λj ,... , ∑λ jN λj

Poisson as a limiting case distribution

s (^) The Poisson distribution arises as a limiting case of the sum over many binary events each

having small probability.

Binomial distribution and Bernoulli process

s (^) Imagine we have an array of random variables Xnm, where Xnm ∼ Bern (^ λ n

for m = 1,... , n and fixed 0 ≤ λ ≤ n. Let Yn =

∑n m=1 Xnm^ and^ Y^ = limn→∞^ Yn. Then^ Yn^ ∼^ Bin^

n, λn

and Y ∼ Pois(λ).

Chapter 1 Poisson distribution and process, superposition and marking theorems 6

Poisson process

s (^) In many ways, the Poisson process is no more complicated than the previous discussion on the

Poisson distribution. In fact, the Poisson process can be thought of as a “structured” Poisson distribution, which should hopefully be more clear below.

Intuitions and notations

s (^) S : a space (think Rd^ or part of Rd) s (^) Π : a random countable subset of S (i.e., a random # of points and their locations) s (^) A ⊂ S : a subset of S s (^) N (A) : a counting measure. Counts how many points in Π fall in A (i.e., N (A) = |Π ∩ A|) s (^) μ(·) : a measure on S ↪→ μ(A) ≥ 0 for |A| > 0 μ(·) is non-atomic ↪→ μ(A) → 0 as |A| → ∅

Think of μ as a scaled probability distribution that is continuous so that μ({x}) = 0 for all points x ∈ S.

Poisson processes

s (^) A Poisson process Π is a countable subset of S such that

  1. For A ⊂ S, N (A) ∼ Pois(μ(A))
  2. For disjoint sets A 1 ,... , Ak, N (A 1 ),... , N (Ak) are independent Poisson random vari- ables.

N (·) is called a “Poisson random measure”. (See above for mapping from Π to N (·))

Some basic properties

s (^) The most basic properties follow from the properties of a Poisson distribution.

a) EN (A) = μ(A) → therefore μ is sometimes referred to as a “mean measure” b) If A 1 ,... , Ak are disjoint, then

N (

⋃k i=1 Ai) =^

∑k i=1 N^ (Ai)^ ∼^ Pois

k i=1 μ(Ai)

= Pois

μ(

⋃k i=1 Ai)

Since this holds for k → ∞ and μ(Ai) ↘ 0 , N (·) is “infinitely divisible”.

Chapter 1 Poisson distribution and process, superposition and marking theorems 7

c) Let A 1 ,... , Ak be disjoint subsets of S. Then

P (N (A 1 ) = n 1 ,... , N (Ak) = nk|N (

⋃k i=1 Ai) =^ n) =^

P (N (A 1 )=n 1 ,...,N (Ak )=nk ) P (N (⋃ki=1 Ai)=n) (1.20)

Notice from earlier that N (Ai) ⇔ Xi. Following the same exact calculations,

P (N (A 1 ) = n 1 ,... , N (Ak) = nk|N (

⋃k i=1 Ai) =^ n) =^

n! n 1 !···nk!

∏k i=

μ(Ai) μ(⋃kj=1 Aj )

)ni

Drawing from a Poisson process (break in the basic properties) s (^) Property (c) above gives a very simple way for drawing Π ∼ PP(μ), though some thought is required to see why.

  1. Draw the total number of points N (S) ∼ Pois(μ(S)).
  2. For i = 1,... , N (S) draw Xi iid ∼ μ/μ(S). In other words, normalize μ to get a probability distribution on S.
  3. Define Π = {X 1 ,... , XN (S)}. Notice Xi is different from previously. Now it’s a location, while before it was a count. Here, the Poisson distribution is determining the existence of an Xi, while the mean measure μ determines its value.

d) Final basic property (of these notes)

E e−tN^ (A)^ = eμ(A)(e

−t−1) −→ an obvious result since N (A) ∼ Pois(μ(A)) (1.22)

Some more advanced properties

Superposition Theorem: Let Π 1 , Π 2 ,... be a countable collection of independent Poisson pro- cesses with Πi ∼ PP(μi). Let Π =

i=1 Πi. Then^ Π^ ∼^ PP(μ)^ with^ μ^ =^

i=1 μi.

Proof : Remember from the definition of a Poisson process we have to show two things.

  1. Let N (A) be the PRM (Poisson random measure) associated with PP (Poisson process) Π and Ni(A) with Πi. Clearly N (A) =

i=1 Ni(A), and since^ Ni(A)^ ∼^ Pois(μi(A))^ by definition, it follows that N (A) ∼ Pois(

i=1 μi(A)).

  1. Let A 1 ,... , Ak be disjoint. Then N (A 1 ),... , N (Ak) are independent because Ni(Aj ) are independent for all i and j.

Restriction Theorem: If we restrict Π to a subset of S, we still have a Poisson process. Let S 1 ⊂ S and Πi = Π ∩ S 1. Then Π 1 ∼ PP(μ 1 ), where μ 1 (A) = μ(S 1 ∩ A). This can be thought of as setting μ = 0 outside of S 1 , or just looking at the subspace S 1 and ignoring the rest of S.

Mapping Theorem: This says that a one-to-one function y = f (x) preserves the Poisson process. That is, if Πx ∼ PP(μ) and Πy = f (Πx), then Πy is also a Poisson process with the proper transformation made to μ. (See Kingman for details. We won’t use this in this class.)

Chapter 1 Poisson distribution and process, superposition and marking theorems 9

Proof : Need to show that Ee−tN^ ∗(C) = exp{

C (e

−t (^) − 1)μ(dx)p(y|x)dy}

  1. Note that N ∗(C) =

∑N (S)

i=1 1 {(xi, yi)^ ∈^ C}.^ N^ (S)^ is PRM associated with^ Π^ ∼^ PP(μ).

  1. Recall tower property: Ef (A, B) = E[E[f (A, B)|B]].
  2. Therefore, Ee−tN^ ∗(C) = E

[

E

[

exp

−t

∑N (S)

i=1 1 {(xi, yi)^ ∈^ C}

]]

  1. Manipulating :

Ee−tN^

∗(C) = E

N ∏ (S)

i=

E[e−t^1 {(xi,yi)∈C}|Π]

= E

N ∏ (S)

i=

M

e−t·^11 {(xi, yi) ∈ C} + e−t·^01 {(xi, yi) 6 ∈ C}

p(yi|xi)dyi

  1. Continuing :

Ee−tN^

∗(C) = E

N ∏ (S)

i=

[1 +

M

(e−t^ − 1) 1 {(xi, yi) ∈ C}p(yi|xi)dyi]

use 1 {(xi, yi) 6 ∈ C} = 1 − 1 {(xi, yi) ∈ C}

= E

[ (^) n ∏

i=

[

S

M

(e−t^ − 1) 1 {(x, y) ∈ C}p(y|x)dy

μ(dx) μ(S)

|N (S) = n

]]

Tower again using Poisson-multinomial representation

= E

[(

C

(e−t^ − 1)p(y|x)dy

μ(dx) μ(S)

)N (S)]

N (S) ∼ Pois(μ(S))

  1. Recall that if n ∼ Pois(λ), then

Ezn^ =

∑^ ∞

n=

zn^

λn n!

e−λ^ = e−λ

∑^ ∞

n=

(zλ)n n!

= eλ(z−1).

Therefore, this last expectation shows that

Ee−tN^

∗(C) = exp

μ(S)

C

(e−t^ − 1)p(y|x)dy

μ(dx) μ(S)

= exp

C

(e−t^ − 1)μ(dx)p(y|x)dy

thus N ∗(C) ∼ Pois(μ∗(C)).

Chapter 1 Poisson distribution and process, superposition and marking theorems 10

Example 1: Coloring

s (^) Let Π ∼ PP(μ) and let an x ∈ Π be randomly colored from among K colors. Denote the color

by y with P (y = i) = pi. Then Π∗^ = {(xi, yi)} is a PP on S × { 1 ,... , K} with mean measure μ∗(dx · {y}) = μ(dx)

∏K

i=1 p

1 (y=i) i. If we want to restrict^ Π

∗ (^) to the ith color, called Π∗ i , then we know that Π∗ i ∼ PP(piμ). We can also restrict to two colors, etc. What if p(y = i|x) = pi(x)? Then Π∗ i ∼ PP(μ(dx)pi(x)).

Example 2: Using the extended space

s (^) Imagine we have a 24-hour store and customers arrive according to a PP with mean measure

μ on R (time). In this case, let μ(R) = ∞, but μ([a, b]) < ∞ for finite a, b (which gives the expected number of arrivals between times a and b). Imagine a customer arriving at time x stays for duration y ∼ p(y|x). At time t, what can we say about the customers in the store?

s (^) Π ∼ PP(μ) and Π∗^ = {(xi, yi)} for xi ∈ Π is PP(μ(dx)p(y|x)dy) because it’s a marked Poisson process.

s (^) We can construct the marked Poisson process like below. The counting measure N ∗(C) ∼ Pois(μ∗(C)), μ∗^ = μ(dx)p(y|x)dy.

s (^) The points in Ct (below) are those that arrive before time t and are still there at time t. It follows that N ∗(Ct) ∼ Pois

(∫ (^) t

0

μ(dx)

t−x

p(y|x)dy

N ∗(Ct) is the number of customers in the store at time t.

Chapter 2 Completely random measures, Campbell’s theorem, gamma process 12

s (^) We can analyze these sorts of problems using PP techniques

s (^) We will be more interested in the context of “completely random measures” in this class.

Functions: The finite case

s (^) Let Π ∼ PP(μ) and |Π| < ∞ (with probability 1). Let f (x) be a positive function. Let

M =

x∈Π f^ (x). We calculate its Laplace transform (for^ t <^0 ):

EetM^ = Eet^

∑ x∈Π f^ (x)^ = E

∏^ |Π|

i=

etf^ (xi)

 (^) ← recall two things (below) (2.1)

Recall:

  1. |Π| = N (S) ← Poisson random measure for Π
  2. Tower property Eg(x, y) = E[E[g(x, y)|y]].

So:

E

N ∏ (S)

i=

etf^ (xi)

 = E

E

N ∏ (S)

i=

etf^ (xi)|N (S)

 = E

[

E

[

etf^ (x)

]N (S)]

Since N (S) ∼ Pois(μ(S)), we use the last term to conclude

E

N ∏ (S)

i=

etf^ (xi)

 (^) = exp{μ(S)(E[etf^ (x)] − 1)}

= exp

S

μ(dx)(etf^ (x)^ − 1) ( since Eetf^ (x)^ =

S

μ(dx) μ(S)

etf^ (x)

recall that E[(et)N^ (A)] = exp

A

μ(dx)(et^ − 1).

(f (x) = 1 in this case)

And so for functions M =

x∈Π f^ (x)^ of Poisson processes^ Π^ with an almost sure finite number of points EetM^ = exp

S

μ(dx)(etf^ (x)^ − 1). (2.3)

Chapter 2 Completely random measures, Campbell’s theorem, gamma process 13

The infinite case

s (^) In the case where μ(S) = ∞, N (S) = ∞ with probability one. We therefore use a different

proof technique that gives the same result.

s (^) Approximate f (x) with simple functions: fk = ∑k i=1^2 k ai (^1) Ai using k 2 k^ equally-spaced levels in

the interval [0, k]; Ai = {x : f (x) ∈ [i− 2 k^1 , 2 ik )} and ai = i− 2 k^1. In the limit k → ∞, the width of those levels (^21) k ↘ 0 , and so fk → f.

s (^) For example, if f (x) = x, then fk(x) = ∑k^2 k i=

i− 1 2 k^1 (x^ ∈^ [

i− 1 2 k^ ,^

i 2 k^ )), so^ fk(x)^ ↗^ x^ as^ k^ → ∞ for finite x.

s (^) Important notation change: M = ∑ x∈Π f^ (x)^ ⇔^

S N^ (dx)f^ (x).

s (^) Approximate f with fk. Then with the notation change, Mk = ∑ x∈Π fk(x) ⇔ ∑k i=1^2 k aiN (Ai).

s (^) The Laplace functional is

EetM^ = lim k→∞ EetMk^ = lim k→∞

E

∏^ k^2 k

i=

etaiN^ (Ai)^ ← N (Ai) and N (Aj ) are independent

= lim k→∞

exp

∑^ k^2 k

i=

μ(Ai)(etai^ − 1)

← N (Ai) ∼ Pois(μ(Ai))

= exp

S

μ(dx)(etf^ (x)^ − 1) ← integral as limit of infinitesimal sums (2.4)

Mean and variance of M: Using ideas from moment generating functions, it follows that

E(M) =

S

μ(dx)f (x) ︸ ︷︷ ︸ = (^) dtd EetM|t=

, V(M) =

S

μ(dx)f (x)^2 ︸ ︷︷ ︸ = d 2 dt^2 Ee

tM|t=0 − E(M) 2

Chapter 2 Completely random measures, Campbell’s theorem, gamma process 15

Completely random measures (CRM)

s (^) Definition of measure: The set function μ is a measure on the space S if

  1. μ(∅) = 0
  2. μ(A) ≥ 0 for all A ⊂ S
  3. μ(∪∞ i=1Ai) =

i=1 μ(Ai)^ when^ Ai^ ∩^ Aj^ =^ ∅, i^6 =^ j

s (^) Definition of completely random measure: The set function M is a completely random measure

on the space S if it satisfies #1 to #3 above and

  1. M (A) is a random variable
  2. M (A 1 ),... , M (Ak) are independent for disjoint sets Ai

s (^) Example: Let N be the counting measure associated with Π ∼ PP(μ). It’s a CRM.

s (^) We will be interested in the following situation: Let Π ∼ PP(μ) and mark each θ ∈ Π with a r.v.

π ∼ λ(π), π ∈ R+. Then Π∗^ = {(θ, π)} is a PP on S × R+ with mean measure μ(dθ)λ(π)dπ

s (^) If N (dθ, dπ) is the counting measure for Π∗, then N (C) ∼ Pois(

C μ(dθ)λ(π)dπ).

s (^) For A ⊂ S, let M (A) =

A

0 N^ (dθ, dπ)π. Then^ M^ is a CRM on^ S.

s (^) M is a special case of sums of functions of Poisson processes with f (θ, π) = π. Therefore we

know that EetM^ (A)^ = exp

A

0

(etπ^ − 1)μ(dθ)λ(π)dπ. (2.11)

s (^) This works both ways: If we define M and show it has this Laplace transform, then we know

there is a marked Poisson process “underneath” it with mean measure equal to μ(dθ)λ(π)dπ.

marked PP on S × R+ with mean completely random measure on S. measure μ(dx) × λ(π)dπ M (A) =

A

0 N^ (dθ, dπ)π

Chapter 2 Completely random measures, Campbell’s theorem, gamma process 16

Gamma processes

s (^) Definition: Let μ be a non-atomic measure on S. Then G is a gamma process if for all A ⊂ S,

G(A) ∼ Gam(μ(A), c) and G(A 1 ),... , G(Ak) are independent for disjoint A 1 ,... , Ak. We write G ∼ GaP(μ, c). (c > 0 )

s (^) Before trying to intuitively understand G, let’s calculate its Laplace transform. For t < 0 ,

EetG(A)^ =

0

cμ(A) Γ(μ(A))

G(A)μ(A)−^1 e−G(A)(c−t)dG(A) =

c c − t

)μ(A) (2.12)

s (^) Manipulate this term as follows (and watch the magic!)

c c − t

)μ(A) = exp

−μ(A) ln

c − t c

= exp

−μ(A)

∫ (^) c−t

c

s

ds

= exp

−μ(A)

∫ (^) c−t

c

ds

0

e−πsdπ

= exp

−μ(A)

0

dπ

∫ (^) c−t

c

e−πsds

(switched integrals)

= exp

μ(A)

0

(etπ^ − 1)π−^1 e−cπdπ

Therefore, G has an underlying Poisson random measure on S × R+

G(A) =

A

0

N (dθ, dπ)π, N (dθ, dπ) ∼ Pois(μ(dθ)π−^1 e−cπdπ) (2.14)

s (^) The mean measure of N is μ(dθ)π−^1 e−cπdπ on S × R+. We can use this to answer questions

about G ∼ GaP(μ, c) using the Poisson process perspective.

  1. How many total atoms?

S

0 μ(dθ)π

− (^1) e−cπdπ = ∞ ⇒ infinite # w.p. 1 (Tells us that there are an infinite number of points in any subset A ⊂ S that have nonzero mass according to G)

  1. How many atoms ≥  > 0?

S

 μ(dθ)π

− (^1) e−cπdπ < ∞ ⇒ finite # w.p. 1 (w.r.t. #1, further tells us only a finite number have mass greater than )

  1. Campbell’s theorem: f (θ, π) = π →

S

0 min(π,^ 1)μ(dθ)π

− (^1) e−cπdπ < ∞, therefore

G(A) =

A

0

N (dθ, dπ)π < ∞ w.p. 1

(Tells us if we summed up the infinite number of nonzero masses in any set A, we would get a finite number even though we have an infinite number of nonzero things to add)

s (^) Aside: We already knew #3 by definition of G, but this isn’t always the order in which CRMs

are defined. Imagine starting the definition with a mean measure on S × R+.

s (^) #3 shouldn’t feel mysterious at all. Consider ∑∞ n=

1 n^2. It’s finite, but for each^ n,^

1 n^2 >^0 and there are an infinite number of settings for n. “Infinite jump processes” such as the gamma process replace deterministic sequences like (1, 1 / 22 , 1 / 32 ,... ) with something random.

Chapter 3

Beta processes and the Poisson process

A sparse coding latent factor model

s (^) We have a d × n matrix Y. We want to factorize it as follows:

where

θi ∼ p(θ) i = 1,... , K wj ∼ p(w) j = 1,... , n zj ∈ { 0 , 1 }K^ j = 1,... , n

“sparse coding” because each vector Yj only possesses the columns of Θ indicated by zj (want

i zji^ ^ K)

s (^) Example: Y could be

a) gene data of n (or d) people, b) patches extracted from an image for denoising (called “dictionary learning”)

s (^) We want to define a “Bayesian nonparametric” prior for this problem. By this we mean that

  1. The prior can allow K → ∞ and remain well defined
  2. As K → ∞, the “effective rank” is finite (and relatively small)
  3. The model somehow learns this rank from the data during inference (not discussed)

18

Chapter 3 Beta processes and the Poisson process 19

A “beta sieves” prior

s (^) Let θi ∼ μ/μ(S) and wj be drawn as above. Continue this generative model by letting

zji iid ∼ Bern(πi), j = 1,... , n (3.1)

πi ∼ Beta

α

γ K

, α

γ K

, i = 1,... , K (3.2)

s (^) The set (θi, πi) are paired. πi gives the probability an observation picks θi. Notice that we

expect πi → 0 as K → ∞.

s (^) Construct a completely random measure HK = ∑K i=1 πiδθi^.

s (^) We want to analyze what happens when K → ∞. We’ll see that it converges to a beta process.

Asymptotic analysis of beta sieves

s (^) We have that HK = ∑Ki=1 πiδθi , πi iid ∼ Beta (αγ/K, α(1 − γ/K)) , θi iid ∼ μ/μ(S), where

γ = μ(S) < ∞. We want to understand limK→∞ HK.

s (^) Look at the Laplace transform of HK (A). Let H(A) = limK→∞ HK (A). Then

EetH(A)^ = lim K→∞

EetHK^ (A)^ = lim K→∞

Eet^

∑K i=1 πi^1 (θi∈A)^ = lim K→∞

E[etπ^1 (θ∈A)]K ︸ ︷︷ ︸ sum → product and use i.i.d. fact

s (^) Focus on Eetπ^1 (θ∈A)^ for a particular K-level approximation. We have the following (long)

sequence of equalities:

Eetπ^1 (θ∈A)^ = E[etπ 1 (θ ∈ A) + 1 (θ 6 ∈ A)] = P (θ ∈ A)Eetπ^ + P (θ 6 ∈ A)

μ(A) μ(S)

Eetπ^ − 1

← Eetπ^ = 1 +

∑^ ∞

s=

ts s!

s∏− 1

r=

αγ K +^ r α + r

μ(A) μ(S)

∑^ ∞

s=

ts s!

s∏− 1

r=

αγ K +^ r α + r

← plugging in ↑

μ(A) K

∑^ ∞

s=

ts s!

s∏− 1

r=

r α + r

  • O( (^) K^12 ) ← separate out r = 0

μ(A) K

∑^ ∞

s=

ts s!

αΓ(α)Γ(s) Γ(α + s)

  • O( (^) K^12 ) ← since Γ(α + 1) = αΓ(α)

μ(A) K

∑^ ∞

s=

ts s!

0

απs−^1 (1 − π)α−^1 dπ + O( (^) K^12 ) ← normalizer of Beta(s, α)

μ(A) K

0

∑^ ∞

s=

((tπ)s s!

απ−^1 (1 − π)α−^1 dπ + O( (^) K^12 )

μ(A) K

0

(etπ^ − 1)απ−^1 (1 − π)α−^1 dπ + O( (^) K^12 )