In this post, we will learn about the differences between Numpy’s permutation() function and shuffle() function with examples. Numpy offers a variety of functions to randomize or create random data. Numpy’s permutation() and shuffle() functions are two key functions that help randomize existing 1-D array or 2D-arrays. First, we will start with how to use […]
How to generate random numbers from Beta distribution in Numpy
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 […]
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 […]
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 […]
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 […]