Learn practical skills, build real-world projects, and advance your career

5 NumPy Lifesaver Functions

For Statstics and solving Systems of Linear Equations

As a student currently majoring in Computer Science, and having done Linear Algebra and Statistics for the past two semesters, I thought that this would be a great exercise to get to know some of the NumPy tools which can make my life easier in the future when I want to use those Linear and Stats skills.

These are five functions I believe to be integral for these two disciplines:

  • numpy.dot
  • numpy.linalg.solve
  • numpy.linalg.inv
  • numpy.median
  • numpy.mean

First, we dive into some useful NumPy functions for Linear Algebra, then we get into Statistical functions.

!pip install jovian --upgrade -q
import jovian
import numpy as np
# List of functions explained 
np.dot # finding the dot product of a matrix or vector
np.linalg.solve # solve a system of linear equations
np.linalg.inv # displaying an I_n identity matrix for reference and operations
np.median # finding the median of values
np.mean # finding the mean of values