MATH 314 Quiz 04

Given on 2025-09-16

  1. Write a Python function that accepts a Numpy array (type ndarray) and calculates a mean using a for loop (and not the function np.mean). Recall the formula for the mean (of data) is

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

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