📊 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
⚠️ 使用说明与注意事项