Statistics for the Behavioral Sciences
A guided workflow for PSYC 224
Welcome
This is the working textbook for PSYC/BIOL/SOCI 224, Statistics for the Behavioral Sciences. It pulls together the guides, worksheets, R tutorials, and worked examples that have accumulated across three semesters of the course into a single, navigable reference.
What this book is trying to do
Statistics is not a collection of tests to memorize. It is a structured way of making defensible claims from imperfect data.
Every chapter in this book is built around the same chain of reasoning:
Research question → Variables → Design → Visualization → Analysis → Assumptions → Interpretation → Reporting → Limitations
You will work through that chain repeatedly — with t-tests, with ANOVA, with regression, with chi-square. The test changes. The chain does not. By the end of the course, your goal is not to remember which formula goes with which situation. Your goal is to be able to look at a research question, figure out what kind of data it involves, choose a defensible analysis, check whether the assumptions hold, interpret what the output means, and write it up clearly.
R is the tool, not the goal. This book uses R because it is free, powerful, and the standard in behavioral science research. But running code correctly is not the same as understanding statistics. You should always be able to explain what a result means in plain English before you write it up.
How this book is organized
The book is built around a single idea: most inferential tests are the same question in different clothing. You measure something, you ask whether the pattern you see is bigger than what chance alone would produce, and you use a known distribution (t, F, χ²) to answer that question. Every chapter in Parts III–V is a variation on that theme.
The seven parts build on each other:
- Part I — Foundations. What kind of data you have, how to describe it, the distributions that underlie every test, and the logic of statistical inference.
- Part II — Working in R. Practical R skills you will use in every later chapter: installing the software, getting data in, plotting it, reshaping it.
- Part III — Checking Assumptions. Why normality matters (and what “normal enough” really means), how to check it, and what to do when it fails.
- Part IV — Hypothesis Tests. t-tests, ANOVA, correlation, chi-square — the workhorses.
- Part V — Regression. Simple, categorical, and multiple regression, plus diagnostic plots.
- Part VI — Reporting & Special Topics. APA write-ups, effect sizes, and the kinds of paradoxes that catch even experienced analysts off guard.
- Part VII — Case Studies. Worked walkthroughs of real datasets, showing the full analysis process from question to write-up.
The appendices contain quick-reference cards, an index of the interactive modules, and a complete R workflow guide with visual examples of what your diagnostic plots should look like.
Core chapters vs. reference material
Not every chapter carries equal weight. Here is a rough guide to priority:
Core — you need to master these: Chapters 1–5 (Foundations), 6–7 (R basics), 10–11 (Normality), 14–21 (Hypothesis tests), 22–24 (Regression), 26–27 (Reporting & effect sizes)
Support — use these when the situation calls for it: Chapters 8–9 (Plotting, reshaping), 12–13 (Transformations, nonparametrics), 25 (Diagnostics), 28 (Simpson’s Paradox)
Reference — consult as needed: Chapters 29–32 (Case studies), Appendices A–E
Where to go when you are stuck
| If you are asking… | Go to |
|---|---|
| What kind of variable do I have? | Ch. 2 — Levels of Measurement |
| How do I summarize my data? | Ch. 3 — Describing Data |
| What is a p-value, really? | Ch. 5 — Sampling Distributions & Inference |
| How do I get my data into R? | Ch. 7 — Preparing Data |
| Is my data normal enough? | Ch. 10–11 — Normality |
| Are two independent groups different? | Ch. 15 — Independent t-test |
| Are the same people measured twice? | Ch. 16 — Paired t-test |
| Are three or more groups different? | Ch. 17 — One-Way ANOVA |
| Are two variables related? | Ch. 20 — Correlation |
| Can one variable predict another? | Ch. 22 — Simple Regression |
| Are two categorical variables associated? | Ch. 21 — Chi-Square |
| Can I trust my regression model? | Ch. 25 — Diagnostics |
| How do I write this up in APA format? | Ch. 26 — APA Reporting |
| What is effect size and why does it matter? | Ch. 27 — Effect Sizes |
| I need the R code for a specific test | Appendix D — R Workflow Reference |
| What should my diagnostic plots look like? | Appendix D, Part 2 — Reading Your Output |
| What reasoning patterns did our class need to fix? | Class Misconception Reveals |
| I want to work through a topic with a partner | Appendix C — Interactive Modules |
Using AI in this course
You will likely use AI tools — including the course chatbot — while learning statistics. Used well, AI can accelerate your understanding. Used poorly, it will prevent you from developing the statistical judgment the course is designed to build.
Productive AI use:
- Ask AI to explain why a particular test is appropriate for a given design.
- Ask AI to quiz you on interpreting R output.
- Ask AI to identify vague or incorrect language in your APA write-up.
- Ask AI to help you debug R errors after you have attempted the code yourself.
- Ask AI to compare two analysis options and explain the difference.
AI use that will hurt your learning:
- Asking AI to analyze a dataset and write your results section without engaging with the data yourself.
- Trusting AI-generated R output without checking the assumptions.
- Using AI to skip the reasoning process rather than to understand it.
The course chatbot (accessible through Boodlebox) is designed for practice problems — it will give you hints, walk you through workflows, and check your answers. It will not simply give you solutions. That is intentional. The goal is not the answer. The goal is the ability to produce and defend the answer yourself.
AI can help you study statistics. It cannot replace statistical judgment. You are responsible for understanding the research question, the variables, the analysis choice, the interpretation, and the limitations.
On accuracy and confidence
Statistics is a field where confident-sounding wrong answers are easy to produce. This book tries to be honest about uncertainty: where rules of thumb exist (Cohen’s \(d \geq 0.8\) counts as a “large” effect; \(n > 30\) buys you robustness to non-normality), it presents them as rules of thumb, not laws. Where defaults are debatable (Welch’s t-test by default versus pooled variance; eta-squared versus omega-squared), it states the choice and the reason.
This text is a consolidation of multiple iterations of course materials. Where two earlier drafts disagreed, the more recent version was preferred; where the conflict was substantive, it is flagged inline.
— Jon Oxford