中位数与众数计算器 Median & Mode Calculator
输入一组数据(支持逗号、空格、换行混合分隔),一键计算 中位数(Median) 与 众数(Mode),并给出样本量与数据清洗情况。
Paste a dataset (comma/space/newline separated) to calculate median and mode, with basic cleaning and summary.
1. 输入数据 · Dataset
3. 使用说明 · Notes
-
中位数(Median)是什么?
中位数是“把数据按从小到大排序后位于中间的值”。它对极端值(outliers)不太敏感,常用于收入、房价、成交价等“右偏分布”的数据描述。
What is the median? It is the middle value after sorting. It is less sensitive to outliers, which makes it useful for skewed distributions (e.g., income, housing prices). -
奇数/偶数个数据时如何取中位数?
若样本量为奇数,取正中间那一个;若为偶数,则取中间两个数的平均值。
Odd vs even count: if count is odd, take the center value; if even, take the average of the two middle values. -
众数(Mode)是什么?可能不止一个吗?
众数是“出现次数最多的值”。当多个值并列最高频时,就会出现多众数(multi-modal)。本工具可选择输出全部众数,或只输出一个(按最小值取一个)。
What is the mode? It is the most frequent value. If several values tie for the highest frequency, the dataset is multi-modal. You can return all modes or only one (smallest). -
什么时候“没有众数”?
若每个值都只出现 1 次,那么严格意义上“无众数”(No mode)。有些教材会把这种情况称为“没有明显众数”。本工具会明确显示:无众数 / No mode。
When there is no mode: if every value occurs exactly once, there is no mode in the strict sense. -
数据清洗(Cleaning)规则说明
你可以直接粘贴 Excel/表格的一列数据;如果里面混有单位、文字或空白行,本工具可按选项自动忽略(例如 “12kg”、空行等)。
Cleaning rules: you can paste a column from Excel. Tokens with units/text or blank lines can be ignored based on options. -
分隔符怎么写最稳?
推荐:用逗号,或换行最清晰;也支持空格、制表符(Tab)混合输入。
Separators: comma or newline is recommended; spaces and tabs are also supported. -
结果显示的小数位数怎么选?
如果你的数据是整数,保留 0 或 1 位就够;如果是测量数据(如价格、温度),可以保留 2~4 位;科学计算可选 6 位。
Decimals: integers often need 0–1 digits; measurements typically 2–4; scientific contexts may use 6. -
注意事项 / Disclaimer
本工具仅做统计学习与快速计算参考,不替代严谨的数据分析流程(如异常值处理、缺失值策略、分组统计等)。当数据量很大时,建议结合专业工具(Excel、Python、R)进一步分析。
This tool is for learning and quick estimation only. For large datasets or production analysis, consider using Excel/Python/R with proper missing/outlier handling.
小提示:如果你想同时看 平均数(Mean)、标准差(Std Dev)、分位数(Quartiles),
我也可以按同款风格给你继续扩展成一个 “Descriptive Statistics Calculator|描述统计计算器”。
Tip: If you want mean / standard deviation / quartiles too, I can extend this into a full descriptive statistics calculator in the same style.
