📊 Palm Size vs Height Correlation
Enter palm length and height samples to compute the correlation coefficient and judge how strong the relationship is. A light-hearted statistics demo.
📐 工作原理與說明
分別錄入手掌長度與身高兩組一一對應的資料,計算皮爾遜相關係數 r、決定係數 R² 與一元線性迴歸方程,用於判斷掌長與身高的線性相關強度;資料僅在瀏覽器本地處理,不上傳。
r = Σ(xᵢ−x̄)(yᵢ−ȳ) / √(Σ(xᵢ−x̄)² · Σ(yᵢ−ȳ)²) · 迴歸:身高 = a + b × 掌長,b = Σ(xᵢ−x̄)(yᵢ−ȳ) / Σ(xᵢ−x̄)²
📚 深度解析:掌長-身高相關性(趣味統計)
💡 常見使用場景
- 統計學教學演示
- 趣味資料觀察
- 科普相關係數含義
方法
輸入若干樣本的手掌長與身高,計算 Pearson 相關係數 r∈[-1,1]:|r|≥0.8 強、0.5~0.8 中、0.3~0.5 弱、<0.3 極弱;r>0 正相關的趨勢。
算例(演示)
5 人樣本 掌長(cm)/身高(cm):(17,163)(18,170)(19,176)(16,160)(20,180) → 均值(18,169.8),Σdx·dy=53、Σdx²=10、Σdy²=284.8,r=53/√2848≈0.99 強正相關。屬演示,非醫學結論。
❓ 常見問題(FAQ)
- 相關能說明因果嗎?
- 不能。相關係數只衡量線性關聯強度,不代表掌長決定身高,僅供參考。
- 樣本多少才穩?
- 樣本越小偶然性越大;教學演示 5~10 個即可看趨勢,結論勿外推。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Correlation coefficient | the Pearson coefficient spans minus one to one for linear association | Statistical practice |
| Strength reading | below 0.3 very weak, 0.3–0.5 weak, 0.5–0.8 moderate, above 0.8 strong | Statistical practice |
| Causation | correlation is not causation and needs controls or experiments | Statistical practice |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準