MATH 314 Quiz 05
Given on 2025-09-18
-
Write a Python function that accepts a Numpy array (type
ndarray
) and calculates the variance using for loop(s); you can not use the numpy functionsnp.mean
nornp.var
. Recall the formula for the variance (of data) iswhere
. -
Generate a numpy array of random numbers. Call your function on this array.
-
Use the numpy function
np.var(...)
to check your answer.