Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Psychological research methods, experimental design, and analysis
.claude/skills/brycewang-stanford-psychology-research-guide/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 48% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 98% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 94% | 0% |
| case-09 | ✓→✗ | ▼ Worse | 134% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 163% | 0% |
Psychology is the scientific study of mind and behavior, spanning cognitive processes, social influence, developmental trajectories, clinical disorders, and neuroscience. The field has undergone a methodological revolution since the replication crisis of the 2010s, with new standards for statistical rigor, pre-registration, transparency, and open science fundamentally reshaping how research is conducted and evaluated.
This guide covers the practical aspects of conducting psychology research in the post-replication-crisis era: experimental design with adequate power, pre-registration, appropriate statistical analysis, effect size reporting, and the tools and platforms that support reproducible psychological science. The focus is on what reviewers and editors at top journals now expect.
Whether you are designing a behavioral experiment, analyzing survey data, conducting a psychometric validation, or reviewing a manuscript, these patterns reflect current best practices in the field.
| Design | Advantages | Disadvantages | When to Use | |--------|-----------|---------------|-------------| | Between-subjects | No carryover effects, simpler | Requires more participants, individual differences | Deception studies, one-shot manipulations | | Within-subjects | More power, fewer participants | Order effects, demand characteristics | Perception, memory, reaction time | | Mixed | Combines benefits | Complex analysis | Treatment x individual difference |
pythonfrom statsmodels.stats.power import TTestIndPower, FTestAnovaPower import numpy as np # Two-sample t-test power analysis analysis = TTestIndPower() # Question: "How many participants per group for d=0.5, power=0.80?" n_per_group = analysis.solve_power( effect_size=0.5, # Cohen's d (medium effect) alpha=0.05, power=0.80, alternative="two-sided", ) print(f"Required N per group: {int(np.ceil(n_per_group))}") # 64 # For small effects (d=0.2), which are common after replication n_small = analysis.solve_power(effect_size=0.2, alpha=0.05, power=0.80) print(f"Required N per group for d=0.2: {int(np.ceil(n_small))}") # 394 # One-way ANOVA (3 groups) anova_analysis = FTestAnovaPower() n_anova = anova_analysis.solve_power( effect_size=0.25, # Cohen's f (medium) alpha=0.05, power=0.80, k_groups=3, ) print(f"Required N per group (ANOVA): {int(np.ceil(n_anova))}") # 53
| Measure | Small | Medium | Large | Use For | |---------|-------|--------|-------|---------| | Cohen's d | 0.2 | 0.5 | 0.8 | Group differences | | Pearson r | 0.1 | 0.3 | 0.5 | Correlations | | Cohen's f | 0.1 | 0.25 | 0.4 | ANOVA effects | | eta-squared | 0.01 | 0.06 | 0.14 | ANOVA variance explained | | Odds ratio | 1.5 | 2.5 | 4.0 | Binary outcomes | | Cohen's w | 0.1 | 0.3 | 0.5 | Chi-squared tests |
Important: Post-replication-crisis psychology finds that most real effects are small (d = 0.2-0.4). Design for small effects unless you have strong prior evidence for larger ones.
Pre-registration template (AsPredicted.org format):
1. HYPOTHESES
H1: Participants in the gratitude condition will report higher
life satisfaction (SWLS scores) than those in the control
condition (d >= 0.3).
2. DESIGN
- 2 (gratitude vs. control) between-subjects
- Random assignment via Qualtrics randomizer
3. PLANNED SAMPLE
- N = 200 per condition (400 total)
- Power: 0.90 for d = 0.3 at alpha = 0.05
- Recruitment: Prolific, US residents, 18-65
4. EXCLUSION CRITERIA (stated before data collection)
- Failed attention check (embedded in survey)
- Completion time < 3 minutes or > 30 minutes
- Duplicate IP addresses
5. MEASURED VARIABLES
- DV: Satisfaction With Life Scale (SWLS; Diener et al., 1985)
- Manipulation check: "How grateful do you feel right now?" (1-7)
- Covariates: Age, gender, baseline mood (PANAS)
6. ANALYSIS PLAN
- Primary: Independent samples t-test on SWLS scores
- Secondary: ANCOVA controlling for baseline PANAS-PA
- Exploratory: Moderation by trait gratitude (GQ-6)
7. ANYTHING ELSE
- All deviations from this plan will be labeled as exploratory
- We will report all conditions and all measures| Platform | Strengths | Journal Integration | |----------|-----------|-------------------| | OSF Registries | Most widely used, free, flexible | Registered Reports at 300+ journals | | AsPredicted.org | Simple, private until you share | Widely accepted | | ClinicalTrials.gov | Required for clinical studies | FDA-mandated | | EGAP | Political science, field experiments | APSR, AJPS |
pythonimport pandas as pd import pingouin as pg from scipy import stats # Load data df = pd.read_csv("experiment_data.csv") # Step 1: Descriptive statistics by condition descriptives = df.groupby("condition").agg( n=("dv", "count"), mean=("dv", "mean"), sd=("dv", "std"), median=("dv", "median"), ).round(3) # Step 2: Check assumptions # Normality for condition in df["condition"].unique(): subset = df[df["condition"] == condition]["dv"] stat, p = stats.shapiro(subset) print(f"{condition}: Shapiro-Wilk W={stat:.3f}, p={p:.3f}") # Homogeneity of variance levene_stat, levene_p = stats.levene( df[df["condition"] == "treatment"]["dv"], df[df["condition"] == "control"]["dv"], ) # Step 3: Primary analysis with effect size and CI result = pg.ttest( df[df["condition"] == "treatment"]["dv"], df[df["condition"] == "control"]["dv"], paired=False, alternative="two-sided", ) print(result[["T", "dof", "p-val", "cohen-d", "CI95%", "BF10"]]) # Step 4: Bayesian analysis (increasingly expected) bf10 = float(result["BF10"].values[0]) print(f"Bayes Factor BF10 = {bf10:.2f}") if bf10 > 10: print("Strong evidence for H1") elif bf10 > 3: print("Moderate evidence for H1") elif bf10 > 1: print("Anecdotal evidence for H1") else: print("Evidence favors H0")
python# One-way ANOVA aov = pg.anova(dv="score", between="group", data=df, detailed=True) print(aov) # Effect size (eta-squared and omega-squared) print(f"Eta-squared: {aov['np2'].values[0]:.3f}") # Post-hoc pairwise comparisons with correction posthoc = pg.pairwise_tukey(dv="score", between="group", data=df) print(posthoc) # Mixed ANOVA (between + within) mixed = pg.mixed_anova( dv="score", between="group", within="time", subject="participant_id", data=df_long ) print(mixed)
python# Scale reliability from pingouin import cronbach_alpha items = df[["item1", "item2", "item3", "item4", "item5"]] alpha, ci = cronbach_alpha(items) print(f"Cronbach's alpha = {alpha:.3f}, 95% CI = [{ci[0]:.3f}, {ci[1]:.3f}]") # Confirmatory Factor Analysis (using semopy) from semopy import Model model_spec = """ factor1 =~ item1 + item2 + item3 factor2 =~ item4 + item5 + item6 """ model = Model(model_spec) model.fit(df) print(model.inspect()) # Fit indices stats_result = model.calc_stats() print(f"CFI = {stats_result.loc['CFI', 'Value']:.3f}") print(f"RMSEA = {stats_result.loc['RMSEA', 'Value']:.3f}") print(f"SRMR = {stats_result.loc['SRMR', 'Value']:.3f}")
Standard reporting patterns:
t-test:
"Participants in the gratitude condition (M = 5.23, SD = 1.12) reported
significantly higher life satisfaction than those in the control condition
(M = 4.67, SD = 1.08), t(398) = 4.89, p < .001, d = 0.49, 95% CI [0.29, 0.69]."
ANOVA:
"There was a significant main effect of group on performance,
F(2, 297) = 8.43, p < .001, eta-p-squared = .054."
Correlation:
"Life satisfaction was positively correlated with gratitude,
r(198) = .42, p < .001, 95% CI [.30, .53]."
Always include: test statistic, df, p-value, effect size, confidence interval.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 23,247 | 28,493 | +23% | 1 | 1 | 0% | 3,673 | 6,861 | +87% | 0 | 0 | — |
case-02 | fail→fail | 17,268 | 16,763 | -3% | 1 | 1 | 0% | 3,237 | 5,602 | +73% | 0 | 0 | — |
case-03 | fail→pass | 18,509 | 13,654 | -26% | 1 | 1 | 0% | 3,735 | 5,513 | +48% | 0 | 0 | — |
case-04 | pass→pass | 7,943 | 6,783 | -15% | 1 | 1 | 0% | 1,578 | 4,155 | +163% | 0 | 0 | — |
case-05 | pass→pass | 12,351 | 15,529 | +26% | 1 | 1 | 0% | 2,228 | 5,458 | +145% | 0 | 0 | — |
case-06 | pass→pass | 6,659 | 5,575 | -16% | 1 | 1 | 0% | 1,121 | 3,900 | +248% | 0 | 0 | — |
case-20 | pass→pass | 9,776 | 7,412 | -24% | 1 | 1 | 0% | 2,012 | 4,221 | +110% | 0 | 0 | — |
case-07 | pass→pass | 10,240 | 6,644 | -35% | 1 | 1 | 0% | 1,675 | 3,998 | +139% | 0 | 0 | — |
case-08 | pass→pass | 15,488 | 8,320 | -46% | 1 | 1 | 0% | 2,550 | 4,336 | +70% | 0 | 0 | — |
case-09 | pass→fail | 11,771 | 8,361 | -29% | 1 | 1 | 0% | 1,774 | 4,145 | +134% | 0 | 0 | — |
case-10 | pass→pass | 18,246 | 10,979 | -40% | 1 | 1 | 0% | 3,407 | 4,838 | +42% | 0 | 0 | — |
case-21 | pass→pass | 17,341 | 25,105 | +45% | 1 | 1 | 0% | 2,600 | 6,434 | +147% | 0 | 0 | — |
case-11 | pass→pass | 7,889 | 6,989 | -11% | 1 | 1 | 0% | 1,460 | 3,901 | +167% | 0 | 0 | — |
case-12 | pass→pass | 14,066 | 19,111 | +36% | 1 | 1 | 0% | 2,002 | 5,278 | +164% | 0 | 0 | — |
case-13 | pass→pass | 12,994 | 5,418 | -58% | 1 | 1 | 0% | 2,098 | 3,620 | +73% | 0 | 0 | — |
case-14 | fail→pass | 11,139 | 7,218 | -35% | 1 | 1 | 0% | 2,064 | 4,093 | +98% | 0 | 0 | — |
case-22 | pass→pass | 18,808 | 23,480 | +25% | 1 | 1 | 0% | 3,381 | 7,151 | +112% | 0 | 0 | — |
case-15 | pass→pass | 10,169 | 25,539 | +151% | 1 | 1 | 0% | 1,907 | 4,884 | +156% | 0 | 0 | — |
case-16 | pass→pass | 14,457 | 15,928 | +10% | 1 | 1 | 0% | 2,057 | 5,211 | +153% | 0 | 0 | — |
case-17 | pass→pass | 9,650 | 6,392 | -34% | 1 | 1 | 0% | 1,743 | 3,816 | +119% | 0 | 0 | — |
case-18 | fail→pass | 22,694 | 25,037 | +10% | 1 | 1 | 0% | 3,272 | 6,336 | +94% | 0 | 0 | — |
case-19 | pass→pass | 12,680 | 11,487 | -9% | 1 | 1 | 0% | 2,117 | 4,550 | +115% | 0 | 0 | — |
case-23 | pass→pass | 12,079 | 9,707 | -20% | 1 | 1 | 0% | 2,322 | 4,481 | +93% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.