



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Notes for ECE8833 Lecture #10 - Optimal estimation/inference (2/10/2009)
p(d) =
i
p(d(i))
̂ θ(d) = arg max θ
p(d|θ, H)
= arg max θ
ln p(d|θ, H)
d dθ
ln p(d|θ, H) =
σ^2
i=
(d(i) − θ)
̂ θ(d) =^1 L
i=
d(i)
This estimator itself is a random variable. How do we evaluate it? Bias: Is E( θ̂(d)) = θ Consistency: Does E((θ̂(d) − θ)^2 ) → 0 as L → ∞?
Efficiency: Does E((θ̂(d) − θ)^2 ) achieve the best possible value? Traditional statistics often chooses a property (e.g., bias) and then tries to develop an estimator to meet that property. Example is that sample variance is a biased estimator of variance. MLE is by far the most commonly used estimator in this camp. MLE is asymptotically unbiased, consistent, asymptotically efficient, and asymptoti- cally Gaussian distributed.
p(θ|d, H) =
p(d|θ, H)p(θ|H) p(d|H)
p(d|θ, H)p(θ|H) ∫ p(d|θ, H)p(θ|H)dθ
Notation: Likelihood (when viewed as a function of θ): L(θ) = p(d|θ, H) Prior: p(θ|H) Posterior: p(θ|d, H) Evidence, marginal probability or partition function: p(d|H) NOTE: Like information theory, the quantity of interest (posterior) only depends on the likelihood of the data and not on the data itself. Known as the likelihood principle. The main complaint about Bayesian techniques is that a lot of assumptions are wrapped up in the prior. This is true. But, a Bayesian would argue that 1) there are a lot of assumptions wrapped up in H too, it’s just a matter of what level you are certain of your model, 2) we often do have information we can try to incorporate into the model, and 3) the relevance of this prior gets less and less as we get more data. Priors usually chosen to 1) reflect knowledge, 2) have as little impact as possible, or
If we want to minimize ∫ ∫ I{|θ−bθ|> 0 }p(θ, d|H)dθdd
Optimal estimator is the max of the posterior density: ̂ θ = arg max θ p(θ|d, H)
So, while MAP does reduce things to one number, it is the solution to an optimal estimator for some reasonable loss function and we have explicitly the entire density (non-asymptotically) to use to judge the quality of the estimate.
(c) Original example from Bayes (1763)
A coin has unknown probability f of coming up heads. If we toss the coin N times, we will get NH heads and NT tails in a sequence s. For example, s = {HHT HT T }. Clearly p(s|f, N ) = f NH^ (1 − f )NT^.
Assume that f is uniformly distributed over [0,1], p(f ) = 1 for f ∈ [0, 1].
p(f |s, N ) =
p(s|f, N )p(f ) p(s|N )
=
f NH^ (1 − f )NT p(s|N )
p(s|N ) =
0
f NH^ (1 − f )NT^ df
Beta integral
Consider the received data s = HT H so that NH = 2 and NT = 1. What is the best estimate of f? MAP: p(f |s, N ) ∝ f 2 (1 − f )
max f f 2 (1 − f )
d df
f 2 (1 − f ) = 2f − 3 f 2 = 0
f (2 − 3 f ) = 0 f = { 0 , 2 / 3 }
So, MAP estimate is f = 2/3. MEAN: Need partition function ∫ (^1)
0
p(s|f, N )p(f )df =
0
f p(f |s, N )df = 12
0
f f 2 (1 − f )df = 3/ 5
(d) Iterative updates: What do we do when we get more data?
In our example from earlier, we assumed we had L iid measurements. We incorpo- rated them all jointly by calculating p(θ|d, H) = p(d|θ, H)p(θ|H), where p(d|θ, H) is factorial because the observations are independent. But, what if we get observations in one at a time? At each step, p(θ|H) reflects what we think we know about θ at the current instance. After one observation, we calculate p(θ|d(1), H) and this becomes the new prior.
Step 1: p(θ|d(1), H) ∝ p(d(1)|θ, H)p(θ|H) Step 2: p(θ|d(1), d(2), H) ∝ p(d(2)|θ, H)p(θ|d(1), H) Step 3: p(θ|d(1), d(2), d(3), H) ∝ p(d(3)|θ, H)p(θ|d(1), d(2), H) .. .
Example of drawing 50 samples from a Gaussian with a uniform distribution on the prior. Graphically it looks like the repeated multiplication of Gaussian distributions, which sharpens the peak as we get more certain. NOTE: the influence of the prior decreases as we get more data.