python使用scipy.stats數據(正態)分佈檢驗方法

對數據進行建模處理時,常須要進行數據分佈檢驗;python import numpy as np from scipy import stats a = np.random.normal(0,1,50) '''輸出結果中第一個爲統計量,第二個爲P值(統計量越接近1越代表數據和正態分佈擬合的好, P值大於指定的顯著性水平,接受原假設,認爲樣原本自服從正態分佈的整體)''' print(stats.
相關文章
相關標籤/搜索