跳到主要内容

统计分析

收藏0

按数据情况选对检验方法、先查前提假设、再算效应量与样本量,最后按 APA 格式写报告;覆盖 t 检验、方差分析、卡方、相关、回归、非参数与贝叶斯方法。

让 AI 安装

星光尘缘LV2最新版本 0.1.0更新于 2026-11-12下载 0 次

references/reporting_standards.md

21.0 KB查看排版效果
1# Statistical Reporting Standards
2
3All numerical prose examples here are illustrative formatting templates, not computed results from a common dataset. Replace numbers, software versions, priors and diagnostic claims with the actual analysis.
4
5This document provides guidelines for reporting statistical analyses according to APA (American Psychological Association) style and general best practices for academic publications.
6
7## General Principles
8
91. **Transparency**: Report enough detail for replication
102. **Completeness**: Include all planned analyses and outcomes
113. **Honesty**: Report non-significant findings and violations
124. **Clarity**: Write for your audience, define technical terms
135. **Reproducibility**: Provide code, data, or supplements when possible
14
15---
16
17## Pre-Registration and Planning
18
19### What to Report (Ideally Before Data Collection)
20
211. **Hypotheses**: Clearly stated, directional when appropriate
222. **Sample size justification**: Power analysis or other rationale
233. **Data collection stopping rule**: When will you stop collecting data?
244. **Variables**: All variables collected (not just those analyzed)
255. **Exclusion criteria**: Rules for excluding participants/data points
266. **Statistical analyses**: Planned tests, including:
27 - Primary analysis
28 - Secondary analyses
29 - Exploratory analyses (labeled as such)
30 - Handling of missing data
31 - Multiple comparison corrections
32 - Assumption checks
33
34**Why pre-register?**
35- Prevents HARKing (Hypothesizing After Results are Known)
36- Distinguishes confirmatory from exploratory analyses
37- Increases credibility and reproducibility
38
39**Platforms**: OSF, AsPredicted, ClinicalTrials.gov
40
41---
42
43## Methods Section
44
45### Participants
46
47**What to report**:
48- Total N, including excluded participants
49- Relevant demographics (age, gender, etc.)
50- Recruitment method
51- Inclusion/exclusion criteria
52- Attrition/dropout with reasons
53
54**Example**:
55> "Participants were 150 undergraduate students (98 female, 52 male; M_age = 19.4 years, SD = 1.2, range 18-24) recruited from psychology courses in exchange for course credit. Five participants were excluded due to incomplete data (n = 3) or failing attention checks (n = 2), resulting in a final sample of 145."
56
57### Design
58
59**What to report**:
60- Study design (between-subjects, within-subjects, mixed)
61- Independent variables and levels
62- Dependent variables
63- Control variables/covariates
64- Randomization procedure
65- Blinding (single-blind, double-blind)
66
67**Example**:
68> "A 2 (feedback: positive vs. negative) × 2 (timing: immediate vs. delayed) between-subjects factorial design was used. Participants were randomly assigned to conditions using a computer-generated randomization sequence. The primary outcome was task performance measured as number of correct responses (0-20 scale)."
69
70### Measures
71
72**What to report**:
73- Full name of measure/instrument
74- Number of items
75- Scale/response format
76- Scoring method
77- Reliability (Cronbach's α, ICC, etc.)
78- Validity evidence (if applicable)
79
80**Example**:
81> "Depression was assessed using the Beck Depression Inventory-II (BDI-II; Beck et al., 1996), a 21-item self-report measure rated on a 4-point scale (0-3). Total scores range from 0 to 63, with higher scores indicating greater depression severity. The BDI-II demonstrated excellent internal consistency in this sample (α = .91)."
82
83### Procedure
84
85**What to report**:
86- Step-by-step description of what participants did
87- Timing and duration
88- Instructions given
89- Any manipulations or interventions
90
91**Example**:
92> "Participants completed the study online via Qualtrics. After providing informed consent, they completed demographic questions, were randomly assigned to one of four conditions, completed the experimental task (approximately 15 minutes), and finished with the outcome measures and debriefing. The entire session lasted approximately 30 minutes."
93
94### Data Analysis
95
96**What to report**:
97- Software used (with version)
98- Significance level (α)
99- Tail(s) of tests (one-tailed or two-tailed)
100- Assumption checks conducted
101- Missing data handling
102- Outlier treatment
103- Multiple comparison corrections
104- Effect size measures used
105
106**Example**:
107> "All analyses were conducted using Python 3.12 with Pingouin 0.7.0, SciPy 1.18.1, and statsmodels 0.15.0. An alpha level of .05 was used for all significance tests. Assumptions of normality and homogeneity of variance were assessed using Shapiro-Wilk and Levene's tests, respectively. Missing data (< 2% for all variables) were handled using listwise deletion. Flagged observations were reviewed against source records; valid observations were retained, with prespecified robust sensitivity analyses. For the primary ANOVA, partial eta-squared (η²_p) is reported as the effect size measure. Post hoc comparisons used Tukey's HSD to control family-wise error rate."
108
109---
110
111## Results Section
112
113### Descriptive Statistics
114
115**What to report**:
116- Sample size (for each group if applicable)
117- Measures of central tendency (M, Mdn)
118- Measures of variability (SD, IQR, range)
119- Confidence intervals (when appropriate)
120
121**Example (continuous outcome)**:
122> "Group A (n = 48) had a mean score of 75.2 (SD = 8.5, 95% CI [72.7, 77.7]), while Group B (n = 52) scored 68.3 (SD = 9.2, 95% CI [65.7, 70.9])."
123
124**Example (categorical outcome)**:
125> "Of the 145 participants, 89 (61.4%) chose Option A, 42 (29.0%) chose Option B, and 14 (9.7%) chose Option C."
126
127**Tables for descriptive statistics**:
128- Use tables for multiple variables or groups
129- Include M, SD, and n (minimum)
130- Can include range, skewness, kurtosis if relevant
131
132---
133
134### Assumption Checks
135
136**What to report**:
137- Which assumptions were tested
138- Results of diagnostic tests
139- Evidence of departures, and limits of the checks
140- Actions taken if violated
141
142**Example**:
143> "Normality was assessed using Shapiro-Wilk tests. Data for Group A (W = 0.97, p = .18) and Group B (W = 0.96, p = .12) did not significantly deviate from normality. The median-centered Levene screen did not reject equal variances, F(1, 98) = 1.23, p = .27. Non-rejection did not establish equality; prespecified Welch inference was retained, with Q-Q plots and design reviewed."
144
145**Example (violated)**:
146> "Shapiro-Wilk tests indicated significant departure from normality for Group C (W = 0.89, p = .003). The prespecified estimand and tail behavior were reviewed; any alternative rank analysis was labeled as a separate distributional sensitivity analysis, not a replacement mean test selected by this p-value."
147
148---
149
150### Inferential Statistics
151
152#### T-Tests
153
154**What to report**:
155- Test statistic (t)
156- Degrees of freedom
157- p-value (exact if p ≥ .001, otherwise p < .001)
158- Effect size (Cohen's d or Hedges' g) with CI
159- Direction of effect
160- Whether test was one- or two-tailed
161
162**Format**: t(df) = value, p = value, d = value, 95% CI [lower, upper]
163
164**Example (independent t-test)**:
165> "Group A (M = 75.2, SD = 8.5) scored significantly higher than Group B (M = 68.3, SD = 9.2), t(98) = 3.82, p < .001, d = 0.77, 95% CI [0.36, 1.18], two-tailed."
166
167**Example (paired t-test)**:
168> "Scores increased significantly from pretest (M = 65.4, SD = 10.2) to posttest (M = 71.8, SD = 9.7), t(49) = 4.21, p < .001, d = 0.64, 95% CI [0.33, 0.95]."
169
170**Example (Welch's t-test)**:
171> "Due to unequal variances, Welch's t-test was used. Group A scored significantly higher than Group B, t(94.3) = 3.65, p < .001, d = 0.74."
172
173**Example (non-significant)**:
174> "There was no significant difference between Group A (M = 72.1, SD = 8.3) and Group B (M = 70.5, SD = 8.9), t(98) = 0.91, p = .36, d = 0.18, 95% CI [-0.21, 0.57]."
175
176---
177
178#### ANOVA
179
180**What to report**:
181- F statistic
182- Degrees of freedom (effect, error)
183- p-value
184- Effect size (η², η²_p, or ω²)
185- Means and SDs for all groups
186- Prespecified contrasts and multiplicity-adjusted post hoc families, including non-significant results
187
188**Format**: F(df_effect, df_error) = value, p = value, η²_p = value
189
190**Example (one-way ANOVA)**:
191> "There was a significant main effect of treatment condition on test scores, F(2, 147) = 8.45, p < .001, η²_p = .10. Post hoc comparisons using Tukey's HSD revealed that Condition A (M = 78.2, SD = 7.3) scored significantly higher than Condition B (M = 71.5, SD = 8.1, p = .002, d = 0.87) and Condition C (M = 70.1, SD = 7.9, p < .001, d = 1.07). Conditions B and C did not differ significantly (p = .52, d = 0.18)."
192
193**Example (factorial ANOVA)**:
194> "A 2 (feedback: positive vs. negative) × 2 (timing: immediate vs. delayed) between-subjects ANOVA revealed a significant main effect of feedback, F(1, 146) = 12.34, p < .001, η²_p = .08, but no significant main effect of timing, F(1, 146) = 2.10, p = .15, η²_p = .01. The interaction was significant, F(1, 146) = 6.78, p = .01, η²_p = .04. Simple effects analysis showed that positive feedback improved performance for immediate timing (M_diff = 8.2, p < .001) but not for delayed timing (M_diff = 1.3, p = .42)."
195
196**Example (repeated measures ANOVA)**:
197> "Mauchly's test indicated that the assumption of sphericity was violated, χ²(2) = 8.45, p = .01, therefore Greenhouse-Geisser corrected degrees of freedom are reported (ε = 0.87). A one-way repeated measures ANOVA revealed a significant effect of time point on anxiety scores, F(1.74, 85.26) = 15.67, p < .001, η²_p = .24. Pairwise comparisons with Bonferroni correction showed..."
198
199(Note: the corrected df are the uncorrected df multiplied by ε: 2 × 0.87 = 1.74 and 98 × 0.87 = 85.26.)
200
201---
202
203#### Correlation
204
205**What to report**:
206- Correlation coefficient (r or ρ)
207- Sample size
208- p-value
209- Direction and strength
210- Confidence interval
211- Coefficient of determination (r²) if relevant
212
213**Format**: r(df) = value, p = value, 95% CI [lower, upper]
214
215**Example (Pearson)**:
216> "There was a moderate positive correlation between study time and exam score, r(148) = .42, p < .001, 95% CI [.27, .55], indicating that 18% of the variance in exam scores was shared with study time (r² = .18)."
217
218**Example (Spearman)**:
219> "A Spearman rank-order correlation revealed a significant positive association between class rank and motivation, ρ = .38, n = 120, p < .001, 95% CI [.21, .52]."
220
221**Example (non-significant)**:
222> "There was no significant correlation between age and reaction time, r(98) = -.12, p = .23, 95% CI [-.31, .08]."
223
224---
225
226#### Regression
227
228**What to report**:
229- Overall model fit (R², adjusted R², F-test)
230- Coefficients (B, SE, β, t, p) for each predictor
231- Effect sizes
232- Confidence intervals for coefficients
233- Variance inflation factors (if multicollinearity assessed)
234
235**Format**: B = value, SE = value, β = value, t = value, p = value, 95% CI [lower, upper]
236
237**Example (simple regression)**:
238> "Simple linear regression showed that study hours significantly predicted exam scores, F(1, 148) = 42.5, p < .001, R² = .22. Specifically, each additional hour of study was associated with a 2.4-point increase in exam score (B = 2.40, SE = 0.37, β = .47, t = 6.52, p < .001, 95% CI [1.67, 3.13])."
239
240**Example (multiple regression)**:
241> "Multiple linear regression was conducted to predict exam scores from study hours, prior GPA, and attendance. The overall model was significant, F(3, 146) = 45.2, p < .001, R² = .48, adjusted R² = .47. Study hours (B = 1.80, SE = 0.31, β = .35, t = 5.78, p < .001, 95% CI [1.18, 2.42]) and prior GPA (B = 8.52, SE = 1.95, β = .28, t = 4.37, p < .001, 95% CI [4.66, 12.38]) were significant predictors, but attendance was not (B = 0.15, SE = 0.12, β = .08, t = 1.25, p = .21, 95% CI [-0.09, 0.39]). Multicollinearity was not a concern, as all VIF values were below 1.5."
242
243**Example (logistic regression)**:
244> "Logistic regression was conducted to predict pass/fail status from study hours. The overall model was significant, χ²(1) = 28.7, p < .001, Nagelkerke R² = .31. Each additional study hour increased the odds of passing by 1.35 times (OR = 1.35, 95% CI [1.18, 1.54], p < .001). The model correctly classified 76% of cases (sensitivity = 81%, specificity = 68%)."
245
246---
247
248#### Chi-Square Tests
249
250**What to report**:
251- χ² statistic
252- Degrees of freedom
253- p-value
254- Effect size (Cramér's V or φ)
255- Observed and expected frequencies (or percentages)
256
257**Format**: χ²(df, N = total) = value, p = value, Cramér's V = value
258
259**Example (2×2)**:
260> "A chi-square test of independence revealed a significant association between treatment group and outcome, χ²(1, N = 150) = 8.45, p = .004, φ = .24. Specifically, 72% of participants in the treatment group improved compared to 48% in the control group."
261
262**Example (larger table)**:
263> "A chi-square test examined the relationship between education level (high school, bachelor's, graduate) and political affiliation (liberal, moderate, conservative). The association was significant, χ²(4, N = 300) = 18.7, p = .001, Cramér's V = .18, indicating a small to moderate association."
264
265**Example (Fisher's exact)**:
266> "Due to expected cell counts below 5, Fisher's exact test was used. The association between treatment and outcome was significant, p = .018 (two-tailed), OR = 3.42, 95% CI [1.21, 9.64]."
267
268---
269
270#### Non-Parametric Tests
271
272**Mann-Whitney U**:
273> "A Mann-Whitney U test indicated that Group A (Mdn = 75, IQR = 10) had significantly higher scores than Group B (Mdn = 68, IQR = 12), U = 845, z = 3.21, p = .001, r = .32."
274
275**Wilcoxon signed-rank**:
276> "A Wilcoxon signed-rank test showed that scores increased significantly from pretest (Mdn = 65, IQR = 15) to posttest (Mdn = 72, IQR = 14), z = 3.89, p < .001, r = .39."
277
278**Kruskal-Wallis**:
279> "A Kruskal-Wallis test revealed significant differences among the three conditions, H(2) = 15.7, p < .001, ε² = .09 (epsilon-squared). Follow-up pairwise comparisons with Bonferroni correction showed..."
280
281---
282
283#### Bayesian Statistics
284
285**What to report**:
286- Prior distributions used
287- Posterior estimates (mean/median, credible intervals)
288- Bayes Factor (if hypothesis testing)
289- Convergence diagnostics (R-hat, ESS)
290- Posterior predictive checks
291
292**Example (Bayesian t-test)**:
293> "A Bayesian independent samples t-test was conducted using weakly informative priors (Normal(0, 1) for mean difference). The posterior distribution of the mean difference had a mean of 6.8 (95% credible interval [3.2, 10.4]), indicating that Group A scored higher than Group B. The Bayes Factor BF₁₀ = 45.3 provided very strong evidence for a difference between groups. There was a 99.8% posterior probability that Group A's mean exceeded Group B's mean."
294
295**Example (Bayesian regression)**:
296> "A Bayesian linear regression was fitted with weakly informative priors (Normal(0, 10) for coefficients, Half-Cauchy(0, 5) for residual SD). The model showed that study hours credibly predicted exam scores (β = 0.52, 95% CrI [0.38, 0.66]; 0 not included in the credible interval). All convergence diagnostics were satisfactory (R-hat < 1.01, ESS > 1000 for all parameters). Posterior predictive checks indicated adequate model fit."
297
298(Write "95% CrI" or "95% credible interval" for Bayesian intervals to distinguish them from frequentist confidence intervals.)
299
300---
301
302## Effect Sizes
303
304### Always Report
305
306**Why**:
307- p-values don't indicate magnitude
308- Required by APA and most journals
309- Essential for meta-analysis
310- Informs practical significance
311
312**Which effect size?**
313- T-tests: Cohen's d or Hedges' g
314- ANOVA: η², η²_p, or ω²
315- Correlation: r (already is an effect size)
316- Regression: β (standardized), R², f²
317- Chi-square: Cramér's V or φ
318
319**With confidence intervals**:
320- Always report CIs for effect sizes when possible
321- Shows precision of estimate
322- More informative than point estimate alone
323
324---
325
326## Figures and Tables
327
328### When to Use Tables vs. Figures
329
330**Tables**:
331- Exact values needed
332- Many variables/conditions
333- Descriptive statistics
334- Regression coefficients
335- Correlation matrices
336
337**Figures**:
338- Patterns and trends
339- Distributions
340- Interactions
341- Comparisons across groups
342- Time series
343
344### Figure Guidelines
345
346**General**:
347- Clear, readable labels
348- Sufficient font size (≥ 10pt)
349- High resolution (≥ 300 dpi for publications)
350- Monochrome-friendly (colorblind-accessible)
351- Error bars (SE or 95% CI; specify which!)
352- Legend when needed
353
354**Common figure types**:
355- Bar charts: Group comparisons (include error bars)
356- Box plots: Distributions, outliers
357- Scatter plots: Correlations, relationships
358- Line graphs: Change over time, interactions
359- Violin plots: Smoothed distributions; bandwidth and sample size matter, and raw points can be more informative for small samples
360
361**Example figure caption**:
362> "Figure 1. Mean exam scores by study condition. Error bars represent 95% confidence intervals. * p < .05, ** p < .01, *** p < .001."
363
364### Table Guidelines
365
366**General**:
367- Clear column and row labels
368- Consistent decimal places (usually 2)
369- Horizontal lines only (not vertical)
370- Notes below table for clarifications
371- Statistical symbols in italics (p, M, SD, F, t, r)
372
373**Example table**:
374
375**Table 1**
376*Descriptive Statistics and Intercorrelations*
377
378| Variable | M | SD | 1 | 2 | 3 |
379|----------|---|----|----|----|----|
380| 1. Study hours | 5.2 | 2.1 | — | | |
381| 2. Prior GPA | 3.1 | 0.5 | .42** | — | |
382| 3. Exam score | 75.3 | 10.2 | .47*** | .52*** | — |
383
384*Note*. N = 150. ** p < .01. *** p < .001.
385
386---
387
388## Common Mistakes to Avoid
389
3901. **Reporting p = .000**: Report p < .001 instead
3912. **Omitting effect sizes**: Always include them
3923. **Not reporting assumption checks**: Describe tests and outcomes
3934. **Confusing statistical and practical significance**: Discuss both
3945. **Only reporting significant results**: Report all planned analyses
3956. **Using "prove" or "confirm"**: Use "support" or "consistent with"
3967. **Saying "marginally significant" for .05 < p < .10**: Either significant or not
3978. **Reporting only one decimal for p-values**: APA style uses two or three decimals (p = .03 or p = .034, not p = .0)
3989. **Not specifying one- vs. two-tailed**: Always clarify
39910. **Inconsistent rounding**: Be consistent throughout
400
401---
402
403## Null Results
404
405### How to Report Non-Significant Findings
406
407**Don't say**:
408- "There was no effect"
409- "X and Y are unrelated"
410- "Groups are equivalent"
411
412**Do say**:
413- "There was no significant difference"
414- "The effect was not statistically significant"
415- "We did not find evidence for a relationship"
416
417**Include**:
418- Exact p-value (not just "ns" or "p > .05")
419- Effect size (shows magnitude even if not significant)
420- Confidence interval (may include meaningful values)
421- Prespecified design power or sensitivity calculation; do not use observed-effect power to explain a null finding
422
423**To claim equivalence**: p > .05 is not evidence of equivalence. Run an equivalence test (TOST) against a pre-specified smallest effect size of interest, or a Bayesian ROPE analysis (see bayesian_statistics.md):
424
425```python
426import pingouin as pg
427
428# TOST: is the group difference within +/- 0.5 raw units?
429print(pg.tost(group_a, group_b, bound=0.5, correction=True))
430# Reject both one-sided nulls at the prespecified alpha; report bounds and assumptions.
431```
432
433**Example**:
434> "Contrary to our hypothesis, there was no significant difference in creativity scores between the music (M = 72.1, SD = 8.3) and silence (M = 70.5, SD = 8.9) conditions, t(98) = 0.91, p = .36, d = 0.18, 95% CI [-0.21, 0.57]. A post hoc sensitivity analysis revealed that the study had 80% power to detect an effect of d = 0.57 or larger, characterizing design sensitivity; the confidence interval, rather than observed power, shows which effect magnitudes remain compatible with the data."
435
436---
437
438## Reproducibility
439
440### Materials to Share
441
4421. **Data**: De-identified raw data (or aggregate if sensitive)
4432. **Code**: Analysis scripts
4443. **Materials**: Stimuli, measures, protocols
4454. **Supplements**: Additional analyses, tables
446
447**Where to share**:
448- Open Science Framework (OSF)
449- GitHub (for code)
450- Journal supplements
451- Institutional repository
452
453**In paper**:
454> "Data, analysis code, and materials are available at https://osf.io/xxxxx/"
455
456---
457
458## Checklist for Statistical Reporting
459
460- [ ] Sample size and demographics
461- [ ] Study design clearly described
462- [ ] All measures described with reliability
463- [ ] Procedure detailed
464- [ ] Software and versions specified
465- [ ] Alpha level stated
466- [ ] Assumption checks reported
467- [ ] Descriptive statistics (M, SD, n)
468- [ ] Test statistics with df and p-values
469- [ ] Effect sizes with confidence intervals
470- [ ] All planned analyses reported (including non-significant)
471- [ ] Figures/tables properly formatted and labeled
472- [ ] Multiple comparisons corrections described
473- [ ] Missing data handling explained
474- [ ] Limitations discussed
475- [ ] Data/code availability statement
476
477---
478
479## Additional Resources
480
481- APA Publication Manual (7th edition)
482- CONSORT 2025 (for randomized trials; use appropriate extensions)
483- STROBE guidelines (for observational studies)
484- PRISMA guidelines (for systematic reviews/meta-analyses)
485- Wilkinson & Task Force on Statistical Inference (1999). Statistical methods in psychology journals.
486
487Reviewed 2026-10-01 against [APA JARS](https://apastyle.apa.org/jars), [CONSORT 2025](https://www.consort-spirit.org/_files/ugd/b5740e_a6856e5e2cf94a1db5a8005853404160.pdf), and [Pingouin TOST](https://pingouin-stats.org/generated/pingouin.tost.html). Statistical reporting does not by itself establish scientific validity, and journal-specific instructions may differ.

文件内容是平台检查时读出的文本,只供查看。平台不会运行包里的任何脚本或程序。