How to use this tool
- Enter category counts.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Category counts | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | 10, 10, 10, 10 |
Result for these sample inputs
2
- Units
- bits
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Normalize counts to probabilities and compute H=−Σp log₂p, with zero-count terms contributing zero.
Using category counts = 10, 10, 10, 10, the result is 2. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
Categories must be mutually exclusive. Entropy measures distribution uncertainty; it does not certify password security or randomness. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.
Methodology maintained by ClarityKit. How these tools are built and checked.