🔍

首页Home › 数学工具Math

📏 组距计算器(含斯特奇斯组数与频数表)Class Width Calculator (with Sturges Classes & Frequency Table)

由最小值、最大值和组数算组距 =(最大 − 最小)÷ 组数并向上取整;也可粘贴原始数据,自动取最值,未填组数时按斯特奇斯公式 k = ⌈1 + log₂n⌉ 定组数,并列出各组区间和频数。本地处理。Class width = (max − min) ÷ number of classes, rounded up. Or paste the raw data: the min and max are taken from it, the number of classes defaults to the Sturges rule k = ⌈1 + log₂n⌉, and every class interval is listed with its frequency. Processed locally.

使用说明与常见问题How-to & FAQ

「组距计算器(含斯特奇斯组数与频数表)」是什么?What is the Class Width Calculator (with Sturges Classes & Frequency Table) tool?

由最小值、最大值和组数算组距 =(最大 − 最小)÷ 组数并向上取整;也可粘贴原始数据,自动取最值,未填组数时按斯特奇斯公式 k = ⌈1 + log₂n⌉ 定组数,并列出各组区间和频数。本地处理。Class width = (max − min) ÷ number of classes, rounded up. Or paste the raw data: the min and max are taken from it, the number of classes defaults to the Sturges rule k = ⌈1 + log₂n⌉, and every class interval is listed with its frequency. Processed locally.

如何使用「组距计算器(含斯特奇斯组数与频数表)」?How do I use the Class Width Calculator (with Sturges Classes & Frequency Table) tool?

在「组距计算器(含斯特奇斯组数与频数表)」中,填写「原始数据(可选,空格或逗号分隔)」、「最小值」、「最大值」、「组数(可选,有数据时默认用斯特奇斯公式)」、「组距向上取整到」等参数,结果会随输入实时计算并显示在下方。In the Class Width Calculator (with Sturges Classes & Frequency Table): Fill in "Raw data (optional, spaces or commas)", "Minimum", "Maximum", "Number of classes (optional with data: Sturges rule)", "Round the width up to"; results are recalculated instantly as you type.

组距怎么算?How is the class width found?

组距 =(最大值 − 最小值)÷ 组数,然后向上取整到方便的数(整数、0.1 等)。例如数据从 0 到 99,分 10 组,9.9 向上取整为 10。向上而不是四舍五入,是为了让所有数据都落在这些组里。Class width = (maximum − minimum) ÷ number of classes, then rounded up to a convenient value (a whole number, 0.1 and so on). Data from 0 to 99 in 10 classes gives 9.9, rounded up to 10. It is rounded up rather than to the nearest value so every data point fits in a class.

分几组合适?How many classes should I use?

常用斯特奇斯公式 k = ⌈1 + log₂n⌉,n 是数据个数:20 个数据约 6 组,100 个约 8 组。一般 5–20 组比较合适,数据很多或分布偏斜时可以多分几组。The Sturges rule k = ⌈1 + log₂n⌉ is common, with n the number of values: about 6 classes for 20 values and 8 for 100. Between 5 and 20 classes usually works; use more for large or skewed data sets.

区间端点怎么算?How are the class limits handled?

每一组包含下限、不含上限,例如 [0, 10) 含 0 不含 10;最后一组包含上限,所以最大值一定被计入。Each class includes its lower limit and excludes its upper one, so [0, 10) contains 0 but not 10. The last class includes its upper limit, so the maximum is always counted.

能举个计算实例吗?Can you show a worked example?

例如在「组距计算器(含斯特奇斯组数与频数表)」中填 最小值 = 0,最大值 = 100,组数(可选,有数据时默认用斯特奇斯公式) = 10,组距向上取整到 = 整数,结果区显示:极差(最大 − 最小):100;组数 k:10 (你填写的);未取整组距:10;组距:10;ℹ 组距 = 极差 ÷ 组数,向上取整,保证最大值落在最后一组(最后一组含上限)For example, entering Minimum = 0, Maximum = 100, Number of classes (optional with data: Sturges rule) = 10, Round the width up to = whole number in the Class Width Calculator (with Sturges Classes & Frequency Table) gives: Range (max − min): 100; Number of classes k: 10 (your choice); Unrounded width: 10; Class width: 10; ℹ width = range ÷ classes, rounded up so the maximum falls in the last class (the last class includes its upper limit)

哪些输入会被检查?Which inputs are validated?

「组距计算器(含斯特奇斯组数与频数表)」会检查这些输入——「最小值」、「最大值」:可留空;「组数(可选,有数据时默认用斯特奇斯公式)」:须为整数;绝对值超过 10¹⁵ 的数也会被拒绝。不符合时结果区显示具体提示,不会给出数字。The Class Width Calculator (with Sturges Classes & Frequency Table) checks its inputs — "Minimum", "Maximum": optional; "Number of classes (optional with data: Sturges rule)": must be a whole number; numbers above 10¹⁵ in absolute value are rejected too. When a value fails, the result area names the problem instead of showing a number.

有哪些选项可以调整?What options can I adjust?

「组距计算器(含斯特奇斯组数与频数表)」的设置:「原始数据(可选,空格或逗号分隔)」可留空;「最小值」默认 0;「最大值」默认 100;「组数(可选,有数据时默认用斯特奇斯公式)」默认 10;「组距向上取整到」可选 整数、0.1、0.01、不取整(默认 整数)。每次生成结果都按当前设置处理。Settings in the Class Width Calculator (with Sturges Classes & Frequency Table) — "Raw data (optional, spaces or commas)" optional; "Minimum" default 0; "Maximum" default 100; "Number of classes (optional with data: Sturges rule)" default 10; "Round the width up to": whole number, 0.1, 0.01, no rounding (default whole number). The result always uses the current settings.

计算精度如何?How precise are the results?

「组距计算器(含斯特奇斯组数与频数表)」使用 JavaScript 双精度浮点数(约 15–16 位有效数字);极大或极小的数值可能存在精度误差。The Class Width Calculator (with Sturges Classes & Frequency Table) uses double-precision floating point (about 15–16 significant digits); very large or very small values may lose precision.

「组距计算器(含斯特奇斯组数与频数表)」免费吗?需要注册吗?Is the Class Width Calculator (with Sturges Classes & Frequency Table) free? Do I need an account?

「组距计算器(含斯特奇斯组数与频数表)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Class Width Calculator (with Sturges Classes & Frequency Table) is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

p̂ 样本比例 p̂ 计算器(标准误与置信区间)P-Hat Calculator (Sample Proportion, Standard Error & Confidence Interval)% 百分等级计算器(由数据或人数)Percentile Rank Calculator (from Data or Counts)🎯 准确率计算器(混淆矩阵与测量误差)Accuracy Calculator (Confusion Matrix & Measurement Error)eˣ 指数函数计算器(求值、反解 x、两点拟合)Exponential Function Calculator (Evaluate, Solve for x, Fit Two Points)Binomial 二项分布计算器(单点、累积概率与分布表)Binomial Distribution Calculator (Exact, Cumulative & Table)AVG% 平均百分比计算器(简单平均与加权平均)Average Percentage Calculator (Simple & Weighted)⁻¹ 模逆元计算器(扩展欧几里得,支持大整数)Modular Inverse Calculator (Extended Euclid, Big Integers)◯ 单位圆计算器(六个三角函数、精确值、象限)Unit Circle Calculator (Six Trig Functions, Exact Values, Quadrant)⊙ 圆的方程计算器(标准式、一般式互化)Equation of a Circle Calculator (Standard & General Form)Δ 绝对变化计算器(含相对变化与倍数)Absolute Change Calculator (with Relative Change & Ratio)∠ 两向量夹角计算器(二维/三维)Angle Between Two Vectors Calculator (2D/3D)R² 决定系数 R² 计算器(数据拟合或 SS)Coefficient of Determination (R²) Calculator (from Data or SS)

← 全部工具All tools