LoginSignup
7
8

More than 5 years have passed since last update.

Pythonの標準ライブラリstatisticsで出来ること

Last updated at Posted at 2015-06-16

statisticsライブラリ

Python 3.4から組み込まれた、基本統計量を計算するためのライブラリ

出来ること

関数 機能
mean 算術平均を求める
median 中央値を求める
median_low データ数が偶数の場合、中央の2値の小さい方を求める
median_high データ数が偶数の場合、中央の2値の大きい方を求める
median_grouped 区間を用いてグループ化されたデータから中央値を求める
mode 最頻値を求める
pvariance 母標準偏差を求める
variance 標本標準偏差を求める
pstdev 母分散を求める
stdev 標本分散を求める

使い方

各関数の引数に、実数のリストやイテレータを指定するだけ。

参照

9.7. statistics - Mathematical statistics functions

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8