Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- from scipy import stats
- in_list = list(map(float, input().split(' ')))
- arr = np.array(in_list, dtype=float)
- k2, p = stats.normaltest(arr)
- threshold = 0.05
- print(p)
- if p > threshold:
- print("Нормальное распределение")
- else:
- print("Не нормальное распределение")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement