First tests

Research Skills — Week 6 Application

Today’s plan

  • t-test workflow
  • Group work
  • Discussion
  • Wrap-up

Goals

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

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

Questions?

Submit questions:

PollEv.com/geol

text geol to 07480 781235

t-test workflow

  • Today’s plan

🎓💻 Guided example

  • Group work
  • Discussion
  • Wrap-up

The complete workflow

  1. Load data
  2. Visualize: histograms, violins
  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 visualize before you test.

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

Group work

  • Today’s plan
  • t-test workflow

✏️💻 Apply to your data

  • Discussion
  • Wrap-up

Your workflow

Work through these steps on your project data:

  1. Load your project data. Make sure it’s clean.
  2. Define your groups / comparison.
  3. Visualize. 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.

Attendance

Discussion

  • Today’s plan
  • t-test workflow
  • Group work

💬 What did you find?

  • Wrap-up

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

  • Today’s plan
  • t-test workflow
  • Group work
  • Discussion

Any questions we missed?

Submit questions:

PollEv.com/geol

text geol to 07480 781235

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.