Variance and Standard Deviation
In this module, you will learn how to quantify the spread of the dataset by calculating the variance and standard deviation.
StartKey Concepts
Review core concepts you need to learn to master this subject
Calculating Variance in Python
Interpretation of Variance
Variance
Standard Deviation
Standard Deviation Units
Calculating Standard Deviation in Python
Calculating Variance in Python
Calculating Variance in Python
import numpy as np
values = np.array([1,3,4,2,6,3,4,5])
# calculate variance of values
variance = np.var(values)
In Python, we can calculate the variance of an array using the NumPy var()
function.
Variance
Lesson 1 of 2
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory