随笔分类 - 统计学
大数据的统计学基础
摘要:def Var(t, mu=None): """方差""" if mu is None: mu = Mean(t) # compute the squared deviations and return their mean. dev2 = [(x - mu)*...
阅读全文
摘要:面向小白的统计学:描述性统计(均值,中位数,众数,方差,标准差,与常见的统计图表)集中趋势:均值,中位数,众数离散程度:极差,方差,标准差常见统计图表:直方图,概率质量函数,箱线图,茎叶图赌博设计:概率的基本概念,古典概型
阅读全文
摘要:def Mode(t): """众数""" if not t: return None arr = __getfreq(t) if arr[0][0] == 1: return None else: for k, g in it...
阅读全文
摘要:def Median(t): """中位数""" arr = sorted(t) idx = (len(arr) - 1) / 2 if type(idx) is int: return arr[idx] if type(idx) is float: ...
阅读全文
摘要:def Mean(t): """均值""" return float(sum(t)) / len(t)
阅读全文

浙公网安备 33010602011771号