codecamp

Statistics - Arithmetic Mode of Individual Series

当数据基于个体给出时。 以下是单个系列的示例:

项目 5 10 20 30 40 50 60 70

在单个项目的情况下,计数每个值出现的次数,并且重复的最大次数的值是模态值。

例子

问题陈述:

计算以下各个数据的算术模式:

项目 14 36 45 36 105 36

解决方案:

给定数字的算术模式为36,因为它重复最大次数3。


Statistics - Arithmetic Median of Continous Series
Statistics - Arithmetic Mode of Discrete Series
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Statistics Tutorial

Statistics Useful Resources

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }