# What is Probability Distribution: Definition and its Types

Data Science has grown in popularity as an interdisciplinary field. It extracts facts and insights from structured, semi-structured, and unstructured datasets using scientific approaches, methods, algorithms, and tools. Businesses use these data and insights to improve production, expand their business, and anticipate user needs. The probability distribution is important when performing data analysis and preparing a dataset for model training. In this tutorial, you will learn about Probability Distribution and its types.

Contents

## Types of Probability Distribution

The probability distribution is divided into two parts:

- Discrete Probability Distributions
- Continuous Probability Distributions

### Discrete Probability Distribution

A discrete distribution describes the probability of occurrence of each value of a discrete random variable. The number of spoiled apples out of 6 in your refrigerator can be an example of a discrete probability distribution.

Each possible value of the discrete random variable can be associated with a non-zero probability in a discrete probability distribution.

Let’s discuss some significant probability distribution functions.

#### Binomial Distribution

The binomial distribution is a discrete distribution with a finite number of possibilities. When observing a series of what are known as Bernoulli trials, the binomial distribution emerges. A Bernoulli trial is a scientific experiment with only two outcomes: success or failure.

Consider a random experiment in which you toss a biased coin six times with a 0.4 chance of getting head. If ‘getting a head’ is considered a ‘success’, the binomial distribution will show the probability of r successes for each value of r.

The binomial random variable represents the number of successes (r) in n consecutive independent Bernoulli trials.

#### Bernoulli’s Distribution

The Bernoulli distribution is a variant of the Binomial distribution in which only one experiment is conducted, resulting in a single observation. As a result, the Bernoulli distribution describes events that have exactly two outcomes.

Here’s a Python Code to show Bernoulli distribution:

The Bernoulli random variable’s expected value is p, which is also known as the Bernoulli distribution’s parameter.

The experiment’s outcome can be a value of 0 or 1. Bernoulli random variables can have values of 0 or 1.

The pmf function is used to calculate the probability of various random variable values.

#### Poisson Distribution

A Poisson distribution is a probability distribution used in statistics to show how many times an event is likely to happen over a given period of time. To put it another way, it’s a count distribution. Poisson distributions are frequently used to comprehend independent events at a constant rate over a given time interval. Siméon Denis Poisson, a French mathematician, was the inspiration for the name.

The Python code below shows a simple example of Poisson distribution.

It has two parameters:

- Lam: Known number of occurrences
- Size: The shape of the returned array

The below-given Python code generates the 1×100 distribution for occurrence 5.

### Continuous Probability Distributions

A continuous distribution describes the probabilities of a continuous random variable’s possible values. A continuous random variable has an infinite and uncountable set of possible values (known as the range). The mapping of time can be considered as an example of the continuous probability distribution. It can be from 1 second to 1 billion seconds, and so on.

The area under the curve of a continuous random variable’s PDF is used to calculate its probability. As a result, only value ranges can have a non-zero probability. A continuous random variable’s probability of equaling some value is always zero.

Now, look at some varieties of the continuous probability distribution.

#### Normal Distribution

Normal Distribution is one of the most basic continuous distribution types. Gaussian distribution is another name for it. Around its mean value, this probability distribution is symmetrical. It also demonstrates that data close to the mean occurs more frequently than data far from it. Here, the mean is 0, and the variance is a finite value.

In the example, you generated 100 random variables ranging from 1 to 50. After that, you created a function to define the normal distribution formula to calculate the probability density function. Then, you have plotted the data points and probability density function against X-axis and Y-axis, respectively.

#### Continuous Uniform Distribution

In continuous uniform distribution, all outcomes are equally possible. Each variable has the same chance of being hit as a result. Random variables are spaced evenly in this symmetric probabilistic distribution, with a 1/ (b-a) probability.

The below Python code is a simple example of continuous distribution taking 1000 samples of random variables.

#### Log-Normal Distribution

The random variables whose logarithm values follow a normal distribution are plotted using this distribution. Take a look at the random variables X and Y. The variable represented in this distribution is Y = ln(X), where ln denotes the natural logarithm of X values.

The size distribution of rain droplets can be plotted using log normal distribution.

#### Exponential Distribution

In a Poisson process, an exponential distribution is a continuous probability distribution that describes the time between events (success, failure, arrival, etc.).

You can see in the below example how to get random samples of exponential distribution and return Numpy array samples by using the numpy.random.exponential() method.

Looking forward to a career in Data Analytics? Check out the Data Analytics Course and get certified today.

#Probability #Distribution #Definition #Types