古典概型:
样本方差VS总体方差
试验 VS 随机试验
样本空间:所有可能结果的集合,简称为S
样本点:S中的每一种情况,简称为E
随机事件:样本点
基本事件:一个样本点的单点集
事件发生
必然事件
不可能事件
事件关系:包含,和,积事件,差事件,互斥事件,逆事件
事件运算定律:交换律,结合律,分配律
德摩根律
4. 几何概型:
将发生某种事件的概率转换为长度,面积或者体积
直方图,箱线图代码
import numpy as npimport matplotlib.pyplot as pltimport pandas as pdplayer_weight = [225, 232, 232, 245, 235, 245, 270, 225, 240, 240,217, 195, 225, 185, 200, 220, 200, 210, 271, 240,220, 230, 215, 252, 225, 220, 206, 185, 227, 236]plt.hist(player_weight, bins=5, range=[185, 271], normed=False, weights=None,cumulative=False, bottom=None, histtype='bar', align='mid',orientation='vertical', rwidth=None, log=False, color=None,label=None, stacked=False)df = pd.DataFrame(player_weight)df.plot.box(title="Player weight")plt.show()