pattern recognition and machine learning基本思想1:最大似然估计

在prml中,解决问题最常用的方法之一就是最大似然法,这里对该方法进行简单的介绍。

Example 1: 高斯分布: Unknown tex: \textbf{\mu}

样本均值为 tex: \textbf{\mu} 协方差矩阵 tex: \Sigma. 均值未知.  tex: x_k 为样本点.



另求导公式等于0, 得到

tex: \sum_{k=1}^n \Sigma^{-1} (x_k-\hat{\mu}) = 0

进一步得到

tex: \hat{\mu} = \frac{1}{n} \sum_{k=1}^n x_k


Example 2: The Gaussian Case: Unknown tex: \textbf{\mu} **and ** tex: \Sigma

在这个例子中均值 tex: \textbf{\mu} 和协方差矩阵 tex: \Sigma 都是未知的. 使用数学负号表示 tex: \theta_1 = tex: \textbf{\mu}tex: \theta_2 = tex: \sigma^2.



对上面式子求导:

让上面的式子 等于 0, 得到



and

 tex: \hat{\theta_1}tex: \hat{\theta_2}tex: \theta_1tex: \theta_2  的最大似然估计.  tex: \hat{\mu} = tex: \hat{\theta_1} tex: \hat{\sigma}^2 = tex: \hat{\theta_2}, 得到

tex: \hat{\mu} = \frac{1}{n} \sum_{k=1}^n x_k

tex: \hat{\sigma}^2 = \frac{1}{n} \sum_{k=1}^n(x_k - \hat{\mu})^2.

原文地址:https://www.cnblogs.com/macula7/p/1960594.html