LECTURE 09: BAYESIAN ESTIMATION (Cont.)

Slides:



Advertisements
Similar presentations
Pattern Recognition and Machine Learning
Advertisements

Component Analysis (Review)
ECE 8443 – Pattern Recognition LECTURE 05: MAXIMUM LIKELIHOOD ESTIMATION Objectives: Discrete Features Maximum Likelihood Resources: D.H.S: Chapter 3 (Part.
CS479/679 Pattern Recognition Dr. George Bebis
Face Recognition Ying Wu Electrical and Computer Engineering Northwestern University, Evanston, IL
0 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Principal Component Analysis CMPUT 466/551 Nilanjan Ray.
Principal Component Analysis
Prénom Nom Document Analysis: Parameter Estimation for Pattern Recognition Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
0 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Machine Learning CMPT 726 Simon Fraser University
Machine Learning CUNY Graduate Center Lecture 3: Linear Regression.
1 lBayesian Estimation (BE) l Bayesian Parameter Estimation: Gaussian Case l Bayesian Parameter Estimation: General Estimation l Problems of Dimensionality.
Introduction to Bayesian Parameter Estimation
Bayesian Estimation (BE) Bayesian Parameter Estimation: Gaussian Case
Today Wrap up of probability Vectors, Matrices. Calculus
Binary Variables (1) Coin flipping: heads=1, tails=0 Bernoulli Distribution.
1 Linear Methods for Classification Lecture Notes for CMPUT 466/551 Nilanjan Ray.
Probability of Error Feature vectors typically have dimensions greater than 50. Classification accuracy depends upon the dimensionality and the amount.
Machine Learning CUNY Graduate Center Lecture 3: Linear Regression.
0 Pattern Classification, Chapter 3 0 Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda,
Principles of Pattern Recognition
ECE 8443 – Pattern Recognition LECTURE 06: MAXIMUM LIKELIHOOD AND BAYESIAN ESTIMATION Objectives: Bias in ML Estimates Bayesian Estimation Example Resources:
ECE 8443 – Pattern Recognition LECTURE 03: GAUSSIAN CLASSIFIERS Objectives: Normal Distributions Whitening Transformations Linear Discriminants Resources.
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition LECTURE 03: GAUSSIAN CLASSIFIERS Objectives: Whitening.
ECE 8443 – Pattern Recognition LECTURE 07: MAXIMUM LIKELIHOOD AND BAYESIAN ESTIMATION Objectives: Class-Conditional Density The Multivariate Case General.
ECE 8443 – Pattern Recognition LECTURE 10: HETEROSCEDASTIC LINEAR DISCRIMINANT ANALYSIS AND INDEPENDENT COMPONENT ANALYSIS Objectives: Generalization of.
Computational Intelligence: Methods and Applications Lecture 23 Logistic discrimination and support vectors Włodzisław Duch Dept. of Informatics, UMK Google:
Chapter 3 (part 2): Maximum-Likelihood and Bayesian Parameter Estimation Bayesian Estimation (BE) Bayesian Estimation (BE) Bayesian Parameter Estimation:
ECE 8443 – Pattern Recognition LECTURE 08: DIMENSIONALITY, PRINCIPAL COMPONENTS ANALYSIS Objectives: Data Considerations Computational Complexity Overfitting.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Chapter 3: Maximum-Likelihood Parameter Estimation l Introduction l Maximum-Likelihood Estimation l Multivariate Case: unknown , known  l Univariate.
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition LECTURE 07: BAYESIAN ESTIMATION (Cont.) Objectives:
Discriminant Analysis
Over-fitting and Regularization Chapter 4 textbook Lectures 11 and 12 on amlbook.com.
Elements of Pattern Recognition CNS/EE Lecture 5 M. Weber P. Perona.
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition LECTURE 12: Advanced Discriminant Analysis Objectives:
Univariate Gaussian Case (Cont.)
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition LECTURE 10: PRINCIPAL COMPONENTS ANALYSIS Objectives:
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition LECTURE 09: Discriminant Analysis Objectives: Principal.
Pattern Classification All materials in these slides* were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley.
Part 3: Estimation of Parameters. Estimation of Parameters Most of the time, we have random samples but not the densities given. If the parametric form.
PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 1: INTRODUCTION.
Univariate Gaussian Case (Cont.)
Chapter 3: Maximum-Likelihood Parameter Estimation
LECTURE 06: MAXIMUM LIKELIHOOD ESTIMATION
LECTURE 11: Advanced Discriminant Analysis
LECTURE 04: DECISION SURFACES
LECTURE 10: DISCRIMINANT ANALYSIS
LECTURE 03: DECISION SURFACES
Parameter Estimation 主講人:虞台文.
CH 5: Multivariate Methods
Pattern Classification, Chapter 3
Chapter 3: Maximum-Likelihood and Bayesian Parameter Estimation (part 2)
Course Outline MODEL INFORMATION COMPLETE INCOMPLETE
Principal Component Analysis
Where did we stop? The Bayes decision rule guarantees an optimal classification… … But it requires the knowledge of P(ci|x) (or p(x|ci) and P(ci)) We.
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Feature space tansformation methods
Generally Discriminant Analysis
Principal Components What matters most?.
LECTURE 09: BAYESIAN LEARNING
LECTURE 07: BAYESIAN ESTIMATION
LECTURE 09: DISCRIMINANT ANALYSIS
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Parametric Methods Berlin Chen, 2005 References:
Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John.
Principal Component Analysis
Chapter 3: Maximum-Likelihood and Bayesian Parameter Estimation (part 2)
Presentation transcript:

LECTURE 09: BAYESIAN ESTIMATION (Cont.) • Objectives: Bayesian Estimation Example Resources: D.H.S.: Chapter 3 (Part 2) J.O.S.: Bayesian Parameter Estimation A.K.: The Holy Trinity A.E.: Bayesian Methods J.H.: Euro Coin

Sufficient Statistics Direct computation of p(D|θ) and p(θ|D) for large data sets is challenging (e.g. neural networks) We need a parametric form for p(x|θ) (e.g., Gaussian) Gaussian case: computation of the sample mean and covariance, which was straightforward, contained all the information relevant to estimating the unknown population mean and covariance. This property exists for other distributions. A sufficient statistic is a function s of the samples D that contains all the information relevant to a parameter, θ. A statistic, s, is said to be sufficient for θ if p(D|s,θ) is independent of θ:

The Factorization Theorem Theorem: A statistic, s, is sufficient for θ, if and only if p(D|θ) can be written as: . There are many ways to formulate sufficient statistics (e.g., define a vector of the samples themselves). Useful only when the function g() and the sufficient statistic are simple (e.g., sample mean calculation). The factoring of p(D|θ) is not unique: Define a kernel density invariant to scaling: Significance: most practical applications of parameter estimation involve simple sufficient statistics and simple kernel densities.

Gaussian Distributions This isolates the θ dependence in the first term, and hence, the sample mean is a sufficient statistic using the Factorization Theorem. The kernel is:

The Exponential Family This can be generalized: and: Examples:

Probability of Error Feature vectors typically have dimensions greater than 50. Classification accuracy depends upon the dimensionality and the amount of training data. Consider the case of two classes multivariate normal with the same covariance: where: and: If the features are independent then: , and

Dimensionality and Training Data Size The most useful features are the ones for which the difference between the means is large relative to the standard deviation . Too many features can lead to a decrease in performance. Fusing of different types of information, referred to as feature fusion, is a good application for Principal Components Analysis (PCA). Increasing the feature vector dimension can significantly increase the memory (e.g., the number of elements in the covariance matrix grows as the square of the dimension of the feature vector) and computational complexity. Good rule of thumb: 10 independent data samples for every parameter to be estimated. For practical systems, such as speech recognition, even this simple rule can result in a need for vast amounts of data.

Computational Complexity “Big Oh” notation used to describe complexity: if f(x) = 2+3x+4x2, f(x) has computational complexity O(x2) Recall: Watch those constants of proportionality (e.g., O(nd2)). If the number of data samples is inadequate, we can experience overfitting (which implies poor generalization). Hence, later in the course, we will study ways to control generalization and to smooth estimates of key parameters such as the mean and covariance (see textbook).

Overfitting It is common that the number of available samples is inadequate to train a complex classifier. Alternatives: Reduce the number of parameters (e.g., assume diagonal covariances) Assume all classes have the same covariance (“pooled covariance”) Better estimate of covariance (e.g., use Bayesian parameter estimate) Pseudo-Bayesian estimate: Regularized discriminant analysis (shrinkage):

Component Analysis Previously introduced as a “whitening transformation”. Component analysis is a technique that combines features to reduce the dimension of the feature space. Linear combinations are simple to compute and tractable. Project a high dimensional space onto a lower dimensional space. Three classical approaches for finding the optimal transformation: Principal Components Analysis (PCA): projection that best represents the data in a least-square sense. Multiple Discriminant Analysis (MDA): projection that best separates the data in a least-squares sense. Independent Component Analysis (IDA): projection that minimizes the mutual information of the components.

Principal Component Analysis Consider representing a set of n d-dimensional samples x1,…,xn by a single vector, x0. Define a squared-error criterion: It is easy to show that the solution to this problem is given by: The sample mean is a zero-dimensional representation of the data set. Consider a one-dimensional solution in which we project the data into a line running through the sample mean: where e is a unit vector in the direction of this line, and a is a scalar representing the distance of any point from the mean. We can write the squared-error criterion as:

Minimizing Squared Error Note that: (the norm of the unit vector is 1) Differentiate with respect to ak and obtain: The geometric interpretation is the we obtain a least-squares solution by projecting the vector, x, onto a line in the direction of e that passes through the sample mean. But what is the best direction for e?

Scatter Matrix Define a scatter matrix, S: This should look familiar, it is (n-1) times the sample covariance matrix. If we substitute our solution for ak into our expression for the squared error:

Minimization Using Lagrange Multipliers The vector, e, that minimizes J1 also maximizes . Use Lagrange multipliers to maximize subject to the constraint . Let  be the undetermined multiplier, and differentiate: with respect to e, to obtain: Set to zero and solve: It follows to maximize we want to select an eigenvector corresponding to the largest eigenvalue of the scatter matrix. In other words, the best one-dimensional projection of the data (in the least mean-squared error sense) is the projection of the data onto a line through the sample mean in the direction of the eigenvector of the scatter matrix having the largest eigenvalue (hence the name Principal Component). For the Gaussian case, the eigenvectors are the principal axes of the hyperellipsoidally shaped support region! Let’s work some examples (class-independent and class-dependent PCA).

Summary Introduction of Bayesian parameter estimation. The role of the class-conditional distribution in a Bayesian estimate. Estimation of the posterior and probability density function assuming the only unknown parameter is the mean, and the conditional density of the “features” given the mean, p(x|θ), can be modeled as a Gaussian distribution. Bayesian estimates of the mean for the multivariate Gaussian case. General theory for Bayesian estimation. Comparison to maximum likelihood estimates. Recursive Bayesian incremental learning. Noninformative priors. Sufficient statistics Kernel density.