In this post, we will learn how to use Numpy’s corrcoef() function to compute correlation between two datasets stored in a list or arrays. Numpy’s corrcoef function calculates pearson correlation coefficient, which is a measure of how two variables are related. The resulting correlation coefficient can range from 1 to -1. A correlation coefficient of […]
Numpy arange() function with examples
In this post, we will learn how to use arange(), one of the most useful functions in Numpy. With Numpy arange function we can create evenly spaced arrays. For example, If you need to create an array of numbers within a given range, you can use the arange function. To get started let us load […]
Numpy isclose() function with examples
In this post, we will learn about Numpy’s isclose() function to determine if two numbers or two arrays are close to each other allowing for tolerance to call if they are close. Numpy’s np.close() function is extremely useful when comparing floating-point numbers. We know that floating-point numbers are not represented accurately in computer memory. And […]
PCA in tidyverse framework
Performing PCA in tidyverse framework is probably one of my go to approaches for any high-dimensional data. In R, we can easily perform Principal Component analysis (PCA) using prcomp() and a few other options. A common challenge I face is to quickly look at the PCA results using a few different plots. With continual development […]
How to make a Calender in R with ggplot2
In this post, we will see how to make a calendar from scratch using R in ggplot2. I have been wanting to do this for a while. There is no better time to do this as we are at the end of the year 2022. The goal is to make a simple calender for the […]