Question: ( Gaussian Mixture Model ( GMM ) ) This question is about ( a simplified version of ) the Gaussian Mix - ture Model (

(Gaussian Mixture Model (GMM)) This question is about (a simplified version of) the Gaussian Mix- ture Model (GMM), which is a popular model in statistics, data science and machine learning. For example, it is used in image processing and various clustering algorithms. Suppose that K is a discrete random variable that can either be 0 or 1 with probability \pi 0 and \pi 1 respectively, that is,
(0, with probability \pi 0= P (K =0),
1, withprobability\pi 1=P(K=1)=1\pi 0.
K=
Conditional on K = k with k in {0,1}, the distribution of X is N(\mu k,\sigma k2), a normal distribution with
mean \mu k and variance \sigma k2. That is,
(a) Derive the joint density of (X,K). State clearly the support of (X,K) in the joint density. Hint:
consider conditional distribution and the law of total probability.
(b) Denote the distribution of (X, K) GMM(\pi 0,\mu 0,\sigma 02,\mu 1,\sigma 12). Note that \pi 1 can be omitted as a parameter since \pi 1=1\pi 0. Suppose that we have an i.i.d. random sample of size n of these n pairs (X1, K1),(X2, K2),...,(Xn, Kn). Each Xi belongs to either group 0 or group 1 depending on Ki. Using part (a), derive the maximum likelihood estimator for all the five parameters \pi 0,\mu 0,\sigma 02,\mu 1,\sigma 12. Hint: Let n0= Pni=11{Ki=0} and n1= Pni=11{Ki=1} be the number of Xi that belongs to group 0 and group 1 respectively. You may find expressing the likelihood function in terms of n0 and n1 useful.
(c) On Canvas, there is a dataset called GMM.csv, which is a comma separated file. This dataset contains n =100,000 rows and 2 columns. The first column is the realizations of K, and the second column is the realizations of X. Using any computing language of your choice, e.g. Python/R/Julia/MATLAB/Excel, compute the maximum likelihood estimators derived in part (b) using this dataset. Attach your code at the end of your assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!