MATH 314 Quiz 05

Given on 2025-09-18

  1. 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 functions np.mean nor np.var. Recall the formula for the variance (of data) is

    where .

  2. Generate a numpy array of random numbers. Call your function on this array.

  3. Use the numpy function np.var(...) to check your answer.