- (*)AM-GM inequality:
- Give the formula to show the inequality of arithmetic and geometric means. When does the equality hold?
- Prove the formula.
- (*)MLE for an unfair coin: Toss an unfair coin 10 times and obtain 7 heads and 3 tails. Use the principle of MLE (maximum likelihood estimate) to derive the probabilities for head and tail are 0.7 and 0.3, respectively.
- (*)MLE for a 3-sided dice: Toss a 3-sided dice 10 times and obtain 2 times for side 1, 3 times for side 2, 5 times for side 3. Use the principle of MLE (maximum likelihood estimate) to derive the probabilities for sides 1, 2, and 3 are 0.2, 0.3, and 0.5, respectively.
- (*)1D Gaussian PDF and its MLE:
- What is the formula for 1D Gaussian PDF (probability density function)?
- Given a set of observation {x1,x2,...,xn}, what are the MLE (maximum likelihood estimate) of μ and σ2 for the 1D Gaussian PDF?
- (**)Multivariate Gaussian PDF and its MLE:
- What is the formula for the multivariate Gaussian PDF (probability density function) in the d-dimensional space?
- Given a set of observation {x1,x2,...,xn}, what are the MLE (maximum likelihood estimate) of μ∈Rd and Σ∈Rd×d for the multivariate Gaussian PDF?
- (*)Function for computing the MLE of the multivariate Gaussian PDF: The multivariate Gaussiaon PDF in the d-dimensional space is given by g(x,μ,Σ)=1√(2π)d|Σ|e−(x−μ)TΣ−1(x−μ)/2. Write a function mle4gaussian.m with the following usage:
[mu, sigma]=mle4gaussian(X); where X=[x1,x2,...,xn] is a matrix with each column being an observation vector, and mu and sigma are the MLE for the multivariate Gaussian expressed by {ˆμ=1n∑ni=1xi,ˆΣ=1n∑ni=1(xi−ˆμ)(xi−ˆμ)T. Note that you are not allowed to use any of the ready-to-use functions from any MATLAB toolbox. In other words, you need to write the function from scratch.Here is a test case. If the input X is given by
X=[magic(5), magic(5)']; Then the returned mu is13 13 13 13 13 And the returned sigma is52.0000 4.5000 -28.0000 -23.0000 -5.5000 4.5000 47.0000 -3.0000 -25.5000 -23.0000 -28.0000 -3.0000 62.0000 -3.0000 -28.0000 -23.0000 -25.5000 -3.0000 47.0000 4.5000 -5.5000 -23.0000 -28.0000 4.5000 52.0000 - (*)Simplified formula of the MLE of ND Gaussian PDF: Prove that the MLE of Σ of the multivariate Gaussian PDF can be expressed as follows: ˆΣ=1nn∑i=1(xi−ˆμ)(xi−ˆμ)T=1nXXT−ˆμˆμT, where X=[x1,x2,...,xn] is a matrix with each column being an observation vector.
- (*)Incremental formula for the MLE of ND Gaussian PDF: Given the observation matrix X=[x1,x2,...,xn] where each column is an observation vector, the MLE of a D-dim Gaussian PDF can be expressed as: {ˆμ=1n∑ni=1xi,ˆΣ=1nXXT−ˆμˆμT. We can use ˆμ−k and ˆΣ−k to denote the MLE after removing xk from X, Prove that the MLE can be expressed as: {ˆμ−k=nˆμ−xkn−1,ˆΣ−k=nn−1ˆΣ+nn−1ˆμˆμT−ˆμ−kˆμT−k−1n−1xkxTk.
- (*)ND Gaussian PDF with not-full covariance matrix: Given a set of observation {x1,x2,...,xn}, we want to find the MLE of μ and Σ for the multivariate Gaussian PDF when Σ assumes a specific non-full forms.
- If Σ is restricted to be diagonal, that is Σ=diag(α1,⋯,αd)=[α1000⋱000αd] Prove that the MLE of μ and Σ are {ˆμ=1n∑ni=1xi,ˆαk=1n∑ni=1(xi(k)−ˆμ(k))2,k=1,…,d.
- If Σ is restricted to be αI (a constant times an identity matrix), prove that the MLE of μ and Σ are {ˆμ=1n∑ni=1xi,ˆα=1nd∑ni=1(xi−ˆμ)T(xi−ˆμ).
Data Clustering and Pattern Recognition (資料分群與樣式辨認)![]()