Docsity

Optimal Estimation/Inference - Lecture Notes | ECE 8833, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Notes for ECE8833 Lecture #10 - Optimal estimation/inference (2/10/2009)
1. Why do we need to estimate/infer things? What is the role of the visual system?
Give us information about our environment. Determine the causes of the sensory
information we collect.
Why is this hard? Problems are ill-posed (e.g., projecting a 3-D world onto a 2-D
plane).
There will always be uncertainty, and we have to make the “best guess” given the
information we have available.
Sometimes we’re wrong, and that produces illusions.
Standard model: a known hypothesis Hthat includes a generative model, this gener-
ative model has unknown parameters θ, and it produces (generates) data d.
Basic example: d=θ+nwhere n∼N(0, σ2). What is best b
θ(d)?
2. How would a frequentist approach this problem? In many ways, this is the realm of
traditional statistics.
What do we know? Fixed θ, what is probability of d. Sampling distribution: p(d|θ , H)
Can also view this as a function of θ(dfixed), called the likelihood L(θ) = p(d|θ, H)
Maximum likelihood estimate: b
θ(d) = arg maxθL(θ) = arg maxθp(d|θ, H)
EX: dis a vector of Liid estimates where d(i) = θ+nwith n∼N(0, σ2).
p(d) = Y
i
p(d(i))
b
θ(d) = arg max
θp(d|θ, H)
= arg max
θln p(d|θ, H)
d
dθ ln p(d|θ, H) = 1
σ2
L
X
i=1
(d(i)−θ)
b
θ(d) = 1
L
L
X
i=1
d(i)
This estimator itself is a random variable. How do we evaluate it?
Bias: Is E(b
θ(d)) = θ
Consistency: Does E((b
θ(d)−θ)2)→0 as L→ ∞?
1
pf3
pf4
pf5

Partial preview of the text

Download Optimal Estimation/Inference - Lecture Notes | ECE 8833 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Notes for ECE8833 Lecture #10 - Optimal estimation/inference (2/10/2009)

  1. Why do we need to estimate/infer things? What is the role of the visual system? Give us information about our environment. Determine the causes of the sensory information we collect. Why is this hard? Problems are ill-posed (e.g., projecting a 3-D world onto a 2-D plane). There will always be uncertainty, and we have to make the “best guess” given the information we have available. Sometimes we’re wrong, and that produces illusions. Standard model: a known hypothesis H that includes a generative model, this gener- ative model has unknown parameters θ, and it produces (generates) data d. Basic example: d = θ + n where n ∼ N (0, σ^2 ). What is best θ̂(d)?
  2. How would a frequentist approach this problem? In many ways, this is the realm of traditional statistics. What do we know? Fixed θ, what is probability of d. Sampling distribution: p(d|θ, H) Can also view this as a function of θ (d fixed), called the likelihood L(θ) = p(d|θ, H) Maximum likelihood estimate: ̂θ(d) = arg maxθ L(θ) = arg maxθ p(d|θ, H) EX: d is a vector of L iid estimates where d(i) = θ + n with n ∼ N (0, σ^2 ).

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

∑^ L

i=

(d(i) − θ)

̂ θ(d) =^1 L

∑^ 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.

  1. BUT, why do this? MLE isn’t optimal in any error criteria, and it boils everything down to a single number. What if you wanted to know how confident you should be in that estimate? EX: Pr[θ > 0]? Bayesians view the world differently. Use a probability distribution p(θ) to express your degree of belief/uncertainty about its value. They would generally oppose any notion that this means θ is truly random, but this is really a semantic point as the mechanics are the same as if it were a random variable. This also gets back to our root question. If the goal is to determine what are the likely causes of our sensory data, we are really more concerned with

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

  1. be computationally tractable. Computationally, p(d|H) can be VERY difficult to calculate. Many times we don’t need it (it’s just a scalar normalization factor). When we do, we may need to resort to stochastic integration (MCMC).
  1. How do we form an estimator from p(θ|d, H)?

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

NH !NT!

(N + 1)!

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 =

NH !NT!

(N + 1)!

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.