Bayesian vs. Frequentists: Which One To Choose For Your Next Problem?

# Bayesian vs. Frequentists: Which One To Choose For Your Next Problem?

Last updated:
23rd Dec, 2020
Views
6 Mins
View All

If you have ever been into statistics, chances are you have read about the great debate— Bayesian vs. Frequentists. Each of these is merely an approach to solving a statistical problem related to probabilities. Now, Bayesian statisticians blame Frequentists for their methods and vice-versa. There is no end to this debate. Both have their advantages and disadvantages.

## Best Machine Learning and AI Courses Online

 Master of Science in Machine Learning & AI from LJMU Executive Post Graduate Programme in Machine Learning & AI from IIITB Advanced Certificate Programme in Machine Learning & NLP from IIITB Advanced Certificate Programme in Machine Learning & Deep Learning from IIITB Executive Post Graduate Program in Data Science & Machine Learning from University of Maryland To Explore all our courses, visit our page below. Machine Learning Courses

In this article, we will look into both of the approaches and find out which one among the two is good for you for your next statistical problem.

## Bayesians vs. Frequentists— In Terms of Probability Definition

Definition 1: Probability as a Degree of Belief by Frank Ramsey (Bayesian Approach)

Probability of an event is measured by the subjective degree of belief. It is also called the ‘Logical Probability’. This means your definition of probability might vary from someone else’s, if he/she has more evidence than you. This is completely fine and the other person can think whatever he wants to.

## In-demand Machine Learning Skills

 Artificial Intelligence Courses Tableau Courses NLP Courses Deep Learning Courses

Get Machine Learning Certification from the World’s top Universities. Earn Masters, Executive PGP, or Advanced Certificate Programs to fast-track your career.

Definition 2: Probability as a Long-Term Frequency by Ronald Fisher (Frequentists Approach)

Probability of an event is equal to the long-term frequency of that event when it is repeated several times over and over. There is one universal answer and unlike definition 1, opinions to a probability of an event can not vary from person to person even if they have more/less evidence.

Example:

Suppose I have an unbiased normal coin having heads on one side and tails on the other. Now I toss the coin. I have the results. But, you as a spectator do not know if the coin is heads-up or tails-up.

So I want you to answer – “What is the probability that the coin I tossed is heads-up?”

There will be two different kinds of answers based on the two different definitions of probability.

### Bayesians

Bayesians will answer that there is a 50% chance that the coin is heads-up. You as a Bayesian will say to me, “The answer is 50% heads-up for me. But yeah, you know the outcome of the tossing. So, you have a 100% probability that the coin is either heads or tails. But, you know what, I do not care. Because, as per the resources available to me, the answer is 50% for me.

### Frequentists

Frequentists will answer the question “There is either 100% chance or a 0% chance that the coin is heads-up. Since the coin has been landed, there is no use in attaching a probability to this fixed and constant value. The outcome of the tossing is final and there is no alteration to it. There will be no variation of answer among anyone.

Let us look into another example.

We will take the above example a step further. I will toss the coin many times, suppose 14 times. You have noted down the results of the past 14 coin tosses. Now for the 15th time, I toss the coin again. Now, you are asked, “What is the probability that this tossed coin is heads up”.

### Bayesians

If you are Bayesian, what you will use, is a term known as prior. Let us look into Bayes’ formula for conditional probability:

where A and B are some events and P(A | B) is defined as Probability of event A given event B has happened.

Now, the term P(A) is defined as prior which is defined as the probability that event A is true before the data is considered.

Coming back to the example, as a Bayesian, you will utilise the term prior i.e., you will make a decision based on the past results of coin tossings.

Suppose out of 14 coin tossings, I got heads-up 9 times. You might say that “Well, I have higher chances of getting a head”. Not only you say that, but your calculation will also support your argument. So your decision has been altered due to the ‘prior’ results. One’s ability to make decisions depends on one’s degree of belief in the chosen prior. Assigning prior probabilities has been one of the key factors in Bayesian’s results.

### Frequentists

If you are a Frequentist, you will completely disagree with whatever Bayesians say. You do not have any interest in the prior as the prior is often a guessed value. Rather your idea is based on the maximum likelihood estimate. What you will do is, you will collect sample data from a population. Now estimate the mean value which is mostly uniform with the mean of data. This value is the maximum likelihood point (estimate) of the uncertain parameter.

Now, Frequentists might assume that the sample mean would be equal to the population mean, which could be wrong and is indeed wrong most of the time. So they have introduced terms such as p-values and confidence intervals.

P-value is a simple way to measure the probability of finding observed or extreme results when the null hypothesis is true. You reject the null hypothesis when the p-value is below the level of significance of 0.05. Now, p-values and confidence intervals are important enough to dedicate a separate article for them.

So now as a first step, you collect the sample from the population. You repeat the procedure a large number of times. Now, your true mean should be within the confidence intervals you choose, having a certain probability. This is what you have to do to get the result for my coin-tossing question.

You may be thinking Frequentists are way too complex. Well, they are in a sense. They tend to find the perfect universal answer that can be accepted by anyone, despite various conditions. And by doing so, Frequentists do involve serious calculations and complexity which beginners might not understand.

## Popular AI and ML Blogs & Free Courses

 IoT: History, Present & Future Machine Learning Tutorial: Learn ML What is Algorithm? Simple & Easy Robotics Engineer Salary in India : All Roles A Day in the Life of a Machine Learning Engineer: What do they do? What is IoT (Internet of Things) Permutation vs Combination: Difference between Permutation and Combination Top 7 Trends in Artificial Intelligence & Machine Learning Machine Learning with R: Everything You Need to Know AI & ML Free Courses Introduction to NLP Fundamentals of Deep Learning of Neural Networks Linear Regression: Step by Step Guide Artificial Intelligence in the Real World Introduction to Tableau Case Study using Python, SQL and Tableau

## Conclusion

Bayesian vs. Frequentist— which is the way?

Bayesian vs. Frequentist debate will go on. But it is upon you, based on the resources available, which approach to use. Both approaches have their huge number of applications. The great Mathematician Laplace calculated the mass of Saturn using Bayesian inference which could have been very much tougher with Frequentist way.

On the other hand, the Frequentist way of thinking has helped recent researchers in solving problems efficiently especially in the field of medical science that could not have been done with Bayesian inference.

If you’re interested to learn more about machine learning, check out IIIT-B & upGrad’s PG Diploma in Machine Learning & AI which is designed for working professionals and offers 450+ hours of rigorous training, 30+ case studies & assignments, IIIT-B Alumni status, 5+ practical hands-on capstone projects & job assistance with top firms.

Blog Author
Director of Engineering @ upGrad. Motivated to leverage technology to solve problems. Seasoned leader for startups and fast moving orgs. Working on solving problems of scale and long term technology strategy.
Get Free Consultation

Select Course
Select
By clicking 'Submit' you Agree to

## Suggested Blogs

136311
Summary: In this article, you will learn about data preprocessing in Machine Learning: 7 easy steps to follow. Acquire the dataset Import all the cr

29 Oct 2023

99431
What are Natural Language Processing Projects? NLP project ideas advanced encompass various applications and research areas that leverage computation

04 Oct 2023

70603
Learning about MATLAB can be tedious. It’s capable of performing many tasks and solving highly complex problems of different domains. If youR

03 Oct 2023

362152
Summary: In this article, you will learn the 16 AI project ideas & Topics. Take a glimpse below. Predict Housing Price Enron Investigation Stock

27 Sep 2023

6291
Although still evolving, Deep Learning has emerged as a breakthrough technology in the field of Data Science. From Google’s DeepMind to self-dri

21 Sep 2023

91242
AWS Projects & Topics Looking for AWS project ideas? Then you’ve come to the right place because, in this article, we’ve shared multiple AWS proj

19 Sep 2023

62837
These days, the minute you indulge in any technology-oriented discussion, interview questions on cloud computing come up in some form or the other. Th

15 Sep 2023

311208
Summary: In this Article, you will learn Stock Prices Predictor Sports Predictor Develop A Sentiment Analyzer Enhance Healthcare Prepare ML Algorith