290 points · by m1245 · 9y ago · 47 comments
Funny, if I had to summarize it in one sentence I'd describe it in the opposite way: Bayesian inference is a way of making less sharp predictions from your data, with quantified uncertainty.
Bayesian inference is an efficient way to track your estimates and uncertainties as you accumulate data.
[1] - https://scottlocklin.wordpress.com/category/tools/machine-le...
[2] - https://www.amazon.com/Algorithmic-Learning-Random-World-Vla...
I would summarize it as Bayesian methods work best in areas where there's often not enough data, there exists significant expert knowledge, and you can properly specify a model. And yes, they do quantify uncertainty.
If you're looking for a place to start I'd go to Andrew Gelman's introduction for the Stan Language: https://www.youtube.com/watch?v=T1gYvX5c2sM
There are Stan implementations in R, Python, Julia or you can run it in C++ since it's written in C++. I think this has greater potential to change how we deal with the unknown than AI or other machine learning.
I highly agree, just play with Stan or JAGs and you will figure it out. The prose descriptions just cannot convey the power and flexibility of Bayesian stats.
PS, you shouldn't be trying to do a "bayesian t-test" or anything like that. That whole way of thinking about research (asking "is there an effect?") is flawed and can't go away soon enough.
Now I'm just averaging pixelvalue = (photo1.pixelvalue + photo2.pixelvalue) / numPhotos
Is there a way to make this smarter with a bayesian approach? I'm thinking it couldmake a smarter guess what the actual pixelvalue should be rather than just the average.
Any ideas would be appreciated!
This paper discusses exactly the scenario you discuss.
But how would you use a Bayesian approach? What exactly are you trying to predict? What are the inputs? What is the model?
The crucial difference is that statistical inference does not consider any causation, its domain is observations only, and observations only cannot establish a causation in principle.
Correlation is not a causation. Substituting a Bayesian inference for a logical inference should result in a Type Error (where are all these static typing zealots when we need them?).
This is, by the way, one of the most important principles - universe exist, probabilities and numbers does not. Every causation in the universe is due to its laws and related structures and processes. Causation has nothing to do with numbers or observations. This is why most of modern "science" are non-reproducible piles of crap.
Any observer is a product of the universe. The Bayesian sect is trying to make it the other way around. Mathematical Tantras of the digital age.
But true logical inference doesn't exist in the real world. Because you can never be 100% sure of anything, not even mathematical facts. It's just an approximation of superior bayesian inference: http://lesswrong.com/lw/mp/0_and_1_are_not_probabilities/
You can even deduce causation from purely observational data. And here's how: http://lesswrong.com/lw/ev3/causal_diagrams_and_causal_model...
NO. This is a fucking sectarian crap. Logic of any kind is possible only because the Universe has its laws and structure. It always comes first. Logic is a uninterrupted chain of steps of induction which must be validated by tracing back the whole chain to some validated, fundamental principle. It is a universal process. Inductive steps and premises are domain-specific.
Logic could be applied to abstractions like numbers as an exception, because numbers represents valid aspects or properties of reality, not the other way around. Numbers are imaginary. Universe is real. It makes an observer possible, but does not require one, which means that an observer and all his inferences could be excluded completely from the "mechanics" of what is. Time, for example. And numbers, of course.
But this is only an approximation, and is fundamentally wrong in principle for any real world problem. You can never be 100% certain of anything, even mathematical proofs. After all, errors are found in published mathematical proofs all the time. And people regularly make mistakes doing even simple arithmetic.
That's the thing, we live in an uncertain world and can never have true certainty about anything. Especially in most real world problems that we care about. All forms or reasoning and inference are part of the mind, not reality. Reality doesn't have to respect your axioms or logical inferences. At any time reality can bite back and say your logic was wrong. And you must change your map, not argue that the territory is incorrect.
Bayesian inference is the process of drawing maps of a territory. And realizing that they are just maps. That we can make more and more accurate maps, but we can never have maps that are 100% perfect and certain. Reality doesn't grant us certainty, and that's ok.
Socrates is mortal not because he is a man, but because biology is bound by physics of this universe (in which compound structures are impermanent and what we call energy is eternal, being transformed from one form into another) and because a man is a biological process, he is impermanent or mortal. (Ancient Buddhists got it right, by the way).
Logic is possible because the given Universe has a certain stable (eternal) properties, so processes and structures are possible. Abstract logic is a bullshit (hello, Hegelians!).
Mathematical logic works because each one inductive step rests on the valid premises due to the fact that numbers as an abstraction capture a valid aspect of reality revealed to an observer. But it cannot be applied to anything but numbers. Different types of premises and inductions are required for different domains (while the process is fundamentally the same).
The sun will rise in the sky tomorrow not because of some probabilistic inference but because such a physical process cannot be quickly changed. Causes are always real (physical), not imaginary (mathematical).
This you can then adjust for.
> given some condition on a distribution of distributions, when do we feel that a guesser is taking too long to make a choice?
This is like a person who is taking to long to identify a color or a baby making a decision about what kind of food it wants and waiting for it to do so. For a certain interval, it makes sense, but after a point it becomes pathological.
So for example if we have two distributions,
> uniform distribution on the unit interval [0,1]; uniform distribution on the interval [1,2]
then we get impatient with a guesser who takes longer than a single guess, since we know (with probability 1) that a single guess will do.
Now, if we have two distributions that overlap, say the uniform distribution on [1,3] and [0,2], then we can quantify how long it will take before we know the choice with probability 1, but we can't say for sure how many observations will be required before any agent capable of processing positive feedback in a neural network can say for certain which one it is. As soon as an observation leaves the interval (1,2) the guesser can state the answer.
Now, things can get more interesting when the distributions are arranged in a hierarchy, say the uniform distribution on finite disjoint unions of disjoint intervals (a,b) where a < b are two dyadic rationals with the same denominator when written in lowest terms.
If a guesser is forced to guess early, before becoming certain of the result, then we can compare ways to guess by computing how often they get the right answer.
Observations now give two types of information: certain distributions can be eliminated with complete confidence (because there exists a positive epsilon such that the probability of obtaining an observation in the epsilon ball is zero) while for the others, Bayes theorem can be used to update a distribution of distributions or several distributions of distributions that are used to drive a guessing algorithm. A guess is a statement of the form "all observations are taken from the uniform distribution on subset ___ of the unit interval".
Example: take the distributions on the unit interval given by the probability density functions 2x and 2-2x. Given a sequence of observations, we can ask: what is the probability that the first distribution was chosen?
The answers to these questions can be found in a book like Probability : Theory and Examples.