Computing means
The mean of all measurements gives an indication of the typical magnitude of a measurement. It is computed using np.mean().
Latihan ini adalah bagian dari kursus
Statistical Thinking in Python (Part 1)
Petunjuk latihan
- Compute the mean petal length of Iris versicolor from Anderson's classic data set. The variable
versicolor_petal_lengthis provided in your namespace. Assign the mean tomean_length_vers. - Hit submit to print the result.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Compute the mean: mean_length_vers
# Print the result with some nice formatting
print('I. versicolor:', mean_length_vers, 'cm')