In the following, when a sample X=(x1,x2,x3,...,xN) consisting of N observations is obtained for a stochastic process, we calculate the parameters of the original stochastic information source by using maximum likelihood estimation. Maximum likelihood estimation is a type of parameter estimation method and is described below.
Let f(x;θ) be the density function of the distribution in accordance with the parameter θ. The likelihood function L(X∣θ) when obtaining a sample X is given by ∏n=1Nf(xn;θ). Here, θ that maximizes L(X∣θ) is called a maximum likelihood estimator.
Answer the following questions.
(1) As an example, consider the coin toss. Let θ be the probability of a coin coming up faces. We obtained the observation that when this coin is tossed N times, faces come up r times. Obtain the likelihood function in this case based on the above definition.
(2) Estimate the probability θ of a coin coming up faces by using maximum likelihood estimation. First, consider the logarithmic value of the likelihood function (hereafter referred to as the log-likelihood function ), and then find θ that maximizes the log-likelihood function by differentiation.
A normal distribution with parameters, the mean μ and the variance σ2, is described as N(μ,σ2), and its probability density function is given by
f(x;μ,σ2)=2πσ1e−(x−μ)2/(2σ2).
Consider the case of observing data generated from multiple normal distributions. This is called the Gaussian Mixture Model (GMM). The data generation process of the GMM is described as follows.
Assume a distribution that selects the number k(k=1,...,K) with probability πk (this is called a categorical distribution C). Also, assume K normal distributions N1(μ1,σ12),...,NK(μK,σK2), each of which corresponds to each number.
For each element (n=1,...,N) of sample X;
2-I: generate number zn in accordance with the categorical distribution C mentioned above,
2-II: generate xn in accordance with the normal distribution Nzn(μzn,σzn2) corresponding to the generated number zn.
The generated sequence of N observation values (x1,x2,x3,...,xN) is a sample. From this sample, we obtain the GMM parameters Θ={μk,σk,πk}k=1,...,K by maximum likelihood estimation.
First, consider the case of K=1 (data generation from a single normal distribution). When we obtain a sample X=(x1,x2,x3,...,xN) consisting of N observations generated from this normal distribution, we want to estimate the parameters (mean μ and variance σ2) by maximum likelihood estimation. Answer the following questions.
(3) Find the log-likelihood function for this case.
(4) Find the value that maximizes the log-likelihood function with respect to the mean μ (i.e., find the maximum likelihood estimator of the mean μ). Similarly, find the value that maximizes the log-likelihood function with respect to the variance σ2 (i.e., find the maximum likelihood estimator of the variance σ2).
Next, consider the case of K≥2. Answer the following questions.
(5) We would like to describe the log-likelihood function in this case as a function of the parameters Θ and Z=(z1,z2,...,zN). First, describe the probability p(Z∣Θ) that Z is generated using πk. Next, given Z, describe the generation probability p(X∣Z,Θ) of X. Finally, describe the log-likelihood function using the probabilities p(Z∣Θ) and p(X∣Z,Θ) obtained above.
We want to maximize the log-likelihood function obtained in Question (5) above. However, since this log-likelihood function contains a sum operation Σ in the logarithmic function, it is difficult to find Θ that makes the derivative zero. Therefore, the following "Algorithm A" is used to iteratively maximize (note that here we only focus on local maximization and do not seek global maximization). In Algorithm A, for the objective function D(Θ) to be maximized, using the auxiliary function G(Θ,θ) and the auxiliary variable θ where D(Θ)=maxθG(Θ,θ), the operations [step 1] θ←argmaxθ′G(Θ,θ′) and [step 2] Θ←argmaxΘ′G(Θ′,θ) are iteratively repeated to calculate the local optimum of Θ. Answer the following questions.
(6) Prove that, when using above Algorithm A, Θ that is updated by repeating step 1 and step 2 always raises or stops the original objective function D(Θ).
(7) We use Jensen's inequality to obtain the auxiliary function of the log-likelihood function obtained in Question (5) above. Jensen's inequality for logarithmic functions can be written as log(Σiλiyi)≥Σiλilog(yi) (where yi is a positive variable, λi is any weight that satisfies Σiλi=1 and λi≥0). Prove this inequality.
(8) Using Jensen's inequality, design an auxiliary function for the log-likelihood function obtained in Question (5). Let λi be the auxiliary variable here. You can derive the auxiliary function by first dividing the individual normal distributions in the sum operation Σ by λi and multiplying them by λi in front of that.
(9) Execute Algorithm A for the auxiliary function obtained in Question (8) above. First, find λi that maximizes the auxiliary function as [step 1]. Next, find the parameter Θ that maximizes the auxiliary function (where the auxiliary variables are fixed) as [step 2].