Advertisement
Fhernd

estadisticas-arreglo.py

Feb 14th, 2018
844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import numpy as np
  2.  
  3.  
  4. arreglo_primos = np.array([2, 3, 7, 19, 23])
  5.  
  6. # Promedio:
  7. print(np.mean(arreglo_primos))
  8. print('')
  9.  
  10. # Mediana:
  11. print(np.median(arreglo_primos))
  12. print('')
  13.  
  14. # Varianza:
  15. print(np.var(arreglo_primos))
  16. print('')
  17.  
  18. # Desviación estándar:
  19. print(np.mean(arreglo_primos))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement