Homework: t-Tests with Dataset B

Companion to Chapters 14–16. Work individually with dataset_B_exercise_mood.csv. For each scenario: (1) run a normality check, (2) run the test, (3) report the key statistic, Cohen’s d, and the 95% CI, and (4) write a one-sentence interpretation focused on the size and practical meaning of the effect. Report Cohen’s d and the 95% CI for every scenario, regardless of whether the result is significant.

Dataset B: Exercise & Mood

Variable Description Type
minutes_exercise Weekly exercise minutes Numeric
mood_group Type of exercise Factor (Yoga/Weights)
stress_pre Self-rated stress (1–10) before exercise Numeric
stress_post Self-rated stress (1–10) after exercise Numeric

Standard Setup

B <- read.csv("https://jkoxford-a11y.github.io/awesomesaucestats/data/dataset_B_exercise_mood.csv")
str(B)
head(B)

A Note on AI Tools

You may use AI to help debug your R code, but all interpretations must be your own.

Scenario 1: One-Sample t-Test (one-tailed)

Research question: Do students exercise more than 150 minutes per week on average?

Report t. | Cohen’s d: _______ | 95% CI: _______

Interpretation (size and practical meaning of the effect): _______________________________________________

Scenario 2: Independent-Samples t-Test (Welch)

Research question: Do Yoga vs. Weights groups differ in exercise minutes?

Report p. | Cohen’s d: _______ | 95% CI: _______

Interpretation: _______________________________________________

Scenario 3: Paired-Samples t-Test

Research question: Do stress ratings change from pre-exercise to post-exercise?

Reminder: check normality of the differences (post − pre), not each column separately.

Report t. | Cohen’s d: _______ | 95% CI: _______

Interpretation: _______________________________________________

Scenario 4: One-Tailed Paired t-Test

Research question: Is stress lower after exercise than before?

Report p. | Cohen’s d: _______ | 95% CI (one-tailed; report lower bound): _______

Interpretation: _______________________________________________

Reflection Question

Name one variable not in this dataset that could confound the relationship between exercise group and stress or mood. How might it change the interpretation of your results?