How to generate random numbers from Beta distribution in Numpy

Shapes of Beta distribution and their parameters

In this tutorial, we will learn how to generate random numbers from Beta distribution in Python using Numpy. We will use Numpy’s Random Generator object with. random module’s beta() function to generate random numbers from beta distribution. We will start with learning the basics of Beta distribution. Then we will learn how to generate a… Continue reading How to generate random numbers from Beta distribution in Numpy

How to generate random numbers from binomial distribution in Numpy

In this post we will learn the basics of generating random numbers from binomial distribution in Python with Numpy. We will use Numpy’s random module’s binomial() function to generatee random numbers with multiple examples. What is Binomial Distribution The binomial distribution is a probability distribution that describes the outcomes of a series of independent trials… Continue reading How to generate random numbers from binomial distribution in Numpy

7 tips to get Statistical Summaries in Numpy

In this post we will learn about 5 handy statistical summary functions in Numpy. Numpy offers a variety of statistical summary functions to help analyse understand data. Numpy’s summary functions allow you to calculate, quickly using vectorized operations. In this post we will learn how to use some of the most commonly used statistical summary… Continue reading 7 tips to get Statistical Summaries in Numpy

Numpy dot() function with examples

In this tutorial, we will learn how to use Numpy’s dot() function with multiple examples. Numpy’s dot() function is for fining the dot product of two arrays. In linear algebra, dot product basically takes two equal-length arrays (vectors) of numbers and returns a single number. For example, if we have two vectors a and b… Continue reading Numpy dot() function with examples

How to Perform Cholesky Decomposition with SciPy

In this tutorial, we will learn how to perform Cholesky decomposition in Python using SciPy. We will start with a simple 3×3 matrix with elements hand coded and show how to perform Cholesky decomposition using linalg.cholesky() function in SciPy. What is Cholesky decompositon Cholesky decomposition one of the common methods for decomposing a positive-definite matrix… Continue reading How to Perform Cholesky Decomposition with SciPy