LFD Book Forum Questions on the Bayesian Prior
 Register FAQ Calendar Mark Forums Read

#1
06-07-2012, 10:24 AM
 sakumar Member Join Date: Apr 2012 Posts: 40
Questions on the Bayesian Prior

I asked the TA this during the lecture but I am not sure I understood his answer.

Say in gradient descent (or perceptron) we start with an initial guess for w. Then we proceed to modify w as we process the training data till we get a satisfactory w.

I believe our initial w is not the same as the "Bayesian prior". Why is that? Is it because we are guessing an actual number instead of imposing a probability distribution on the values for w? How would gradient descent change if we modeled w as a Bayesian? In perceptron, when we change w based on a data point that contradicts w's predictions, that is not the same as "conditioning on data"? Why?

Also, somewhat related, I think: Prof Abu-Mostafa explained in the last lecture the second condition where it would be ok to assume a Bayesian Prior. The way I understood it was that if we had enough data points that successive updates would eventually dilute our (perhaps poor estimate of the) original prior, then we're OK? Is my understanding correct? So is that similar to saying our Eout will be low if M is large enough?
#2
06-07-2012, 10:48 AM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: Questions on the Bayesian Prior

Quote:
 Originally Posted by sakumar Say in gradient descent (or perceptron) we start with an initial guess for w. Then we proceed to modify w as we process the training data till we get a satisfactory w. I believe our initial w is not the same as the "Bayesian prior". Why is that? Is it because we are guessing an actual number instead of imposing a probability distribution on the values for w? How would gradient descent change if we modeled w as a Bayesian? In perceptron, when we change w based on a data point that contradicts w's predictions, that is not the same as "conditioning on data"? Why?
You are correct. The initial is not the same as a prior. It does affect the outcome by preferring one local minimum over another, but that is often mitigated by picking the best of several runs.

If we had a prior, and we used gradient descent to pick the hypothesis with the maximum posterior, it would be working on an augmented error of sorts, part of which comes from the prior and plays the role of a regularizer.

Quote:
 Also, somewhat related, I think: Prof Abu-Mostafa explained in the last lecture the second condition where it would be ok to assume a Bayesian Prior. The way I understood it was that if we had enough data points that successive updates would eventually dilute our (perhaps poor estimate of the) original prior, then we're OK? Is my understanding correct? So is that similar to saying our Eout will be low if M is large enough?
Indeed, dilution of the role of the prior is the effect we get when we have sufficient data, but it is not the same as saying that is low, as the latter depends on other factors such as noise.
__________________
Where everyone thinks alike, no one thinks very much
#3
06-07-2012, 12:09 PM
 sakumar Member Join Date: Apr 2012 Posts: 40
Re: Questions on the Bayesian Prior

Thanks for the clarifications, Professor!

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home General     General Discussion of Machine Learning     Free Additional Material         Dynamic e-Chapters         Dynamic e-Appendices Course Discussions     Online LFD course         General comments on the course         Homework 1         Homework 2         Homework 3         Homework 4         Homework 5         Homework 6         Homework 7         Homework 8         The Final         Create New Homework Problems Book Feedback - Learning From Data     General comments on the book     Chapter 1 - The Learning Problem     Chapter 2 - Training versus Testing     Chapter 3 - The Linear Model     Chapter 4 - Overfitting     Chapter 5 - Three Learning Principles     e-Chapter 6 - Similarity Based Methods     e-Chapter 7 - Neural Networks     e-Chapter 8 - Support Vector Machines     e-Chapter 9 - Learning Aides     Appendix and Notation     e-Appendices

All times are GMT -7. The time now is 04:31 PM.