Skip to content
Academic Template6 columns · 4 sample rows· Updated

Hypothesis Testing & Statistical Analysis Markdown Table Template

A hypothesis testing summary table puts several inferential results side by side: what was tested, how much data supported it, the test statistic with its degrees of freedom, the p-value, and the conclusion. It is the table at the top of a results section, the summary slide of an A/B test review, or the appendix that lets a reviewer check your arithmetic without rerunning the analysis.

Edit This Template

Edit cells, add rows, or sort — the Markdown updates live
Row
1
1,000
t = 14.82
`< 0.001`
Reject $H_0$ (Statistically significant)
2
5,400
t = 1.12
0.263
3
2,800
t = -4.31
`< 0.001`
Reject $H_0$ (Bounce reduced significantly)
4
850
χ² = 28.6
`< 0.001`
Reject $H_0$ (Exception rate reduced significantly)
Output
| Tested Hypothesis                                                               | Sample (N) | Degrees of Freedom | Test Statistic |       p-Value | Empirical Conclusion                                    |
| :------------------------------------------------------------------------------ | ---------: | -----------------: | -------------: | ------------: | :------------------------------------------------------ |
| R1: Parser v2 reduces CPU latency vs v1                                         |    `1,000` |                998 |    `t = 14.82` | **`< 0.001`** | **Reject $H_0$** (Statistically significant)            |
| R2: Dark mode increases time-on-page                                            |    `5,400` |              5,398 |     `t = 1.12` |       `0.263` | Fail to reject $H_0$ (No significant difference)        |
| R3: Mobile layout reduces bounce rate                                           |    `2,800` |              2,798 |    `t = -4.31` | **`< 0.001`** | **Reject $H_0$** (Bounce reduced significantly)         |
| R4: Escaped-pipe fix lowers parser exception incidence (2×2: build × exception) |      `850` |                  1 |    `χ² = 28.6` | **`< 0.001`** | **Reject $H_0$** (Exception rate reduced significantly) |
4 rows × 6 columns
Rendered Preview
Tested HypothesisSample (N)Degrees of FreedomTest Statisticp-ValueEmpirical Conclusion
R1: Parser v2 reduces CPU latency vs v11,000998t = 14.82`< 0.001`Reject $H_0$ (Statistically significant)
R2: Dark mode increases time-on-page5,4005,398t = 1.120.263Fail to reject $H_0$ (No significant difference)
R3: Mobile layout reduces bounce rate2,8002,798t = -4.31`< 0.001`Reject $H_0$ (Bounce reduced significantly)
R4: Escaped-pipe fix lowers parser exception incidence (2×2: build × exception)8501χ² = 28.6`< 0.001`Reject $H_0$ (Exception rate reduced significantly)

When to Use This Table

The readers are colleagues deciding whether to ship a change, reviewers judging whether conclusions follow from the evidence, and future analysts trying to reproduce the numbers. Each row should let them reconstruct the test: the statistic and degrees of freedom together identify the reference distribution, and the sample size tells them how much a small effect could have driven a tiny p-value. Without those columns, a p-value is just a number to take on trust.

A careful table states the significance level before the results, uses language that matches what a test can show — “fail to reject”, never “proved no effect” — and pairs significance with an effect size or confidence interval so readers can judge practical importance. A careless one bolds every p below 0.05, runs a dozen tests without adjusting for multiplicity, and labels rows $H_1$, $H_2$ in a way that collides with the standard null and alternative notation.

Formatting This Table in Markdown

A hypothesis testing & statistical analysis table puts a few things in cells that Markdown treats as syntax. These are the ones to watch so it renders correctly on GitHub, GitLab, Obsidian and docs sites.

  • Significance stars can italicize text between them

    A trailing * after a number renders literally, but an opening * and a later closing * in the same cell or paragraph turn the text between them italic, and a note line that starts with * becomes a bullet. Escape stars as \*, or use daggers (†, ‡) or a separate significance column instead of * and **.

  • Keep inequalities in code spans

    A < followed by a space or digit is plain text, as in < 0.001, but a < followed by an ASCII letter can open an HTML tag: in n<m and k>2 the text between the angle brackets can be swallowed. Code spans, as in the p-value column here, remove the risk, and bold can wrap around them.

  • Unicode or LaTeX for H₀, χ² and α: choose one

    This table mixes $H_0$ math with Unicode such as χ². Where math is not rendered, $H_0$ shows its dollar signs, while H₀, χ², α and ± display everywhere; use math only if every target renders it, as covered in math in tables.

  • Format every value in a numeric column the same way

    Here Sample (N) sits in code spans (monospace) while degrees of freedom are plain text, so digits of the same column use different fonts. Use code spans for a whole column or for none of it, and report p-values to a fixed number of decimals so right-aligned digits stay level.

What Goes in Each Column

ColumnAlignmentWhat to put here
Tested Hypothesisleft :---The alternative hypothesis in plain words, including direction if the test was one-sided (“v2 reduces latency”). Use row labels like R1, R2 rather than H₁, which conventionally means “the alternative hypothesis”. Left-aligned as prose.
Sample (N)right ---:Total observations entering the test, with thousands separators. For two-group tests, give the split as well (500 / 500), since unequal groups change both the degrees of freedom and the power. Right-aligned as a count.
Degrees of Freedomright ---:The df that defines the reference distribution: n₁ + n₂ − 2 for a pooled two-sample t-test, a non-integer for Welch’s test, (r − 1)(c − 1) for a chi-square contingency test, and two values for F. Right-aligned.
Test Statisticright ---:The symbol and value to two decimals, in a code span or inline math: t = 14.82, F(2, 297) = 5.31, χ² = 28.6. Keep the sign for t and z, because it shows the direction of the effect. Right-aligned.
p-Valueright ---:Exact values to two or three decimals (0.263), or < 0.001 when smaller. Never write p = 0.000. Right-aligned so magnitudes compare, and state whether it is one- or two-sided in a note under the table.
Empirical Conclusionleft :---The decision against the pre-set α, phrased as “Reject H₀” or “Fail to reject H₀”, followed by the substantive meaning and ideally the effect size. Bold only the decision, not the whole sentence, to keep the emphasis meaningful.

How to Fill It In

  1. 1Write down α, the test for each hypothesis, and one- versus two-sided before looking at the data, ideally in a pre-registration or experiment plan. Copy those choices into a sentence above the table.
  2. 2Run each test in your statistics package and copy the statistic, df, and p-value straight from the output. Do not round intermediate values; round only when entering them in the table.
  3. 3Check the df against the design: a mismatch (for example, N − 2 reported for a chi-square test) is a fast way to spot that the wrong test or the wrong output line was copied.
  4. 4If you ran several tests, apply a multiple-comparison correction such as Holm or Bonferroni and report adjusted decisions. Say which method you used.
  5. 5Add effect sizes and confidence intervals, either as extra columns or in a companion table, and have someone else reproduce one row from the raw data before publishing.

Ready-to-Paste Variations

Which degrees of freedom go with which test

A lookup for the Degrees of Freedom column. Use it to sanity-check output before it goes into a results table.

| Test | Statistic | Degrees of freedom |
| :--- | :---: | :--- |
| Two-sample t (pooled variance) | t | n₁ + n₂ − 2 |
| Welch’s t (unequal variances) | t | Welch–Satterthwaite estimate, usually non-integer |
| Paired t | t | n − 1 (number of pairs minus one) |
| One-way ANOVA, k groups | F | k − 1 and N − k |
| Chi-square test of independence | χ² | (rows − 1) × (columns − 1) |
| Pearson correlation | t | n − 2 |

Holm-adjusted decisions for several tests

Applies the Holm step-down procedure at α = 0.05 to the four results in the template. Sorted p-values are compared with α ÷ (m − rank + 1).

| Rank | Result | Raw p | Holm threshold | Decision |
| :---: | :--- | ---: | ---: | :--- |
| 1 | R1: Parser v2 latency | < 0.001 | 0.0125 | **Reject H₀** |
| 2 | R3: Mobile bounce rate | < 0.001 | 0.0167 | **Reject H₀** |
| 3 | R4: Pipe-bug incidence | < 0.001 | 0.025 | **Reject H₀** |
| 4 | R2: Dark mode time-on-page | 0.263 | 0.05 | Fail to reject H₀ |

A/B test with difference and confidence interval

Two-proportion results with 12,000 users per arm. The interval tells readers how large or small the true effect could plausibly be, which the p-value alone does not.

| Metric | Control | Variant | Difference (95% CI) | p (two-sided) |
| :--- | ---: | ---: | :--- | ---: |
| Conversion rate | 4.1% | 4.6% | +0.50 pp (−0.02 to +1.02) | 0.058 |
| Bounce rate | 38.0% | 35.5% | −2.50 pp (−3.72 to −1.28) | < 0.001 |

Common Mistakes

  • Describing the p-value as the probability that the null hypothesis is true.

    A p-value is the probability, assuming H₀ and the test’s assumptions hold, of a result at least as extreme as the one observed. Phrase conclusions in those terms, and use a Bayesian analysis if you need the probability of a hypothesis.

  • Writing “no difference” after a non-significant result.

    Failing to reject H₀ means the data were not strong enough to rule it out. Say “no significant difference detected” and show the confidence interval; to claim equivalence, run an equivalence test such as TOST with a pre-stated margin.

  • Treating p < 0.001 as evidence of a large or important effect.

    With thousands of observations, trivial effects become significant. Report an effect size (mean difference, Cohen’s d, odds ratio) with its interval, and judge importance against what matters to the product or field.

  • Choosing α or the one-sided direction after seeing the results.

    Fix α and the direction in the analysis plan before data collection. Changing them afterwards inflates the Type I error rate, which is the risk of rejecting a true H₀.

  • Running many tests and reporting each at α = 0.05.

    With twenty independent tests at 0.05, roughly one false positive is expected even when every null is true. Apply Holm, Bonferroni, or a false discovery rate method and say which one.

Browse all 50 templates
FAQ

Hypothesis Testing & Statistical Analysis: Frequently Asked Questions

What is the difference between Type I and Type II errors?

A Type I error rejects a null hypothesis that is actually true; its long-run rate is α. A Type II error fails to reject a false null; its rate is β, and 1 − β is the test’s power. Larger samples reduce β for a given effect size.

How should p-values be formatted?

Report exact values to two or three decimals and use < 0.001 for smaller ones. APA style drops the leading zero (p = .263) because p cannot exceed 1; other fields keep it. Pick one convention and apply it to every row.

Do I need both the test statistic and the p-value?

Yes. The statistic and its degrees of freedom let readers verify the p-value and compute effect sizes; the p-value alone hides the direction and the test used. Journals and reviewers routinely ask for all three.

Can I write formulas like $\bar{x}$ inside a table cell?

On GitHub, yes: inline math with single dollar signs renders in table cells. Escape any absolute-value bars as \| because the table parser splits on pipes first; the math and LaTeX syntax page covers the details.