Statistics 2nd ed

statistical-inference

Appendix 3 — Using the t-table and F-table

Online z-calculator (type z or x, get areas instantly)
F2,21
t-df22,0.01

Tables give the critical values we compare our test statistic against.
They depend on:

  • The significance level (α, often 0.05)
  • The degrees of freedom (df)

t-table

  • Rows = degrees of freedom (df)
  • Columns = significance level (α)

Example:

  • Independent-samples t-test with n₁ = 12, n₂ = 12
  • df = 12 + 12 – 2 = 22
  • At α = 0.05 (two-tailed) → critical t ≈ 2.07
  • If $$|t| \geq 2.07$$ → significant

F-table

  • Needs two df values:
    • df between (numerator)
    • df within (denominator)

Example:

  • One-way ANOVA, 3 groups, N = 24
  • df between = k – 1 = 2
  • df within = N – k = 21
  • At α = 0.05 → critical F ≈ 3.47
  • If computed F ≥ 3.47 → significant

Student Tips

  • Always compute df correctly.
  • Use tables if no software is available.
  • Most calculators or apps today give exact p-values — faster than tables.

📱 QR: Interactive critical value calculator (t and F tables online)


Visuals

Figure C.1 — Snippet of a t-table row (df = 22, α = 0.05 highlighted).
Figure C.2 — F-table grid with numerator df = 2, denominator df = 21 marked.


Practice self-test quiz

In the space below, please find practice problems and self-test quizzes. For full access, please signup free.

Lesson 12 — Chi-square Tests

gof observed expectancies
independence 2x2
phi cramer

The chi-square test ($$\chi^2$$) is used with categorical (nominal) data.
It compares observed frequencies with expected frequencies.


Chi-square Goodness-of-Fit

When to Use:

  • One categorical variable
  • Test if observed frequencies match expected frequencies

Formula:
$$\chi^2 = \sum \frac{(O - E)^2}{E}$$

In words:
$$\chi^2 = \text{sum of squared differences between observed and expected, divided by expected}$$

Example:
Survey of favorite subjects (Math, Science, English).
Expected = equal (⅓ each), Observed = [25, 30, 45].
Compute each (O–E)²/E, sum = χ².


Chi-square Test of Independence

When to Use:

  • Two categorical variables
  • Test whether they are associated (independent or not)

Formula:
$$\chi^2 = \sum \frac{(O - E)^2}{E}$$

Where expected frequencies:
$$E = \frac{(\text{row total})(\text{column total})}{\text{grand total}}$$

Example:
Gender (Male/Female) × Sport (Soccer/Basketball/Tennis).
If observed counts differ from expected, χ² tests independence.


Chi-square Correlation Measures

Chi-square can also give a measure of association strength between categorical variables.

  • Phi coefficient (φ): for 2 × 2 tables

$$\phi = \sqrt{\frac{\chi^2}{N}}$$

  • Cramer’s V: for larger tables

$$V = \sqrt{\frac{\chi^2}{N(k-1)}}$$

Where $$k = \min(\text{rows}, \text{columns})$$.

  • Contingency coefficient (C):

$$C = \sqrt{\frac{\chi^2}{\chi^2 + N}}$$


Example (Phi, Cramer’s V, Contingency C)

Suppose χ² = 10.0, N = 100.

  • For 2 × 2: $$\phi = \sqrt{10/100} = \sqrt{0.1} = 0.32$$
  • For 3 × 2 table: $$V = \sqrt{10/(100(2-1))} = \sqrt{0.1} = 0.32$$
  • Contingency coefficient: $$C = \sqrt{10/(10+100)} = \sqrt{0.09} = 0.30$$

Definition

  • Goodness-of-fit: one categorical variable vs. expected distribution
  • Independence: relationship between two categorical variables
  • Correlation measures: strength of association in categorical tables (φ, V, C)

Visuals

Figure 12.1 — Goodness-of-fit example: observed vs. expected bar chart.

Figure 12.2 — Independence test: 2 × 2 contingency table with expected values.

Figure 12.3 — Phi, Cramer’s V, and C illustrated with 2 × 2 and 3 × 2 tables.


Why This Matters

Chi-square lets us analyze data that are counts rather than scores.
It extends statistical testing beyond numbers into categories — essential for psychology, sociology, education, and medicine.

Practice self-test quiz

In the space below, please find practice problems and self-test quizzes. For full access, please signup free.

Lesson 6 — The t-Test: Worked Examples & Calculations

t- one sample
t- one sample curve
t- independent boxplot
t- independent means
t- independent curve
t welch
t paired profile
t- paird curve
t-residuals

Introduction. This lesson is hands-on, data-driven, and calculation-oriented. It prepares students to do t-tests with data. The t-test compares means when the population standard deviation is unknown and is estimated from the sample, so the standardized statistic follows Student’s t distribution with appropriate degrees of freedom (df). The three common variants are: (a) one-sample (compare a sample mean to a reference value \( \mu_0 \)); (b) independent-samples (compare means of two unrelated groups); and (c) paired-samples (compare repeated measures on the same units by testing the mean of the differences). All t-tests assume independent observations and approximately normal residuals; only the pooled independent-samples test assumes equal variances.


A) One-Sample t-Test

Goal. Test whether a sample mean differs from a known/reference mean \( \mu_0 \).

Design & Experiment

A company claims average battery life is \( \mu_0 = 10 \) hours. We test \( n=12 \) units.

Data

Hours (n = 12)
9.6, 10.1, 10.5, 9.9, 9.7, 10.4, 9.8, 9.6, 10.2, 9.5, 10.3, 9.8

Figure A1: Histogram/QQ plot for one-sample data.

Step 1 — Sum, Mean, Variance

\(\sum x = 119.4 \Rightarrow \bar X = 9.95.\) Using \( \sum (x-\bar X)^2 = 1.086 \Rightarrow s^2 = 1.086/11 = 0.0987,\; s = 0.314.\)

Step 2 — Test Statistic & p-value

\(\displaystyle SE = \frac{s}{\sqrt{n}} = \frac{0.314}{\sqrt{12}} = 0.0906,\quad t = \frac{\bar X - \mu_0}{SE} = \frac{9.95 - 10}{0.0906} = -0.552,\quad df = n-1 = 11. \)

Two-tailed \(p \approx 0.59\) → fail to reject \(H_0\).

Figure A2: t curve (df=11) with observed \(t\) marked.

Conclusion (One-Sample)

No evidence the true mean differs from 10 hours (\(t(11)=-0.55,\; p=.59\)).


B) Independent-Samples t-Test

Goal. Test whether two teaching methods lead to different average exam scores.

Design & Experiment

Twenty students are randomly assigned to one of two methods (n = 10 per group).

  • Method A: Active discussion
  • Method B: Structured lecture

After a 2-week module, everyone takes the same 100-point exam.

Data

Method AMethod B
7278
6882
7580
7077
6979
7381
7183
7476
7678
7280

Figure B1: Boxplots of scores by group.

Step 1 — Sums & Means

\(\displaystyle \sum A=720 \Rightarrow \bar A=72.0,\qquad \sum B=794 \Rightarrow \bar B=79.4,\qquad \bar A-\bar B=-7.4. \)

Step 2 — Within-Group Variability (sample variances)

  • \(SS_A=60.0 \Rightarrow s_A^2=60/9=6.6667.\)
  • \(SS_B=44.40 \Rightarrow s_B^2=44.40/9=4.9333.\)

Figure B2: Group means with SEM error bars.

Step 3 — Pooled Variance & Standard Error (Student’s t)

\(\displaystyle s_p^2=\frac{9(6.6667)+9(4.9333)}{18}=5.8000,\qquad SE=\sqrt{5.8\,(0.1+0.1)}=\sqrt{1.16}=1.0770. \)

Step 4 — Test Statistic, df, p

\(\displaystyle t=\frac{-7.4}{1.0770}=-6.872,\qquad df=18,\qquad p\ (\text{two-tailed}) \ll .001. \)

Figure B3: t distribution with observed \(t\) marked (two-tailed).

t-Test Summary Table (Independent)

GroupnMeanSDSE(mean)
Method A1072.002.5820.816
Method B1079.402.2220.703
\(\bar A-\bar B\)SE (pooled)tdfp (2-tailed)
-7.401.0770-6.87218< .001

Optional Welch: \(SE_W=\sqrt{0.6667+0.4933}=1.0770,\; df_W\approx 17.61,\; t=-6.872,\; p\ll .001.\; Figure B4: Welch vs pooled comparison sketch.

Conclusion (Independent)

Method B yields higher mean scores than Method A (\(t(18)=-6.87,\; p\ll .001\)).


C) Paired-Samples (Dependent) t-Test

Goal. Test whether the mean change (After − Before) differs from zero for the same participants.

Design & Experiment

Eight students take an exam before and after a study-skills workshop.

Data

BeforeAfterDifference \(d\) (After − Before)
70744
73752
68735
74795
71743
70722
73774
74773

Figure C1: Paired profile plot (lines per subject) + histogram of differences.

Step 1 — Mean Difference & Variability

\(\sum d = 28 \Rightarrow \bar d = 3.5.\) \(\sum (d-\bar d)^2 = 10 \Rightarrow s_d^2 = 10/7 = 1.4286,\; s_d=1.196.\)

Step 2 — Test Statistic & p-value

\(\displaystyle SE_{\bar d} = \frac{s_d}{\sqrt{n}}=\frac{1.196}{\sqrt{8}}=0.423,\quad t=\frac{\bar d}{SE_{\bar d}}=\frac{3.5}{0.423}=8.28,\quad df=n-1=7,\quad p\ll .001. \)

Figure C2: t curve (df=7) with observed \(t\) marked.

Conclusion (Paired)

Scores improve after the workshop (\(t(7)=8.28,\; p\ll .001\)).


Assumptions (checklist)

  • Independent observations (between units; pairing respected for the paired test).
  • Approximately normal residuals (or differences for the paired test).
  • Equal variances only for the pooled independent-samples test; if doubtful, report Welch’s t.

Figure D1: QQ plots and Levene/Brown–Forsythe sketch.

Practice self-test quiz

In the space below, please find practice problems and self-test quizzes. For full access, please signup free.