First tests

Research Methods — Week 6 Application

Today’s plan

Goals

You have a research plan and a hypothesis. Today: test it.

  1. Load and clean your project data
  2. Visualise before you test
  3. Check assumptions
  4. Run the t-test
  5. Interpret — honestly

Questions?

Submit questions anonymously:

PollEv.com/geol

text geol to 07480 781235

t-test workflow

🎓💻 Guided example

The complete workflow

🖥️ Live demo on example data

  1. Load data
  2. Visualise: histograms, boxplots
  3. Check assumptions: shapiro.test(), QQ plot
  4. Run: t.test(y ~ group, data = df)
  5. Interpret: CI, effect size, plain English
  6. If violated: log-transform or wilcox.test()

The golden rule

Always visualise before you test.

If you haven’t seen the data, you can’t interpret the result.

Group work

✏️💻 Apply to your data

Your workflow

  1. Load your project data. Make sure it’s clean.
  2. Define your groups / comparison.
  3. Visualise. What does it look like?
  4. Check assumptions.
  5. Run the t-test.
  6. Interpret.
  7. Write up a paragraph of results.

Finished early? Try a second comparison or explore subgroups.

Discussion

💬 What did you find?

Share your results

2–3 groups share:

  • What was the hypothesis?
  • What was the p-value?
  • What was the effect size?
  • Do you believe the result?

The question to always ask

“How plausible was this before we tested?”

Does the p-value change your mind a little — or a lot?

Wrap-up

Commit your work

Commit analysis code and written results to your group repo via PR.

Next week: “What if you have more than two groups?”

ANOVA, multiple comparisons, and effect sizes.