AI

Beta Distribution Example for Cricket Score Analysis

This post represents a real-world example of Binomial and Beta probability distribution from the sports field. In this post, you will learn about how the run scored by a Cricket player could be modeled using Binomial and Beta distribution. Ever wanted to predict the probability of Virat Kohli scoring a half-century in a particular match. This post will present a perspective on the same by using beta distribution to model the probability of runs that can be scored in a match. If you are a data scientist trying to understand beta and binomial distribution with a real-world example, this post will turn out to be helpful.

First and foremost, let’s identify the random variable that we would like to study. In this post, lets set the random variable as the half-century (runs equal to or more than 50) scored by a player in a match.

X = Half-century (runs equal to or more than 50) scored by a player in a match

First and foremost, let’s identify the random variable that we would like to study. In this post, lets set the random variable as the half-century (runs equal to or more than 50) scored by a player in a match. If the player scores a half-century, the random variable takes the value of SUCCESS (X = 1). If the player does not score a half-century, the random variable takes the value of failure (X = 0).

Representing Runs Scored as Binomial Distribution

Taking the last 30 matches in the consideration, there will be N number of successes (half-century scored) and (30-N) number of failures. This can be modeled using Binomial Distribution (a series of successes and failures).

Representing Probability of Runs as Beta Distribution

Let’s say we would like to predict the likelihood of whether the player will score a half-century in the upcoming cricket match. This problem could be modeled using Beta Distribution as the likelihood of the player scoring half-century could take value anywhere in the range of [0, 1]. Note the fact that we are predicting prior expectations.

Given our current problem, the best way to represent these prior expectations is with the Beta distribution. We are roughly expecting whether the player will score half-century even before the player has played the first ball of the match. Let’s say that it is expected that the probability that the player will score half-century will be most likely around .27, but that it could reasonably range from .21 to .35. The following plot will represent the beta distribution.

References

Intuition behind Beta Distribution

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

Recent Posts

Agentic Reasoning Design Patterns in AI: Examples

In recent years, artificial intelligence (AI) has evolved to include more sophisticated and capable agents,…

1 month ago

LLMs for Adaptive Learning & Personalized Education

Adaptive learning helps in tailoring learning experiences to fit the unique needs of each student.…

1 month ago

Sparse Mixture of Experts (MoE) Models: Examples

With the increasing demand for more powerful machine learning (ML) systems that can handle diverse…

2 months ago

Anxiety Disorder Detection & Machine Learning Techniques

Anxiety is a common mental health condition that affects millions of people around the world.…

2 months ago

Confounder Features & Machine Learning Models: Examples

In machine learning, confounder features or variables can significantly affect the accuracy and validity of…

2 months ago

Credit Card Fraud Detection & Machine Learning

Last updated: 26 Sept, 2024 Credit card fraud detection is a major concern for credit…

2 months ago