AIC BIC Calculator
Calculate AIC, BIC and the conditional small-sample correction from a supplied log-likelihood.
Open toolCalculate discrete Shannon entropy in bits as −Σ p log₂(p). Provide Discrete probabilities to compute results directly in your browser. Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits.
Enter the inputs, then select Calculate.
Result will appear here
The Shannon Entropy Calculator evaluates Discrete probabilities in client-side JavaScript using the deterministic rule below and updates the output panel immediately without uploading data to a server.
Calculate discrete Shannon entropy in bits as −Σ p log₂(p).
Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits.
Review the input parameters, allowed value ranges, and worked reference cases for the Shannon Entropy Calculator below before running your calculation.
| Parameter / Scenario | Default / Sample Value | Rule or Allowed Range | Output / Usage Note |
|---|---|---|---|
| Input: Discrete probabilities | 0.5, 0.5 | Up to 100,000 characters; processed in this browser. | Required workspace parameter |
| Worked Case 1: Baseline run (Discrete probabilities = 0.5, 0.5) | Preloaded / test values | Calculate discrete Shannon entropy in bits as −Σ p log₂(p) | The starting example produces 1 bits. Calculate discrete Shannon entropy in bits as −Σ p log₂(p). |
| Worked Case 2: Comparison scenario (Comparison discrete probabilities check) | Preloaded / test values | Calculate discrete Shannon entropy in bits as −Σ p log₂(p) | Read the labels for discrete probabilities. Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. |
Follow these three steps to configure Discrete probabilities, verify unit and boundary rules, and export your Shannon Entropy Calculator output.
Start by entering Discrete probabilities in the workspace. The calculator preloads a baseline value so you can immediately inspect the expected input format.
Supply format & boundary constraints and confirm that your values satisfy the operational rule (Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits). Out-of-range or invalid entries trigger an immediate validation message.
Run the Shannon Entropy Calculator to generate the result in real time. Use the Copy or Download actions to save the output for spreadsheets, engineering notes, or code documentation.
These concrete scenarios illustrate how the Shannon Entropy Calculator processes baseline inputs, comparison checks, and boundary constraints.
The starting example produces 1 bits. Calculate discrete Shannon entropy in bits as −Σ p log₂(p).

Read the labels for discrete probabilities. Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion.

When solving for 'shannon entropy calculator', verify that Discrete probabilities use consistent units and stay within the documented scope: Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits.

The output panel reports the exact result derived from Discrete probabilities alongside any unit or formatting notes.
Every calculation follows the rule: Calculate discrete Shannon entropy in bits as −Σ p log₂(p). Because JavaScript uses IEEE 754 double-precision floating-point arithmetic, numeric outputs display up to 12 significant digits where applicable.
Always cross-check the displayed result against the scope note (Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits) before applying the value to production specifications, financial models, or lab records.

Review these boundary constraints and validation rules before relying on the Shannon Entropy Calculator output.
Operational scope: Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits. Inputs that violate minimum/maximum bounds or required format rules are rejected with a clear diagnostic prompt.
Need an adjacent calculation in Everyday Math? Use the related tools linked below to chain your workflow without leaving your browser.

Calculate AIC, BIC and the conditional small-sample correction from a supplied log-likelihood.
Open toolCalculate two plane-wave acoustic impedances and a normal-incidence intensity reflection coefficient.
Open tool
Calculate how much water to add and total final volume when diluting spirits or alcohol from initial ABV to target ABV.
Open toolChoose another tool for your next calculation, conversion, or text task.

Find shear modulus as shear stress divided by shear strain.
Open tool
Find the equal clear gaps around interior shelf boards.
Open tool
Calculate flat ring area A = π(R² − r²) with this annulus area calculator and area of a ring calculator from outer and inner radii, diameters, or thickness.
Open tool
Calculate aquarium water volume in US gallons and liters, substrate displacement, and filled water weight from interior tank dimensions.
Open toolAnswers about using Shannon Entropy Calculator and understanding its results.
The Shannon Entropy Calculator applies the rule: Calculate discrete Shannon entropy in bits as −Σ p log₂(p). Enter Discrete probabilities into the workspace and the tool computes the exact output in your browser.
Yes. Provide Discrete probabilities using the documented units and format shown in the quick reference table above. Preloaded default values let you test the workflow immediately.
Use 1-1,000 comma- or whitespace-separated numbers, each with magnitude at most 1 billion. Probabilities in [0,1] must sum to one within 10⁻⁹. Zero terms contribute zero. Inputs and results use floating-point numbers and may be rounded. Results show up to 12 significant digits. Confirm that your inputs fall within the allowed ranges before exporting the result.
Yes. All calculations for the Shannon Entropy Calculator execute 100% locally in your browser's JavaScript runtime. No inputs or results are uploaded to any external server.
Choose another tool for your next calculation, conversion, or text task.