香農熵計算機
數學計算機H=−Σp·log₂p,資訊含量與分布熵計算
答案速覽
Shannon Entropy Calculator: H=−Σp·log₂p · information content · distribution entropy. Shannon Entropy Calculator uses standard math formulas to compute accurate results instantly.
How it works
- 1H=−Σpᵢ·log₂pᵢ in bits
- 2Enter a probability distribution (comma/space separated, sums to ~1)
- 3Uniform is maximal at log₂n; certainty gives 0
- 40·log0 is defined as 0 (contributes nothing)
Probability distribution
Shannon entropy1.500bits
Uniform entropy (same n):1.585 bits
Sum of probabilities:1.000
Entropy measures average uncertainty: a coin flip is 1 bit, a die ~2.585 bits, a d32 exactly 5 bits. Information gain = parent entropy − weighted child entropy — the decision-tree split criterion. It also bounds lossless compression: any code needs ≥H bits per symbol on average, with Huffman/arithmetic coding approaching it. Sums deviating >5% from 1 are rejected.
這個工具對你有幫助嗎?
怎麼用
- Enter values or expressions: type directly into the Shannon Entropy Calculator — keyboard friendly.
- Instant results: everything computes live as you type, no button needed.
- Follow the steps: the result panel shows full working and formula substitution.
- Copy or recompute: one-click copy; change any input to recalculate instantly.
核心要點
- Shannon Entropy Calculator is a free online math tool — open and use, no sign-up.
- All calculations run locally in your browser; your data never leaves the device.
- Key capability: H=−Σp·log₂p · information content · distribution entropy.
- Results come with formulas and reference tables so you can verify every number.
原理與公式
Shannon Entropy Calculator formula
Shannon Entropy Calculator uses standard math formulas to compute accurate results instantly.
常見問題
How do I use the Shannon Entropy Calculator?
Open the page and fill in the input fields — results update automatically. H=−Σp·log₂p · information content · distribution entropy.
Are the results accurate?
Yes. All calculations use standard mathematical formulas and are verified for accuracy.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required — just open and use.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. All calculations run locally in your browser. Nothing is uploaded or stored.
相關工具
相關指南
來源與更新
Standard mathematical formulas. All logic verified. Last updated: 2025-07
最近更新:
本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。
內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.
引用本頁: YiJianSuan. 香農熵計算機[EB/OL]. https://www.yijiansuan.com/zh-TW/c/math/shannon-entropy
本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。