Matplotlib, the most comprehensive visualisation library in Python for creating all kinds of plots of data visualization. However, it can also be a bit frustrating and daunting given so much you can do with Matplotlib. In this post, we will learn how to use 8 commonly used plot types, like scatter plot, histogram, with real […]
Python
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 […]
How to do QR Decomposition in Python with Numpy
QR decomposition, also known as QR factorization, is a method for decomposing a matrix into the product of an orthogonal matrix and an upper-triangular matrix. It is a useful tool for solving systems of linear equations, computing the inverse of a matrix, and computing the singular value decomposition (SVD) of a matrix. In this blog […]
How to solve system of linear equations with Numpy
In this tutorial, we will learn how to solve a system of linear equations in Python using Numpy. We will see two examples, first with a system of linear equations with two unknowns and. two variables. And the with a system of linear equations with three unknowns and three equations. We will use Numpy’s linalg.solve() […]
How to generate random numbers from Poisson distribution with Numpy
In this post, we will learn how to use Numpy’s Random Generator class to generate random numbers sampled from Poisson distribution using poisson function in Numpy. The Poisson distribution is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time or space satisfying two […]