Better HN
topnewbestaskshowjobs
Log inSign up

kblarsen4

1 karma · joined Feb 13, 2015 (11y ago) · 5 submissions

Submissions

comment 11y ago · link · parent

It is also worth mentioning that Bayesian classifiers, like Naive Bayes, are different from the type of Bayesian regression models described in this post.

Naive Bayes, for example, is more of a "machine learning" technique where the goal is to classify people into groups based on features. Naive Bayes is called Naive because it assumes that all regressors (x_j) are independent given the target variable (let's call it y and assume it is binary). In other words, the conditional log odds of y=1 given the x_j variables is equal to the sum of the log density ratios, where the log density ratio for variable x_j is ln(f(x_j|y=1)/f(x_j|y=0)).

On the other hand, in the price elasticity example described in post we want to infuse outside knowledge into the model because we don't believe what it says on its own. This is a situation where interpretation and believability is an important part of the objective function because we will be running future pricing scenarios from the model.

If you are building, say, a churn model to predict who is going to cancel their accounts, you probably wouldn't infuse your model with outside knowledge since cross validation accuracy is your main goal. You might regularize your model, however, which can be done in a number of ways (Bayesian or non-Bayesian). But in a pricing model or media mix model, and many other cases, the use case above is very real.

I suggest reading the “Elements of Statistical Learning” by Hastie, Tibshirani, et al.

comment 11y ago · link · parent

The Python-based "Bayesian Methods for Hackers" looks interesting:

http://nbviewer.ipython.org/github/CamDavidsonPilon/Probabil...

comment 11y ago · link · parent

I noticed that I had a typo. I meant "data is fixed" not "hand is fixed," but I guess it was clear anyway.

I see your point. Thanks for the input.

I do think that P(hypothesis | Data) - the Bayesian way - is more intuitive than P(Data | hypothesis). I also think that the confidence interval is often misinterpreted as a credible interval. But that does not mean that the credible interval is the right choice for every analysis.

From a purely practical sense, the data is fixed when you have your sample or have collected your time series data. This is the data you have and you can observe it. I do agree that the data may change when you collect more samples or get more history. But the Bayesian framework is set up well to handle that, as today's result can be tomorrow's prior.

Having said all this, I don't think this debate takes away from the use cases outlined in this post. This is not meant to read as "Bayesian versus frequentist" but rather to highlight some important benefits of Bayesian analysis. For example, if I am building a pricing model that will be used to make actual decisions and my classical model is spewing out strange coefficients that do not seem to be consistent with external data and common sense. I want to infuse that model with outside information before I use the model to make real life decisions, or just shrink it. Bayesian regression gives up a structured and transparent way to handle these types of situations.

comment 11y ago · link · parent

But you will never know the truth. So it seems more practical to assume that the parameter follows some distribution and that the hand is fixed. Just a more logical approach to gauging uncertainty in my opinion. But, this is not a "Frequentist versus Bayesian" post. I think the key is to use what is most fitting for the analysis at hand.

comment 11y ago · link · parent

The book by Peter Rossi et al that is referenced in this post is a good start if you want the Bayesian approach to shrinkage.