Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on tumblr
Share on vk

Bayesian Thinking — A Mathematical Approach to Decision Making

It is highly unlikely for most who have successfully made through high school to not recognize the one lined wonder written here. Yes, indeed Bayes’ Theorem.

 

While in high school most of us, including me knew of this as nothing more but an elegant tool to calculate the probability of an event occurring given another. But, it was only later that I realized the wonder in this small equation. Being the reason behind inspiring a whole new approach to decision making, it is nothing short of surprising that Bayes found this principle so useless and painfully obvious he actually discarded it and it got published only when it was rediscovered after his death.

One random piece of information to know (might prove helpful for the later part) is that generally Bayes’ rule is never meant to be applied once, it is a constant process of a probability update in light of new data, inference from data. For example, probability that I am a good employee can be calculated as, first, probability I am a good employee given I got fired once, if one gets fired again, it becomes, probability I am a good employee given I got fired again where the first probability is used as the priori probability for the second application of Bayes’ Theorem and so on…

So what actually is the Bayesian approach to thinking and why should it matter to you? The answer lies in the fact that there is an inherent problem in the way we as individuals think about our actions, their outcomes and our beliefs about ourselves.

Consider this — you believe yourself to be a pretty good driver. Unfortunately, on your next road trip, you get involved in a car accident. Naturally, it is something that is going to invoke at least a tiny speck of doubt regarding your abilities as a good driver. Think for a minute, what will your first thoughts be regarding this unpleasant experience you had against your belief system. Let me put it down for you :

Know what? It was the other drivers fault.
Maybe there’s something wrong with the car.
Literally any goddamn reason you can give without having to compromise your belief system.

Think of all such incidences that have happened to you in the past where you stuck to your original assumptions/presumptions about yourself instead of reconsidering your notions.

This is what psychologists like to call, “Confirmation Bias”. It is the tendency of people to unreasonably justify their pre-existing beliefs (In this case, being a good driver) when faced with contrary evidence (In this case, the car crash) instead of modifying their confidence in their beliefs. The reasons for why we do this are pretty obvious — may be an instinctive, rigid belief system, may be inability to accept failure or a high sense of self-pride. We all do it invariably sometime or the other but what is interesting is that this so called confirmation bias has led to many disastrous political and social decisions and it continues to effect bad decisions throughout numerous countries, companies, organisations, etc. even costing the organisations a fortune many times. More so, this trying to fit in contrary evidence to pre-existing beliefs by unreasonable justification is a big no-no for personal growth and self-discovery.

This is where Bayes’ Theorem and Bayesian thinking comes to the rescue. Broadly speaking ,this is what Bayesian thinking bases itself upon,

Priors : Your original beliefs about yourself or in other words a set of things you believe are a given about yourself. (Literally the physical manifestation of the ‘A’ in the equation)
Facing evidence : This refers to having an experience that brings you to the face of supportive/contrary evidence about your priors. (The new experience is what ‘B’ refers to in the mathematical sense)
To imagine if whether your theory is wrong, would the world look different?
A probability update : This is the step wherein you look at more and more evidence and update your belief system/priors. (Literally performing the probability update P(A/B)).

So coming back to the car crash example. Here’s what a perfectly Bayesian mind would do, given the prior that you believed about yourself that you are a good driver and facing the evidence that you crashed your car, instead of confirming a wrong belief by demonstrating a ‘confirmation bias’ you would instead add some points on the prior of you not being a good driver, or in this case reduce some points off the table of you being a good driver or in other words the new probability of you being a good driver (call it P1, that is, being a good driver given you crashed once ) goes down. Now if you meet with another accident the prior (now P1) is further decremented just as expected to upon a repeated application of Bayes’ theorem(call it P2 = P(being a good driver/you crashed twice). Note that the prior here was P1 and now P2 will serve as the new prior if, god forbid, a third accident was about to happen. Thus, allowing you to become a little more skeptical about yourself and potentially contributing significantly to personal growth.


Courtesy : http://allendowney.blogspot.com/2015/06/bayesian-billiards.html

This is the way Bayes’ thought the world to be, he believed that there’s no way to be absolutely sure of anything in life and that all we can do is to keep updating our belief system in the face of new supportive/contrary evidence. For example, to a man who has never seen the sun in his life and always lived in a cave, seeing the sun for the first time will create a new prior for him which he will forever keep updating as he sees the sun everyday and he can never be a 100% sure that it will rise the next day. Mathematically, this is the same as the limit on applying Bayes’ Theorem repeatedly never converging to 1, given we will always have only finite iterations (In other words, he can only see the sun rising a finite number of times, i.e till he dies) and since every action of ours can only be finite in nature, backed by mathematical evidence, there is completely no sense in believing in a rigid, never changing belief system.

Another important lesson to take away from the Bayes’ Theorem is a rather interesting observation. Note that this approach to decision making works only when you have your priors right. In other words, you cannot update probabilities of you doing a thing if you haven’t thought about it yet or you cannot update your chances if you never knew something was possible because then what is your prior for doing that thing? in other words a priori probability of 0 is non update-able by Bayes’ Theorem. Hence, Bayes’ Theorem also shows how important it is to have some confidence in your priors, even if it is something impossible you have sought to achieve. As an example, if I never believed I could be a good student, I will never believe I became one, no matter how much positive evidence is given to me. Hence, this beautiful one-line formula also speaks as to how a basic belief in your core values is important for achieving the impossible. You can only do the impossible, if you believe it is possible first.

Bayesian thinking is not something hard-wired into our brains, but it has been shown how good our brain can become at internalizing it. This can also be seen as a concern, in other words, repeated failure may sometimes make us so used to failure, our probability in believing we can be successful (a Bayesian prior to success) can be essentially (well not mathematically, :)) decremented by us to 0 due to a lack of patience of the human brain, in other words, we can stop believing we can succeed as a reason of these repeated conflicting evidences and prior updates. Something that happens so often in real life, right ?

Well, Bayesian thinking also helps here and says, as long as you don’t lose hope, in other words as long as those priors don’t hit 0, you always have a chance at updating and upgrading the probability of your priors, in other words upgrading your belief that you can indeed be successful.

This is how Bayes’ Theorem and hence Bayesian Thinking are one of the most important principles in optimizing decision making processes, it is no surprise then that the name Bayes is famous all throughout mathematics where it finds numerous applications in probability theory to computer science where it is used in advanced decision making algorithms like that for spam classification to psychology.

So, this was my attempt to put into words what is one of the greatest contributions to mathematical applied rationalism, I hope more and more people implement Bayesian Thinking in their lives, their decisions and value systems to see the remarkable changes it brings. For I believe a Bayesian world (not that it is free of complications, but that is something for another post), will be a world so good to live in — a world without rash decisions, irrational biases and prejudices, not only for individuals but for corporations too.

Till then, I’ll remember to keep my priors optimal on this vision of the world!

“Under Bayes’ theorem, no theory is perfect. Rather, it is a work in progress, always subject to further refinement and testing.” — Nate Silver

Further recommended reading/watching : (Click on the links below)

  1. This video by Julia Galef, co-founder of the Center for Applied Rationality.
  2. An awesome video by Veritasium on Bayesian principles.
  3. This article by Gizmodo about Bayesian Thinking.

https://medium.com/@hrishikeshathalye/bayesian-thinking-a-mathematical-approach-to-decision-making-d715d6da4192

 

More post

Happy teacher day

  Hôm nay là một ngày đặc biệt, ngày tôn vinh các thầy cô làm nghề giáo. Mỗi một thời kì, đều có những thay đổi nhất định. Ngày xưa,

Những đièu vẩn vơ

Có nhiều điều để nói mà khi chuẩn bị viết ra là nó lại biến đâi đâu mất hết. Để rồi suy nghĩ trong đầu vẫn quẩn quanh ở đó

Sự trớ trêu cho kẻ khù khờ

Cuộc sống đúng là trớ trêu. Cứ cho người ta suy nghĩ về những điều tốt đẹp rồi ngay sau đó lại tước đi mất. Những điều không tưởng và

Hôm nay mình đã khóc!!!

Hôm nay mình đã khóc!!!Uhm thì hôm nay là cuối tuần, đi xem một bộ film nhưng mà mình không nghĩ nó lại làm mình khóc. Nói là khóc thì

Một buổi chiều

Dạo này tâm trạng không thể nói là tốt hơn hay là xấu hơn. Luôn là những sự vận động, thay đổi không ngừng bởi những chuyện xảy ra xung

Buồn làm sao buông?

Ngẫm về những điều chưa biết, thì cảm thấy bế tắc thực sự. Có lẽ người ta gọi là khủng hoảng tuổi trung niên cũng nễn. tìm trong kí ức