Tuesday, October 7, 2025
HomeLanguagesPython | Numpy matrix.std()

Python | Numpy matrix.std()

With the help of matrix.std() method, we are able to find the standard deviation a matrix by using the same method.

Syntax : matrix.std()
Return : Return standard deviation of a matrix

Example #1 :
In this example we are able to find the standard deviation of a matrix by using matrix.std() method.




# import the important module in python
import numpy as np
             
# make matrix with numpy
gfg = np.matrix('[4, 1; 12, 3]')
             
# applying matrix.std() method
geek = gfg.std()
   
print(geek)


Output:

4.18330013267

Example #2 :




# import the important module in python
import numpy as np
             
# make matrix with numpy
gfg = np.matrix('[4, 1, 9; 12, 3, 1; 4, 5, 6]')
             
# applying matrix.std() method
geek = gfg.std()
   
print(geek)


Output:

3.3993463424
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32339 POSTS0 COMMENTS
Milvus
86 POSTS0 COMMENTS
Nango Kala
6708 POSTS0 COMMENTS
Nicole Veronica
11872 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11936 POSTS0 COMMENTS
Shaida Kate Naidoo
6827 POSTS0 COMMENTS
Ted Musemwa
7090 POSTS0 COMMENTS
Thapelo Manthata
6780 POSTS0 COMMENTS
Umr Jansen
6784 POSTS0 COMMENTS