Line 36: Line 36:
 
<math>\overset{\land}\theta_{\mbox{map}} = \overset{\mbox{argmax}}\theta f_{X | \theta}(X | \theta) F_\theta(\theta)</math>
 
<math>\overset{\land}\theta_{\mbox{map}} = \overset{\mbox{argmax}}\theta f_{X | \theta}(X | \theta) F_\theta(\theta)</math>
  
== Example 1 ==
+
== Example 1: Continuous ==
  
 
<math>X \sim f_x(X) = \lambda e^{-\lambda X}</math>
 
<math>X \sim f_x(X) = \lambda e^{-\lambda X}</math>
Line 57: Line 57:
  
 
<math>\frac{d}{d\lambda} \lambda \Lambda e^{-\lambda(\Lambda + X)} = 0</math>
 
<math>\frac{d}{d\lambda} \lambda \Lambda e^{-\lambda(\Lambda + X)} = 0</math>
 +
 +
<math>\Lambda e^{-\lambda}(\Lambda + X) - \lambda \Lambda (\Lambda + X) e^{-\lambda(\lambda + X)} = 0</math>
 +
 +
<math>1 - \lambda(\Lambda + X) = 0</math>
 +
 +
<math>\overset{\land}X_{\mbox{map}} = \frac{1}{\Lambda + X}</math>
 +
 +
Recall from homework: <math>\overset{\land}X_{\mbox{ML}} = \frac{1}{X}</math>
 +
 +
Prior <math>f_{\lambda}(\lambda) = \Lambda e^{-\lambda \Lambda}</math>
 +
 +
== Example 2: Discrete ==

Revision as of 11:21, 17 November 2008

Given observation X used to estimate an unknown parameter $ \theta $ of distribution $ f_x(X) $ (i.e. $ f_x(X) = $ some function $ g(\theta) $

Consider three expressions (distributions):

1. Likehood

$ p(X; \theta) $ (discrete)

$ f_x(X; \theta) $ (continuous)

used for MLE: $ \overset{\land}\theta_{ML} = f_x(X | \theta) $

2. Prior

$ P(\theta) $ (discrete)

$ P_\theta(\theta) $ (continuous)

Indicates some prior knowledge as to what $ \theta $ should be. Prior refers to before seeing observation.

3. Posterior

$ p(\theta | x) $ (discrete)

$ f_x(\theta, x) $ (continuous)

"Posterior" refers to after seeing observations. Use Posterior to define maximum a-posterior i (map) estimate:

$ \overset{\land}\theta_{\mbox{MAP}} = \overset{\mbox{argmax}}\theta f_{\theta | X}(\theta | X) $

Using Bayes' Rule, we can expand the posterior $ f_{\theta | X}(\theta | X) $:

$ f_{\theta | X}(\theta | X) = \frac{f_{x|\theta}f_\theta(\theta)}{f_X(X)} $

$ \overset{\land}\theta_{\mbox{map}} = \overset{\mbox{argmax}}\theta f_{X | \theta}(X | \theta) F_\theta(\theta) $

Example 1: Continuous

$ X \sim f_x(X) = \lambda e^{-\lambda X} $

but we don't know the parameter $ \lambda $. Let us assume, however, that $ \lambda $ is actually itself exponentially distributed, i.e.

$ \lambda \sim f_\lambda(\lambda) = \Lambda e^{-\Lambda\lambda} $

where $ \Lambda $ is fixed and known.

Find $ \overset{\land}\lambda_{\mbox{map}} $.

Solution:

$ \overset{\land}\lambda_{\mbox{map}} = \overset{\mbox{argmax}}\lambda f_{\lambda | X}(\lambda | X) $

$ \overset{\land}\lambda_{\mbox{map}} = \overset{\mbox{argmax}}\lambda f_x(\lambda)f_{x|\lambda}(x; \lambda) $

$ \overset{\land}\lambda_{\mbox{map}} = \overset{\mbox{argmax}}\lambda \Lambda e^{-\lambda \Lambda}\lambda e^{-\lambda X} $

$ \frac{d}{d\lambda} \lambda \Lambda e^{-\lambda(\Lambda + X)} = 0 $

$ \Lambda e^{-\lambda}(\Lambda + X) - \lambda \Lambda (\Lambda + X) e^{-\lambda(\lambda + X)} = 0 $

$ 1 - \lambda(\Lambda + X) = 0 $

$ \overset{\land}X_{\mbox{map}} = \frac{1}{\Lambda + X} $

Recall from homework: $ \overset{\land}X_{\mbox{ML}} = \frac{1}{X} $

Prior $ f_{\lambda}(\lambda) = \Lambda e^{-\lambda \Lambda} $

Example 2: Discrete

Alumni Liaison

has a message for current ECE438 students.

Sean Hu, ECE PhD 2009