Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy
- random_numbers = [54,23,12,66,59,92,14,92,34,20,59,20,10] #you can make these numbers any random choice of numbers you want
- r_n = numpy.mean(random_numbers)
- print(r_n)
- #finding out the mean
- from scipy import stats
- random_numbers = [54,23,12,66,59,92,14,92,34,20,59,20,10] #you can make these numbers any random choice of numbers you want
- r_n = stats.mode(random_numbers)
- print(r_n)
- #finding out the number that comes up the most
- import numpy
- random_numbers = [54,23,12,66,59,92,14,92,34,20,59,20,10] #you can make these numbers any random choice of numbers you want
- r_n = numpy.std(random_numbers)
- print(r_n)
- #finding out standard deviation
- import numpy
- random_numbers = [54,23,12,66,59,92,14,92,34,20,59,20,10] #you can make these numbers any random choice of numbers you want
- r_n = numpy.var(random_numbers)
- print(r_n)
- #finding out standard variation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement