Data Scientist mdancho Breaks Down P-Values in Regression: Hypotheses to t-Test in 10 Steps
mdancho84 · x · 2026-11-28
Data science educator mdancho posted a tutorial thread explaining how p-values work in regression models, complete with formula walkthroughs and real statsmodels OLS output.
Key points covered:
- Null (H₀) vs alternative hypothesis (H₁): H₀ assumes the predictor has no effect; H₁ is what you test for.
- Coefficient estimate β and standard error (SE): β captures the per-unit effect of a predictor holding others constant; smaller SE means a more precise estimate.
- Test statistic: t = coefficient / SE; degrees of freedom = observations minus estimated parameters (including intercept).
- P-value calculation: compare t to a t-distribution (two-tailed); a small p-value (typically ≤ 0.05) indicates the predictor contributes significantly to the model.
The accompanying infographic works through a concrete example (coefficient 0.9207, SE 0.8104, t = 1.136, p = 0.1375), visualizes rejection regions on the t-distribution, and maps them to a real OLS results table.
Related event: Data Scientist Explains P-Values in Regression Models with Visual Guide(2 posts)→
More from Research
- Fine-tuned 230M model ties Qwen3.5-35B-A3B on 3-turn SQLite agent benchmark — ConfidentDinner6648 · 2026-11-28
- NeurIPS 2026 draws over 30,000 submissions, up 42% YoY and roughly 13x in a decade — luismbat · 2026-11-28
- iamtrask: the Platonic Representation Hypothesis means mechanistic interpretability is solvable — iamtrask · 2026-11-28
- iamtrask: the hypothesis tames recursive self-improvement risk — intelligence is finite — iamtrask · 2026-11-28
- iamtrask: reusing trained neurons should spark a near-term AI capability spike — iamtrask · 2026-11-28
- AMP1 robot trials hit 96.3% success across 12 real-world tasks vs 27.8% for π0.5 — Rewkang · 2026-11-28