統計#

順序統計#

ptp(a[, axis, out, keepdims])

沿著軸的值範圍 (最大值 - 最小值)。

percentile(a, q[, axis, out, ...])

計算沿指定軸的資料的 q-th 百分位數。

nanpercentile(a, q[, axis, out, ...])

計算沿指定軸的資料的 q 百分位數,同時忽略 nan 值。

quantile(a, q[, axis, out, overwrite_input, ...])

計算沿指定軸的資料的 q-th 四分位數。

nanquantile(a, q[, axis, out, ...])

計算沿指定軸的資料的 q 四分位數,同時忽略 nan 值。

平均值和變異數#

median(a[, axis, out, overwrite_input, keepdims])

計算沿指定軸的中位數。

average(a[, axis, weights, returned, keepdims])

計算沿指定軸的加權平均值。

mean(a[, axis, dtype, out, keepdims, where])

計算沿指定軸的算術平均值。

std(a[, axis, dtype, out, ddof, keepdims, ...])

計算沿指定軸的標準差。

var(a[, axis, dtype, out, ddof, keepdims, ...])

計算沿指定軸的變異數。

nanmedian(a[, axis, out, overwrite_input, ...])

計算沿指定軸的中位數,同時忽略 NaN 值。

nanmean(a[, axis, dtype, out, keepdims, where])

計算沿指定軸的算術平均值,忽略 NaN 值。

nanstd(a[, axis, dtype, out, ddof, ...])

計算沿指定軸的標準差,同時忽略 NaN 值。

nanvar(a[, axis, dtype, out, ddof, ...])

計算沿指定軸的變異數,同時忽略 NaN 值。

相關性#

corrcoef(x[, y, rowvar, bias, ddof, dtype])

返回皮爾森乘積矩相關係數。

correlate(a, v[, mode])

兩個 1 維序列的交叉相關。

cov(m[, y, rowvar, bias, ddof, fweights, ...])

估計共變異數矩陣,給定資料和權重。

直方圖#

histogram(a[, bins, range, density, weights])

計算資料集的直方圖。

histogram2d(x, y[, bins, range, density, ...])

計算兩個資料樣本的二維直方圖。

histogramdd(sample[, bins, range, density, ...])

計算一些資料的多維直方圖。

bincount(x, /[, weights, minlength])

計算非負整數陣列中每個值出現的次數。

histogram_bin_edges(a[, bins, range, weights])

僅計算 histogram 函數使用的 bin 邊緣的函數。

digitize(x, bins[, right])

返回輸入陣列中每個值所屬的 bin 的索引。