Statistical Operations on Numpy arrays

We can perform statistical operations, like mean, median, and standard deviation on NumPy arrays. Let’s see them one by one:

  • Mean
  • Median
  • Standard Deviation

Mean

Mean is the average of the given values. Here, we will find the mean of the array elements using the mean() method.

Let us see an example:

Output

Median

Median is the middle value of the given values. Here, we will find the median of the array elements using the median() method.

Let us see an example:

Output

Standard Deviation

Standard Deviation is a measure of the amount of variation or dispersion of the given values. Here, we will find the standard deviation of the array elements using the std() method.

Let us see an example:

Output

If you liked the tutorial, spread the word and share the link and our website Studyopedia with others:

For Videos, Join Our YouTube Channel: Join Now


Read More:

Scalar operations on Numpy arrays
Random module in Numpy
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading