🧠MindStat

📊 Worked Examples

Step-by-step solutions for the most important statistical tests — with real data, complete formulas, result interpretation, and APA-7 reporting.

💡 Each example includes: research question → data → formula → step-by-step → result → APA-7 report.

📋 1 · Descriptive Statistics

Exam Scores: Central Tendency & Spread
Descriptive
Research Question: A professor records exam scores for 10 students. Describe the distribution.
Student12345678910
Score72859068789275886582
  1. 1
    Mean (x̄):
    x ¯ = x i n = 72 + 85 + 90 + 68 + 78 + 92 + 75 + 88 + 65 + 82 10 = 795 10 = 79.5
  2. 2
    Sample Standard Deviation:
    s = ( x i x ¯ ) 2 n 1 = ( 7.5 ) 2 + + ( 2.5 ) 2 9 = 630.5 9 = 70.06 8.37
  3. 3
    Median:
    Median = x ( 5 ) + x ( 6 ) 2 = 78 + 82 2 = 80.0
  4. 4
    SE:
    S E = s n = 8.37 10 = 8.37 3.162 = 2.65
79.5
Mean
80.0
Median
8.37
SD
2.65
SE
65–92
Range
APA-7
Descriptive statistics for exam scores (N = 10): M = 79.50, SD = 8.37, Mdn = 80.00, range = [65, 92].
Open in MindStat

⚖️ 2 · t-Tests

2a · One-Sample t-test
t-test
Research Question: The national average is 75. Does the class (n=10, M=79.5, s=8.37) differ significantly?
Formula
t = x ¯ μ 0 s / n , d f = n 1
  1. 1
    H₀: μ = 75  vs  H₁: μ ≠ 75  (two-tailed, α = .05)
  2. 2
    t = 79.5 75 8.37 / 10 = 4.5 2.646 = 1.700 , d f = 9
  3. 3
    Critical value: t*(df=9, α=.05) = ±2.262  →  |1.700| < 2.262
  4. 4
    Cohen's d:
    d = x ¯ μ 0 s = 79.5 75 8.37 = 0.538 ( medium )
1.700
t
9
df
.124
p
0.538
Cohen's d
Fail to Reject H₀ — p = .124 > .05
APA-7
A one-sample t-test indicated that the class mean (M = 79.50, SD = 8.37) did not significantly differ from the national standard of 75, t(9) = 1.70, p = .124, d = 0.54, 95% CI [−1.48, 10.48].
2b · Independent-Samples t-test (Welch)
t-test
Research Question: Does Drug A reduce pain scores more than Drug B?
GroupnMeanSD
Drug A124.21.3
Drug B105.81.9
Welch t-statistic
t W = x ¯ 1 x ¯ 2 s 1 2 n 1 + s 2 2 n 2
  1. 1
    S E = 1.3 2 12 + 1.9 2 10 = 1.69 12 + 3.61 10 = 0.1408 + 0.361 = 0.5018 = 0.7084
  2. 2
    t W = 4.2 5.8 0.7084 = 1.6 0.7084 = 2.258
  3. 3
    Welch-Satterthwaite df:
    d f = ( s 1 2 / n 1 + s 2 2 / n 2 ) 2 ( s 1 2 / n 1 ) 2 n 1 1 + ( s 2 2 / n 2 ) 2 n 2 1 = ( 0.5018 ) 2 ( 0.1408 ) 2 11 + ( 0.361 ) 2 9 15.7 15
  4. 4
    Cohen's d:
    d = | x ¯ 1 x ¯ 2 | s p , s p = ( n 1 1 ) s 1 2 + ( n 2 1 ) s 2 2 n 1 + n 2 2 = 11 ( 1.69 ) + 9 ( 3.61 ) 20 = 1.554 = 1.567
    d = 1.6 1.567 = 1.021 ( large )
−2.258
t(Welch)
15
df
.039
p
1.021
Cohen's d
🔴 Reject H₀ — p = .039 < .05
APA-7
An independent-samples Welch t-test revealed that Drug A (M = 4.20, SD = 1.30) produced significantly lower pain scores than Drug B (M = 5.80, SD = 1.90), t(15.00) = −2.26, p = .039, d = 1.02, 95% CI [−3.11, −0.09].
2c · Paired-Samples t-test
t-test
Research Question: Did training improve performance for the same 8 employees?
iBeforeAfterd = After − Befored − d̄(d − d̄)²
16072122.757.56
25568133.7514.06
370755-4.2518.06
465749-0.250.06
55871133.7514.06
672808-1.251.56
763707-2.255.06
86882144.7522.56
Σ81083.00
t = d ¯ s d / n , d ¯ = 81 8 = 10.125 , s d = 83.00 7 = 11.857 = 3.443
t = 10.125 3.443 / 8 = 10.125 1.217 = 8.320 , d f = n 1 = 7
Cohen's d (paired)
d = d ¯ s d = 10.125 3.443 = 2.941 ( very large )
8.320
t
7
df
<.001
p
2.941
Cohen's d
10.125
Mean Diff.
🔴 Reject H₀ — p < .001
APA-7
A paired-samples t-test indicated a statistically significant improvement in performance following training (M_diff = 10.13, SD_diff = 3.44), t(7) = 8.32, p < .001, d = 2.94, 95% CI [7.25, 13.00].

📊 3 · ANOVA

3a · One-Way ANOVA
ANOVA
Research Question: Do three teaching methods produce different exam scores?
Traditional (A)Blended (B)Online (C)
708575
728878
688272
749080
718776
M=71M=86.4M=76.2
ANOVA Decomposition
S S T o t a l = S S B e t w e e n + S S W i t h i n S S B = j = 1 k n j ( x ¯ j x ¯ . . ) 2 , S S W = j = 1 k i = 1 n j ( x i j x ¯ j ) 2 F = M S B M S W = S S B / ( k 1 ) S S W / ( N k )
  1. 1
    Grand Mean:
    x ¯ . . = 71 ( 5 ) + 86.4 ( 5 ) + 76.2 ( 5 ) 15 = 1178 15 = 77.87
  2. 2
    SSBetween:
    S S B = 5 ( 71 77.87 ) 2 + 5 ( 86.4 77.87 ) 2 + 5 ( 76.2 77.87 ) 2 = 5 ( 47.20 ) + 5 ( 72.76 ) + 5 ( 2.79 ) = 236.0 + 363.8 + 13.9 = 613.7
  3. 3
    SSWithin:
    S S W = [ ( 70 71 ) 2 + ( 72 71 ) 2 + ] + = 20.0 + 38.8 + 42.8 = 101.6
  4. 4
    F-statistic:
    M S B = 613.7 3 1 = 306.85 , M S W = 101.6 15 3 = 8.467 F ( 2 , 12 ) = 306.85 8.467 = 36.24
  5. 5
    η²:
    η 2 = S S B S S T = 613.7 613.7 + 101.6 = 613.7 715.3 = 0.858 ( large,  η 2 > .14 )
36.24
F(2,12)
<.001
p
0.858
η²
306.85
MSB
8.467
MSW
🔴 Reject H₀ — F(2,12) = 36.24, p < .001
APA-7
A one-way ANOVA revealed a significant effect of teaching method, F(2, 12) = 36.24, p < .001, η² = .86. Tukey: Blended > Online > Traditional, all ps < .001.
Open in MindStat

🔢 4 · Non-parametric Tests

4a · Mann-Whitney U Test
Non-parametric
Research Question: Do satisfaction scores differ between two departments?
Dept A68249
Dept B751031
U Statistic
U 1 = n 1 n 2 + n 1 ( n 1 + 1 ) 2 R 1 , U = min ( U 1 , U 2 )
  1. 1
    Rank all 10 combined (1=lowest):
    Value12345678910
    Rank12345678910
    GroupBABABABAAB
  2. 2
    R 1 = 2 + 4 + 6 + 8 + 9 = 29 ( sum of ranks for Dept A ) U 1 = 5 × 5 + 5 × 6 2 29 = 25 + 15 29 = 11 U 2 = n 1 n 2 U 1 = 25 11 = 14 , U = min ( 11 , 14 ) = 11
  3. 3
    Normal approximation (for reference):
    z = U n 1 n 2 / 2 n 1 n 2 ( n 1 + n 2 + 1 ) / 12 = 11 12.5 25 × 11 / 12 = 1.5 4.787 = 0.313
  4. 4
    Effect size r:
    r = | z | N = 0.313 10 = 0.099 ( small )
11
U
.754
p (exact)
0.099
r
Fail to Reject H₀ — p = .754
APA-7
A Mann-Whitney U test revealed no significant difference in satisfaction scores between Department A and B, U = 11, z = −0.31, p = .754, r = .10.
4b · Kruskal-Wallis H Test
Non-parametric
Research Question: Do pain levels differ across three clinics?
Clinic AClinic BClinic C
3,5,4,2,67,9,8,10,65,4,6,3,5
Kruskal-Wallis H
H = 12 N ( N + 1 ) j = 1 k R j 2 n j 3 ( N + 1 )
  1. 1
    Rank all 15 values:
    R A = 2 + 6.5 + 4 + 1 + 9 = 22.5 , R B = 11 + 14 + 13 + 15 + 9 = 62 , R C = 6.5 + 4 + 9 + 2 + 6.5 = 28
    (ties averaged)
  2. 2
    H = 12 15 × 16 ( 22.5 2 5 + 62 2 5 + 28 2 5 ) 3 ( 16 ) = 12 240 ( 101.25 + 768.8 + 156.8 ) 48 = 0.05 ( 1026.85 ) 48 = 51.34 48 = 3.34
  3. 3
    Compare to χ²(2) = 5.99 → H = 3.34 < 5.99
3.34
H
2
df
.188
p
Fail to Reject H₀ — p = .188
APA-7
A Kruskal-Wallis test indicated no significant difference in pain levels across clinics, H(2) = 3.34, p = .188, η² = .10.

🔗 5 · Correlation

5a · Pearson Correlation
Correlation
Research Question: Is there a linear relationship between study hours and GPA?
iX (hrs)Y (GPA)X−X̄Y−Ȳ(X−X̄)(Y−Ȳ)(X−X̄)²(Y−Ȳ)²
1102.8-5-0.552.75250.30
2153.20-0.15000.02
3203.850.452.25250.20
4123.0-3-0.351.0590.12
5183.630.250.7590.06
682.5-7-0.855.95490.72
7224.070.654.55490.42
8153.30-0.05000.003
Σ12027.20017.301661.843
r = ( x i x ¯ ) ( y i y ¯ ) ( x i x ¯ ) 2 ( y i y ¯ ) 2 = 17.30 166 × 1.843 = 17.30 305.9 = 17.30 17.49 = 0.989
Significance test (t)
t = r n 2 1 r 2 = 0.989 6 1 0.978 = 0.989 × 2.449 0.022 = 2.422 0.148 = 16.36 , d f = 6
95% CI (Fisher-z)
z r = tanh 1 ( r ) = 1 2 ln 1 + r 1 r = 1 2 ln 1.989 0.011 = 2.693 C I z : 2.693 ± 1.96 n 3 = 2.693 ± 0.981 [ 1.712 ,   3.674 ] r [ .936 ,   .998 ]
.989
r
.978
16.36
t(6)
<.001
p
🔴 Strong positive correlation, r = .989, p < .001
APA-7
Study hours and GPA were strongly positively correlated, r(6) = .99, p < .001, 95% CI [.94, 1.00]. Study hours accounted for 97.8% of the variance in GPA.

📈 6 · Simple Linear Regression

Predict GPA from Study Hours
Regression
Research Question: Predict GPA from study hours (same data as correlation example).
OLS Coefficients
b 1 = ( x i x ¯ ) ( y i y ¯ ) ( x i x ¯ ) 2 = 17.30 166 = 0.1042 b 0 = y ¯ b 1 x ¯ = 3.40 0.1042 × 15 = 3.40 1.563 = 1.837 y ^ = 1.837 + 0.1042 x
R², F, SE
S S R e s = ( y i y ^ i ) 2 = 0.040 , S S T o t = 1.843 R 2 = 1 S S R e s S S T o t = 1 0.040 1.843 = 0.978 F ( 1 , 6 ) = R 2 / ( p 1 ) ( 1 R 2 ) / ( n p ) = 0.978 / 1 0.022 / 6 = 0.978 0.00367 = 267.0 S E b 1 = S S R e s / ( n 2 ) ( x x ¯ ) 2 = 0.040 / 6 166 = 0.0000402 = 0.00634
CoefficientBSEtp95% CI
b₀ (Intercept)1.8370.10717.17<.001[1.575, 2.099]
b₁ (Hours)0.10420.0063416.44<.001[0.0887, 0.1197]
0.978
267.0
F(1,6)
<.001
p
0.1042
β (slope)
Every additional hour → GPA +0.104. R² = 97.8%.
APA-7
Simple linear regression: GPA = 1.84 + 0.10 × Hours, F(1, 6) = 267.0, p < .001, R² = .978.

🗂️ 7 · Chi-Square Test

Smoking vs Cancer
Categorical
Research Question: Is smoking associated with cancer diagnosis (N=200)?
Cancer: YesCancer: NoRow Total
Smoker50 (E=32)30 (E=48)80
Non-Smoker30 (E=48)90 (E=72)120
Col Total80120200
Expected: E = (R × C) / N
E 11 = 80 × 80 200 = 32 , E 12 = 80 × 120 200 = 48 E 21 = 120 × 80 200 = 48 , E 22 = 120 × 120 200 = 72
χ²
χ 2 = ( O E ) 2 E = ( 50 32 ) 2 32 + ( 30 48 ) 2 48 + ( 30 48 ) 2 48 + ( 90 72 ) 2 72 = 324 32 + 324 48 + 324 48 + 324 72 = 10.125 + 6.75 + 6.75 + 4.5 = 28.125
Cramér's V
V = χ 2 N min ( r 1 , c 1 ) = 28.125 200 × 1 = 0.1406 = 0.375 ( medium-large )
28.125
χ²
1
df
<.001
p
0.375
Cramér's V
🔴 Reject H₀ — p < .001. Smoking and cancer are significantly associated.
APA-7
A chi-square test of independence indicated a significant association between smoking and cancer, χ²(1, N = 200) = 28.13, p < .001, V = .375.

🔒 8 · Cronbach's Alpha

5-Item Job Satisfaction Scale
Reliability
Research Question: Is this 5-item Likert satisfaction scale internally consistent?
Resp.Q1Q2Q3Q4Q5Sum
14354319
22232211
35455423
43343316
5122128
64544522
2.071.271.272.271.07σ²_T=28.56
Cronbach's α
α = k k 1 ( 1 s i 2 σ T 2 ) s i 2 = 2.07 + 1.27 + 1.27 + 2.27 + 1.07 = 7.95 α = 5 4 ( 1 7.95 28.56 ) = 1.25 × ( 1 0.2783 ) = 1.25 × 0.7217 = 0.902
0.902
α
5
Items
Excellent
Rating
α = .902 — Excellent internal consistency (α > .90)
APA-7
The internal consistency of the 5-item job satisfaction scale was excellent, α = .90, exceeding the recommended threshold of .70.

🔁 9 · Repeated-Measures ANOVA

Memory Scores: 3 Time Points
RM-ANOVA
Research Question: Do memory scores change over 3 time points in 5 participants?
Subj.T1T2T3
14686.0
25797.0
33575.0
468108.0
52464.0
T̄ⱼ4.06.08.06.0 (Grand)
SS Decomposition
S S T i m e = n j ( T ¯ j x ¯ . . ) 2 = 5 [ ( 4 6 ) 2 + ( 6 6 ) 2 + ( 8 6 ) 2 ] = 5 [ 4 + 0 + 4 ] = 40 S S S u b j e c t s = k i ( P ¯ i x ¯ . . ) 2 = 3 [ ( 6 6 ) 2 + ( 7 6 ) 2 + ( 5 6 ) 2 + ( 8 6 ) 2 + ( 4 6 ) 2 ] = 3 [ 0 + 1 + 1 + 4 + 4 ] = 30 S S E r r o r = S S T o t a l S S T i m e S S S u b j e c t s S S T o t a l = ( x i j x ¯ . . ) 2 = 70 , S S E r r o r = 70 40 30 = 0
F = M S T i m e M S E r r o r = 40 / 2 0 / 8 (perfect linear trend — theoretical) η p a r t i a l 2 = S S T i m e S S T i m e + S S E r r o r = 40 40 + 0 = 1.000
📌 In real data: use MindStat for Mauchly's test + GG/HF corrections.
APA-7 (template)
A one-way RM-ANOVA indicated a significant effect of time, F(2, 8) = XX, p < .001, η²_p = .XX. Pairwise Bonferroni comparisons: all periods differ significantly.
Open in MindStat

10 · Power Analysis & Sample Size

Sample Size for Independent t-test
Power
Scenario: Two-group RCT, d = 0.5 (medium), α = .05, power = .80.
Cohen's n per group
n = ( z α / 2 + z β ) 2 × 2 d 2 z α / 2 = z .025 = 1.96 , z β = z .20 = 0.842 n = ( 1.96 + 0.842 ) 2 × 2 0.5 2 = ( 2.802 ) 2 × 2 0.25 = 7.851 × 2 0.25 = 15.70 0.25 = 62.8 63  per group
d80% Power90% Power95% Power
0.2 (small)197265327
0.5 (medium)6385105
0.8 (large)263442
1.0 (very large)172227
63
n per group
126
Total N
80%
Power
APA-7
An a priori power analysis indicated that 63 participants per group (N = 126) were required to detect d = 0.50 with 80% power at α = .05 (two-tailed).
Power Analysis in MindStat

📐 11 · Normality Testing (Shapiro-Wilk)

11a · Data Consistent with Normality
Normality
Research Question: Are BP readings normally distributed before applying a t-test?
i12345678910
BP118120122124124126128130133135
Shapiro-Wilk W
W = b 2 S S , b = i = 1 n / 2 a i ( x ( n + 1 i ) x ( i ) ) , S S = ( x i x ¯ ) 2
  1. 1
    Sort ascending, compute x̄ and SS
    x ¯ = 126.0 , S S = ( 118 126 ) 2 + + ( 135 126 ) 2 = 274
  2. 2
    Coefficients (n=10): a₁=0.5739, a₂=0.3291, a₃=0.2141, a₄=0.1224, a₅=0.0399
    x ( 10 ) x ( 1 ) = 17 , x ( 9 ) x ( 2 ) = 13 , x ( 8 ) x ( 3 ) = 8 , x ( 7 ) x ( 4 ) = 4 , x ( 6 ) x ( 5 ) = 2 b = 0.5739 ( 17 ) + 0.3291 ( 13 ) + 0.2141 ( 8 ) + 0.1224 ( 4 ) + 0.0399 ( 2 ) = 9.756 + 4.278 + 1.713 + 0.490 + 0.080 = 16.317
  3. 3
    W = ( 16.317 ) 2 274 = 266.2 274 = 0.972
0.972
W
.895
p
10
n
Fail to Reject H₀ — Normality confirmed, W(10) = 0.97, p = .895
APA-7
Shapiro-Wilk testing confirmed normality, W(10) = 0.97, p = .895.
11b · Detecting Non-Normality
Non-Normal
Research Question: Are ER waiting times normally distributed?
i12345678910
Min581012152035527895
  1. 1
    x ¯ = 33.0 , S S = 9,106 Differences:  x ( 10 ) x ( 1 ) = 90 , 70 , 42 , 23 , 5 b = 0.5739 ( 90 ) + 0.3291 ( 70 ) + 0.2141 ( 42 ) + 0.1224 ( 23 ) + 0.0399 ( 5 ) = 51.65 + 23.04 + 8.99 + 2.82 + 0.20 = 86.70 W = ( 86.70 ) 2 9106 = 7516.9 9106 = 0.825
0.825
W
.030
p
<.05
Violation
🔴 Reject H₀ — Data NOT normal, W(10) = 0.83, p = .030 → use non-parametric test
💡 Decision rule: p > .05 → normality assumed; p ≤ .05 → non-parametric or transform data.
Test Normality in MindStat

🔀 12 · Two-Way ANOVA (Factorial Design)

Teaching Method × Class Size Interaction
ANOVA
Research Question: Does teaching method's effect depend on class size? 2×2 factorial, N=24.
SmallLargeRow Mean
Traditional68.070.069.0
Active82.074.078.0
Col Mean75.072.073.0 (GM)
SS Formulas
S S A = n k B ( M ¯ A i GM ) 2 , S S B = n k A ( M ¯ B j GM ) 2 S S A × B = n ( M i j M ¯ A i M ¯ B j + GM ) 2
  1. 1
    Main Effect A — Teaching Method
    S S A = 6 × 2 × [ ( 69.0 73.0 ) 2 + ( 78.0 73.0 ) 2 ] = 12 × [ 16 + 25 ] = 492 F A = 492 / 1 30.25 = 16.27 , p = .001
  2. 2
    Main Effect B — Class Size
    S S B = 6 × 2 × [ ( 75.0 73.0 ) 2 + ( 72.0 73.0 ) 2 ] = 12 × [ 4 + 1 ] = 60 F B = 60 / 1 30.25 = 1.98 , p = .174
  3. 3
    Interaction A×B
    Residuals:  ( 68 69 75 + 73 ) = 3 , ( 70 69 72 + 73 ) = 2 , ( 82 78 75 + 73 ) = 2 , ( 74 78 72 + 73 ) = 3 S S A × B = 6 × [ ( 3 ) 2 + 2 2 + 2 2 + ( 3 ) 2 ] = 6 × 26 = 156 , F A × B = 156 30.25 = 5.16 , p = .034
  4. 4
    Interpret: Active Learning gains +14 pts in small classes but only +4 pts in large classes — the interaction is meaningful.
SourceSSdfMSFpη²p
Method (A)492149216.27.001.448
Class Size (B)601601.98.174.090
A × B15611565.16.034.205
Error6052030.25
Total131323
Significant A×B interaction, F(1,20) = 5.16, p = .034
APA-7
A 2×2 ANOVA showed a significant Method × Class Size interaction, F(1, 20) = 5.16, p = .034, η²p = .21. Active Learning gained +14 points in small classes but only +4 in large classes.
Two-Way ANOVA in MindStat

🏅 13 · Spearman Rank Correlation

Study Hours Rank vs Exam Rank
Spearman
Research Question: Monotonic relationship between study hours rank and exam rank (n=8)?
StudentHoursRank XExamRank Yd = Rₓ−Rᵧ
A31622−11
B4255111
C5368300
D64745−11
E7571411
F86857−11
G9780611
H10891800
Σ06
Spearman's rₛ
r s = 1 6 d i 2 n ( n 2 1 ) = 1 6 × 6 8 ( 64 1 ) = 1 36 504 = 1 0.071 = 0.929
t-test for rₛ
t = r s n 2 1 r s 2 = 0.929 6 1 0.863 = 0.929 × 43.8 = 0.929 × 6.62 = 6.15 , d f = 6
.929
rₛ
6.15
t(6)
<.001
p
Large
Effect
🔴 Strong monotonic relationship, rₛ(6) = .929, p < .001
APA-7
A Spearman correlation indicated a strong positive relationship, rₛ(6) = .93, p < .001.
💡 Use Spearman when data is ordinal, non-normal, or contains outliers.
Spearman Correlation in MindStat

📊 14 · Multiple Linear Regression

Exam Score ← Study Hours + Sleep Hours
Multiple Reg.
Research Question: Can study hours and sleep hours together predict exam score (n=10)?
iX₁ (Study)X₂ (Sleep)Y (Score)Ŷe = Y−Ŷ
1465855.32.7
2676464.7−0.7
3887274.0−2.0
4555556.1−1.1
5987877.40.6
6777068.11.9
71098583.41.6
8365251.90.1
9866868.9−0.9
10686567.2−2.2
6.67.066.7
OLS solution
S x 1 x 1 = 44.4 , S x 2 x 2 = 14.0 , S x 1 x 2 = 18.0 S y x 1 = 196.8 , S y x 2 = 97.0 b 1 = S y x 1 S x 2 x 2 S y x 2 S x 1 x 2 S x 1 x 1 S x 2 x 2 S x 1 x 2 2 = 196.8 × 14 97.0 × 18 44.4 × 14 18 2 = 1009.2 297.6 = 3.39 b 2 = S y x 2 S x 1 x 1 S y x 1 S x 1 x 2 297.6 = 764.4 297.6 = 2.57 b 0 = Y ¯ b 1 X ¯ 1 b 2 X ¯ 2 = 66.7 3.39 ( 6.6 ) 2.57 ( 7.0 ) = 26.34 Y ^ = 26.34 + 3.39 X 1 + 2.57 X 2
PredictorbSEtp95% CIβ (std)
Intercept26.344.186.30<.001[17.1, 35.6]
Study Hours3.390.418.27<.001[2.4, 4.4].74
Sleep Hours2.570.743.47.010[0.9, 4.2].32
R², Adjusted R², F
S S t o t = 942.1 , S S r e s = 25.6 , S S r e g = 916.5 R 2 = 916.5 942.1 = .973 , R a d j 2 = 1 25.6 / 7 942.1 / 9 = .965 F ( 2 , 7 ) = 916.5 / 2 25.6 / 7 = 458.3 3.66 = 125.2 , p < .001
.973
.965
Adj R²
125.2
F(2,7)
<.001
p
Model explains 97.3% of variance — study hours (β=.74) and sleep hours (β=.32) both significant.
APA-7
Multiple regression: F(2, 7) = 125.2, p < .001, R² = .973. Study hours (β=.74, p<.001) and sleep hours (β=.32, p=.010) both predicted exam scores.
Multiple Regression in MindStat

⚙️ 15 · Logistic Regression

Predict Pass/Fail from Study Hours
Logistic
Research Question: Does study hours predict pass/fail probability (n=20)?
Logistic Model
P ( pass ) = 1 1 + e ( b 0 + b 1 X ) = e b 0 + b 1 X 1 + e b 0 + b 1 X
  1. 1
    Maximum likelihood estimates
    b 0 = 8.76 ( S E = 3.42 ) , b 1 = 1.12 ( S E = 0.48 ) Y ^ = 1 1 + e ( 8.76 + 1.12 X )
  2. 2
    Predicted probabilities
    Study hrs678910
    P(pass).115.283.550.798.922
    At  X = 8 : P ( pass ) = 1 1 + e ( 8.76 + 8.96 ) = 1 1 + e 0.20 = 1 1.819 = 0.55
  3. 3
    Odds Ratio (OR)
    O R = e b 1 = e 1.12 = 3.06 95 [ 1.19 , 7.87 ] Each additional study hour multiplies the odds of passing by 3.06×
  4. 4
    Model fit
    Overall model:  χ 2 ( 1 ) = 14.5 , p < .001 , Nagelkerke  R 2 = .72 Wald test:  χ 2 ( 1 ) = 5.44 , p = .020 (for  b 1 ) Correctly classified:  85 %
3.06
OR
<.001
Model p
.72
Nagelkerke R²
85%
Classified
Study hours predicts pass/fail, OR = 3.06, p < .001
APA-7
Logistic regression: Study hours predicted pass/fail, χ²(1) = 14.5, p < .001, OR = 3.06, 95% CI [1.19, 7.87].
Logistic Regression in MindStat

🎯 16 · Effect Sizes

Four Effect Size Measures with Worked Examples
Effect Size
Effect size measures the practical importance of a finding, independent of sample size.
Cohen's d — for t-tests
Cohen's d
d = M 1 M 2 S D p o o l e d , S D p o o l e d = ( n 1 1 ) S D 1 2 + ( n 2 1 ) S D 2 2 n 1 + n 2 2
Worked example
S D p o o l e d = 14 ( 6.5 ) 2 + 14 ( 5.9 ) 2 28 = 592 + 487 28 = 38.5 = 6.21 d = 82 76 6.21 = 6 6.21 = 0.97 ( large )
Eta-squared η² — for ANOVA
η 2 = S S b e t w e e n S S t o t a l , ω 2 = S S b e t w e e n d f b e t w e e n M S w i t h i n S S t o t a l + M S w i t h i n ( less biased ) Example:  S S b e t w e e n = 180 , S S t o t a l = 520 η 2 = 180 520 = .346 ( large )
Cramér's V — for χ²
V = χ 2 n min ( r 1 , c 1 ) Example:  χ 2 = 8.64 , n = 45 , 2 × 2  table V = 8.64 45 × 1 = .192 = .438 ( large )
r (non-parametric effect size)
r = | z | N Example:  z = 2.45 , N = 30 r = 2.45 30 = 2.45 5.48 = .447 ( medium-large )
MeasureUse withSmallMediumLarge
Cohen's dt-tests0.200.500.80
η² (eta-squared)ANOVA.01.06.14
η²p (partial)Factorial ANOVA.01.06.14
Cramér's VChi-square.10.30.50
r (Pearson/Spearman)Correlation.10.30.50
r (z/√N)Mann-Whitney.10.30.50
💡 Cohen's thresholds are benchmarks, not rules — interpret effect sizes in context.
Compute Effect Sizes in MindStat

📏 17 · Confidence Intervals

Three CI Types — Mean, Proportion, Difference
CI
95% CI for a Single Mean
Scenario: n=30 BP readings, M=128.4, SD=14.2 → 95% CI
C I = X ¯ ± t S D n , S E = 14.2 30 = 14.2 5.477 = 2.593 , t ( 29 , 0.025 ) = 2.045 C I = 128.4 ± 2.045 × 2.593 = 128.4 ± 5.30 = [ 123.1 , 133.7 ]  mmHg
128.4
Mean
±5.3
Margin
[123.1, 133.7]
95% CI
95% CI for a Proportion
Scenario: 142/200 patients satisfied (p̂=0.71) → 95% CI
C I = p ^ ± z p ^ ( 1 p ^ ) n , S E = 0.71 × 0.29 200 = 0.001030 = 0.0321 , z = 1.96 C I = 0.71 ± 1.96 × 0.0321 = 0.71 ± 0.063 = [ 0.647 , 0.773 ]
71.0%
±6.3%
Margin
[64.7%, 77.3%]
95% CI
95% CI for Difference Between Two Means
Drug (M=85.2, SD=7.4) vs Placebo (M=79.6, SD=8.1), n=20 each → 95% CI for M₁−M₂
S D p = 19 ( 7.4 ) 2 + 19 ( 8.1 ) 2 38 = 1038 + 1246 38 = 60.1 = 7.75 S E d i f f = S D p 1 n 1 + 1 n 2 = 7.75 2 20 = 7.75 × 0.316 = 2.45 C I = ( 85.2 79.6 ) ± t ( 38 ) × 2.45 = 6.0 2.024 × 2.45 [ 1.04 , 10.96  points ]
6.0
Δ Mean
±4.96
Margin
[1.04, 10.96]
95% CI
CI excludes 0 → significant difference. Drug improves score by 1–11 points.
APA-7
95% CI for the mean difference = [1.04, 10.96]; excludes zero → significant at α = .05.
Confidence Intervals in MindStat

🔄 18 · Mediation Analysis

Mindfulness → Stress → Anxiety (Simple Mediation)
Mediation
Research Question: Does mindfulness reduce anxiety indirectly through stress? N=90.
PathDescriptionbSEtp
aTraining → Stress−6.401.30−4.92<.001
bStress → Anxiety0.620.115.64<.001
cTotal effect (c)−7.801.90−4.11<.001
c'Direct effect (c')−3.831.82−2.11.037
Indirect Effect = a × b
Indirect effect = a × b = ( 6.40 ) × ( 0.62 ) = 3.97 Bootstrap 95% CI for  a b : [ 6.12 , 1.94 ] (excludes 0 → significant mediation) Proportion mediated = | a b | | c | = 3.97 7.80 = 50.9 %
−3.97
Indirect
[−6.12, −1.94]
Boot CI
50.9%
Mediated
Significant partial mediation: 51% of training's effect on anxiety is through stress reduction.
APA-7
Simple mediation: ab = −3.97, 95% bootstrap CI [−6.12, −1.94]; 51% of total effect mediated through stress. Partial mediation (direct effect c' = −3.83, p = .037 remains).
💡 Full mediation: c' non-significant. Partial: c' remains significant. Use bootstrap CIs, not Sobel test.
Mediation Analysis in MindStat

📉 19 · Survival Analysis (Kaplan-Meier)

Time-to-Relapse: Drug A vs Drug B
Survival
Research Question: Does Drug A prolong relapse-free survival vs Drug B? (†=censored)
Drug A (n=12)358111520†22†24†24†26†28†30†
Drug B (n=12)246810141820†22†24†26†28†
  1. 1
    KM formula: S(tⱼ) = S(tⱼ₋₁) × (1 − dⱼ/nⱼ)
    t (months)nⱼ (at risk)dⱼ (events)1−dⱼ/nⱼS(t) Drug A
    01201.000
    312111/120.917
    511110/110.833
    81019/100.750
    11918/90.667
    15716/70.571
  2. 2
    Summary statistics
    Median SurvivalS(12 mo)Events/N
    Drug A22 months0.7505/12
    Drug B14 months0.5007/12
  3. 3
    Log-rank test
    χ l o g r a n k 2 = ( O 1 E 1 ) 2 E 1 + ( O 2 E 2 ) 2 E 2 = 5.02 , d f = 1 , p = .025
22 mo
Median A
14 mo
Median B
5.02
χ²(1)
.025
p
Drug A significantly prolongs survival: 22 vs 14 months, p = .025
APA-7
Kaplan-Meier analysis: Drug A (median = 22 mo) vs Drug B (median = 14 mo), log-rank χ²(1) = 5.02, p = .025. At 12 months, 75% vs 50% remained relapse-free.
💡 Censored observations (†) contribute data up to their last follow-up. KM correctly handles censoring.
Survival Analysis in MindStat

📐 20 · Sample Size

How Many Participants Do I Need?
Sample Size
Research Question: Master's student comparing two teaching methods.
ParameterValueWhy
d0.5متوسط (Cohen 1988)
α0.05معياري
Power0.80الحد الأدنى الموصى به
Formula
n = 2 ( z α / 2 + z β ) 2 d 2
  1. 1
    z-values:
    z α / 2 = z 0.025 = 1.96 z β = z 0.20 = 0.842
  2. 2
    n per group:
    n = 2 ( 1.96 + 0.842 ) 2 ( 0.5 ) 2 = 2 × 7.857 0.25 = 15.713 0.25 63
  3. 3
    Attrition buffer:
    n a d j = 63 1 0.15 = 63 0.85 75  per group
  4. 4
    Total N:
    N t o t a l = 75 × 2 = 150  participants
63
Min/group
75
Recruit/group
150
Total N
80%
Power
APA-7
APA-7 power statement.
Calculate in MindStat

📋 Open your SPSS file

From SPSS to MindStat
Migration
Why:
How:
Open MindStat →

💻 21 · SPSS Output

Interpreting SPSS t-test Output
SPSS
Research Question: How to read the SPSS Independent Samples Test table.
Levene F Sig. t df p Δ̄ SE CI₋ CI₊
Equal var.2.14.149−3.4248.001−4.801.40−7.63−1.97
Unequal var.−3.4245.7.001−4.801.40−7.64−1.96
  1. 1
    Levene's Test: F = 2.14, p = .149 → use Equal variances row.
  2. 2
    t, df, p: t(48) = −3.42, p = .001 → significant.
  3. 3
    Cohen's d:
    d = | t | n 1 + n 2 × 2 = 3.42 50 × 2 = 3.42 7.07 × 1.414 = 0.68 ( large )
  4. 4
    95% CI [−7.63, −1.97]: CI excludes zero → significant.
−3.42
t(48)
.001
p
−4.80
Δ̄
0.68
Cohen's d
🔴 Reject H₀ — p = .001 < .05
APA-7
APA-7 result.
Run t-test in MindStat

✍️ 22 · APA-7 Writing

APA-7 Result Sentences
APA-7
Why: APA-7 rules for reporting statistics.
الخطأالصحيح
p = 0.043p = .043
p = 0.000p < .001
t = 3.42 (df=48)t(48) = 3.42
No effect sizeAdd d / η² / r / R²
R² = 0.47R² = .47
  1. t
    t-test:
    t-test APA sentence.
  2. F
    ANOVA:
    ANOVA APA sentence.
  3. r
    Correlation:
    Correlation APA sentence.
  4. Regression:
    Regression APA sentence.
p = .043
p < .001
t(48)
η² / d
APA-7
APA-7 methods sentence.
Generate APA in MindStat

📋 23 · Likert Scale

Likert Scale — Complete Analysis
Likert
Research Question: 5-item Likert scale for 8 employees.
مف1ف2ف3ف4ف5
14345420
22232312
35454523
43334316
54545422
62323212
75455423
83433417
  1. 1
    Descriptives:
    x ¯ t o t a l = 20 + 12 + 23 + 16 + 22 + 12 + 23 + 17 8 = 145 8 = 18.13 , S D = 4.36
  2. 2
    Item mean:
    x ¯ i t e m = 18.13 5 = 3.63 out of 5
  3. 3
    Cronbach's α:
    α = k k 1 ( 1 s i 2 s T 2 ) = 5 4 ( 1 5.33 19.0 ) = 5 4 ( 0.720 ) = 0.90
  4. 4
    Interpretation: 3.63 falls in High range (3.41–5.00).
18.13
M total
3.63
M item
0.90
α
HIGH
Level
APA-7
APA-7 Likert result.
Calculate Alpha

📊 24 · Multiple Regression

Multiple Regression — Step by Step
Multiple Reg.
Research Question: Predict job performance from 3 predictors.
مYX₁X₂X₃
1723403.5
2857604.2
39010804.8
4682303.0
5785553.8
69212905.0
7754453.6
8888704.5
9651252.8
10826654.0
Model
Y ^ = b 0 + b 1 X 1 + b 2 X 2 + b 3 X 3 Y ^ = 48.2 + 1.83 X 1 + 0.21 X 2 + 3.94 X 3
  1. 1
    Coefficients:
    المتنبئbSEβtp
    b₀48.24.111.76<.001
    X₁1.830.42.524.36.003
    X₂0.210.09.282.33.052
    X₃3.941.21.383.26.014
  2. 2
    Model fit:
    R 2 = .973 , R a d j 2 = .959 , F ( 3 , 6 ) = 71.9 , p < .001
  3. 3
    Strongest predictor: X₁ β = .52 → strongest predictor.
  4. 4
    Interpret b₁: +1 year experience → +1.83 performance points.
.973
71.9
F(3,6)
<.001
p
β=.52
X₁ best
🟢 Model significant — p < .001
APA-7
APA-7 multiple regression result.
Run Regression

🌀 26 · Mauchly's Sphericity Test

Mauchly's Test of Sphericity
RM-ANOVA
Research Question: Do we meet the sphericity assumption before an RM-ANOVA?
P A B C D
18716
29525
36238
45319
58458
67567
710272
812681
Mauchly's W
W = det ( S ) [ tr ( S ) k 1 ] k 1
χ 2 = [ n 1 2 ( k 1 ) 2 + ( k 1 ) + 2 6 ( k 1 ) ] ln W , d f = ( k 1 ) k 2 1
  1. 1
    Orthonormal contrasts: Transform to k−1 = 3 orthonormal contrast scores.
  2. 2
    Covariance matrix S:
    tr ( S ) = 21.91 , det ( S ) = 53.1
  3. 3
    W:
    W = 53.1 ( 21.91 / 3 ) 3 = 53.1 389.6 = 0.1362
  4. 4
    χ² approximation:
    χ 2 = [ 8 1 2 ( 9 ) + 3 + 2 18 ] ln ( 0.1362 ) = 6.72 × ( 1.994 ) = 11.41 , d f = 5
  5. 5
    Decision: p = .044 → violated → apply GG/HF correction.
0.1362
W
11.41
χ²
5
df
.044
p
🔴 Sphericity violated — W = 0.136, χ²(5) = 11.41, p = .044.
APA-7
Mauchly's test indicated the sphericity assumption was violated, χ²(5) = 11.41, p = .044; degrees of freedom were corrected using Greenhouse-Geisser estimates (ε = .62).
Open in MindStat

💻 27 · Reading SPSS ANOVA Output

Interpreting SPSS ANOVA Output
SPSS
Research Question: How to read the SPSS ANOVA and homogeneity tables.
Source SS df MS F Sig.
Between613.732306.8736.24.000
Within101.60128.47
Total715.3314
  1. 1
    Levene's Test first: Levene Sig. > .05 → standard ANOVA valid.
  2. 2
    F and Sig.: F(2,12) = 36.24, and .000 means p < .001, not p = 0.
  3. 3
    Effect size η²:
    η 2 = S S B e t w e e n S S T o t a l = 613.73 715.33 = 0.858 ( large )
  4. 4
    Post-hoc: Tukey 'Multiple Comparisons': pairs with Sig. < .05 differ.
36.24
F(2,12)
<.001
p (from .000)
0.858
η²
🔴 Significant — F(2,12) = 36.24, p < .001, η² = .86.
APA-7
A one-way ANOVA showed a significant effect, F(2, 12) = 36.24, p < .001, η² = .86. (SPSS's .000 is reported as p < .001.)
Open in MindStat

📊 28 · Welch's ANOVA

Welch's ANOVA — Unequal Variances
ANOVA
Research Question: Does course format affect scores despite wildly unequal variances?
A B C
585078
6210082
595579
619581
607580
Standard F
F = M S B M S W = S S B / ( k 1 ) S S W / ( N k )
Welch's F
F W = w i ( x ¯ i x ¯ w ) 2 / ( k 1 ) 1 + 2 ( k 2 ) k 2 1 ( 1 w i / w ) 2 n i 1 , w i = n i s i 2
  1. 1
    Means and variances:
    x ¯ A = 60.00 ,   s A 2 = 2.50 x ¯ B = 75.00 ,   s B 2 = 512.50 x ¯ C = 80.00 ,   s C 2 = 2.50
    B's variance is 200× A's or C's.
  2. 2
    Levene's test first:
    F L e v e n e ( 2 , 12 ) = 12.96 , p = .001
    Variances significantly unequal → prefer Welch.
  3. 3
    Standard ANOVA (for contrast):
    S S B = 1083.33 ,   S S W = 2070.00 ,   F ( 2 , 12 ) = 541.67 172.50 = 3.14 ,   p = .080
    Misleading 'not significant' — B's variance inflates the pooled error.
  4. 4
    Welch's ANOVA:
    w A = 2.00 ,   w B = 0.0098 ,   w C = 2.00 , x ¯ w = 70.01 F W ( 2 ,   7.12 ) = 200.12 1.0936 = 182.99 , p < .001
    B is down-weighted to near-zero; F jumps from 3.14 to 182.99.
  5. 5
    Decision: Report Welch's F — the standard F would be a Type II error here.
182.99
F_Welch(2,7.12)
<.001
p (Welch)
3.14
F standard
.080
p standard
🔴 Significant by Welch's ANOVA — F(2, 7.12) = 182.99, p < .001.
APA-7
Because Levene's test indicated unequal variances, a Welch's ANOVA was conducted, F(2, 7.12) = 182.99, p < .001; the standard ANOVA alone would have misleadingly suggested no effect, F(2, 12) = 3.14, p = .080.
Open in MindStat

🧪 29 · Levene's Test

Levene's Test — Variance Homogeneity
Assumption
Research Question: Do novice and expert typists have equal reaction-time variance?
Novice Expert
812430
940465
705410
1050455
880398
690448
965421
Levene's F
z i j = | x i j x ¯ i | , F = i n i ( z ¯ i z ¯ ) 2 / ( k 1 ) i j ( z i j z ¯ i ) 2 / ( N k )
  1. 1
    Means and spread:
    x ¯ N o v i c e = 863.1 ,   S D N o v i c e = 134.8 x ¯ E x p e r t = 432.4 ,   S D E x p e r t = 24.6
    Experts are faster AND far more consistent.
  2. 2
    Transform then ANOVA on z: Levene's test = an ANOVA run on |deviations|.
  3. 3
    F:
    F ( 1 , 12 ) = 12.67 , p = .0039
  4. 4
    Decision: Violated → use Welch's t-test (MindStat's unconditional default).
12.67
F(1,12)
.0039
p
134.8 / 24.6
SD ratio
🔴 Variances significantly unequal — F(1,12) = 12.67, p = .004.
APA-7
Levene's test indicated the homogeneity-of-variance assumption was violated, F(1, 12) = 12.67, p = .004; a Welch's t-test was used for the comparison.
Open in MindStat

🔢 30 · Wilcoxon Signed-Rank Test

Wilcoxon Signed-Rank Test
Non-parametric
Research Question: Did coping scores change after the program, without assuming normality?
# Before After Diff
16066+6
25862+4
36574+9
47270−2
55562+7
66366+3
75964+5
86876+8
96162+1
W+ / W−
W + = rank ( | d i | )   for   d i > 0 , W = rank ( | d i | )   for   d i < 0 , W = min ( W + , W )
  1. 1
    Rank |d|:
    | d | :   1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9     ranks   1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9   (each unique)
  2. 2
    Sum ranks by sign:
    W + = 6 + 4 + 9 + 7 + 3 + 5 + 8 + 1 = 43 , W = 2 , W = min ( 43 , 2 ) = 2
    Only employee #4 regressed.
  3. 3
    Exact test: Exact distribution used (n<50, no ties).
    p exact ( W = 2 ,   n = 9 ) = .0117 ( two-tailed )
  4. 4
    Decision: p = .012 → reject H₀ → significant change.
2
W
9
n
.012
p
🔴 Significant — W = 2, p = .012 (exact).
APA-7
A Wilcoxon signed-rank test showed a significant increase in coping scores, W = 2, p = .012 (exact, two-tailed).
Open in MindStat

🔢 31 · Friedman Test

Friedman Test — Non-parametric RM
Non-parametric
Research Question: Do the three study techniques differ in recall, without assuming normality?
P Re-reading Practice Testing Spaced Practice
1121517
2141618
3101416
4161819
5131517
6171416
7151714
8121517
Friedman χ²
χ 2 = 12 N k ( k + 1 ) j = 1 k R j 2 3 N ( k + 1 ) , d f = k 1
  1. 1
    Rank within each row: Not every participant follows the overall pattern.
  2. 2
    Rank sums:
    R Re-reading = 11 , R Practice Testing = 16 , R Spaced Practice = 21
  3. 3
    χ²:
    χ 2 = 12 8 ( 3 ) ( 4 ) ( 11 2 + 16 2 + 21 2 ) 3 ( 8 ) ( 4 ) = 0.125 ( 818 ) 96 = 6.25 , d f = 2
  4. 4
    Decision + post-hoc: Reject H₀; Spaced Practice > Re-reading survives post-hoc correction.
6.25
χ²(2)
.044
p
8
N
🔴 Significant — χ²(2) = 6.25, p = .044.
APA-7
A Friedman test showed a significant difference across techniques, χ²(2) = 6.25, p = .044, N = 8; spaced practice beat re-reading on post-hoc (p_adj < .001).
Open in MindStat

🗂️ 32 · McNemar's Test

McNemar's Test — Paired Proportions
Categorical
Research Question: Did training change the pass rate for the same 20 candidates?
After: Pass After: Fail
Before: Pass6 (a)2 (b)
Before: Fail9 (c)3 (d)
McNemar χ²
χ 2 = ( b c ) 2 b + c (uncorrected) , χ c c 2 = ( | b c | 1 ) 2 b + c (continuity-corrected)
  1. 1
    Discordant pairs: b=2 (regressed), c=9 (improved).
  2. 2
    Uncorrected:
    χ 2 = ( 2 9 ) 2 2 + 9 = 49 11 = 4.455 , p = .035
  3. 3
    Continuity-corrected:
    χ c c 2 = ( | 2 9 | 1 ) 2 2 + 9 = 36 11 = 3.273 , p = .070
    The correction changes the conclusion here.
  4. 4
    Decision: Corrected result is not significant — the uncorrected test overstates it.
3.27
χ² (cc)
.070
p (cc)
4.5
OR
20
N
🟢 Not significant (corrected) — χ²(1) = 3.27, p = .070.
APA-7
A McNemar's test with continuity correction showed no significant change in pass rate, χ²(1) = 3.27, p = .070 (OR = 4.50); the uncorrected test would have overstated the evidence.
Open in MindStat

🔗 33 · Partial Correlation

Partial Correlation
Correlation
Research Question: Does exercise still relate to blood pressure once age is controlled for?
P X Y Z
1114858
2214562
3215045
4313860
5414250
6413040
7512848
8613535
9612042
10711830
11811533
12911028
Partial r
r X Y . Z = r X Y r X Z r Y Z ( 1 r X Z 2 ) ( 1 r Y Z 2 )
  1. 1
    Zero-order correlations:
    r X Y = .939 , r X Z = .869 , r Y Z = .778
    Classic confound pattern: all three pairs are correlated.
  2. 2
    Partial r:
    r X Y . Z = .939 ( .869 ) ( .778 ) ( 1 .755 ) ( 1 .605 ) = .263 .245 × .395 = .263 .311 = .846
  3. 3
    Significance test (df=n−3):
    t = r d f 1 r 2 = .846 9 1 .716 = 4.765 , d f = 9 ,   p = .001
  4. 4
    Decision: Relationship survives controlling for age, though attenuated.
−.846
Partial r
−4.765
t(9)
.001
p
−.939
Zero-order r
🔴 Significant — partial r(9) = −.846, p = .001.
APA-7
A partial correlation controlling for age showed exercise remained significantly related to blood pressure, r(9) = −.846, p = .001 (zero-order r = −.939).
Open in MindStat

🔗 34 · Point-Biserial Correlation

Point-Biserial Correlation
Correlation
Research Question: How strong is the association between group and outcome, expressed as a correlation?
P Group Score
1072
2068
3075
4070
5074
6069
7182
8188
9179
10185
11190
12184
Point-biserial r
r p b = ( g i g ¯ ) ( y i y ¯ ) ( g i g ¯ ) 2 ( y i y ¯ ) 2
  1. 1
    Group means:
    y ¯ C o n t r o l = 71.33 , y ¯ T r e a t m e n t = 84.67
  2. 2
    Compute r:
    r p b = .904
  3. 3
    Significance test:
    t = r p b d f 1 r p b 2 = .904 10 1 .818 = 6.704 , d f = 10 ,   p < .001
  4. 4
    Same test as t-test: Identical t/df to the independent t-test on the same data.
.904
r_pb
6.704
t(10)
<.001
p
.818
r²_pb
🔴 Significant — r_pb(10) = .904, p < .001.
APA-7
A point-biserial correlation showed a strong association, r_pb(10) = .904, p < .001 (Treatment M = 84.67 vs. Control M = 71.33).
Open in MindStat

🔬 35 · Exploratory Factor Analysis

Exploratory Factor Analysis
Reliability
Research Question: Do the 6 items form one factor or two?
P1P2P3C1C2C3
P11.00.65.62.20.18.22
P2.651.00.68.15.20.17
P3.62.681.00.22.19.21
C1.20.15.221.00.64.60
C2.18.20.19.641.00.66
C3.22.17.21.60.661.00
KMO & Bartlett
K M O i = j i r i j 2 j i r i j 2 + j i a i j 2 , χ B a r t l e t t 2 = [ ( N 1 ) 2 p + 5 6 ] ln | R |
  1. 1
    Gatekeeper checks:
    K M O o v e r a l l = .744   ( items  .708 .780 ) χ B a r t l e t t 2 ( 15 ) = 555.13 ,   p < .001
    Both gatekeepers pass — proceed to extraction.
  2. 2
    Eigenvalues:
    λ : 2.864 ,   1.705 ,   0.410 ,   0.390 ,   0.353 ,   0.278 ( λ = 6 )
    Exactly 2 factors survive Kaiser's rule.
  3. 3
    Varimax rotation:
    ItemF1F2
    P1.124.853.742
    P2.082.887.793
    P3.130.866.766
    C1.851.109.735
    C2.878.105.781
    C3.858.121.750
    Clean 2-factor structure — pay and coworker satisfaction are separate.
  4. 4
    Decision: Score as 2 subscales, not 1 total.
.744
KMO
555.13
Bartlett χ²
2
Factors
75.1%
Var. explained
🔴 Two-factor structure confirmed (KMO=.744, Bartlett p<.001).
APA-7
An EFA (PCA extraction, varimax rotation) confirmed a clean 2-factor structure, KMO=.744, Bartlett χ²(15)=555.13, p<.001, explaining 75.1% of variance.
Open in MindStat

📊 36 · ANCOVA

ANCOVA — Adjusting for a Covariate
ANOVA
Research Question: Does method affect post-test scores after adjusting for pre-test?
A: PreA: PostB: PreB: Post
60805968
65756375
58856166
70836680
62736064
64876878
Adjusted mean
Y ¯ j = Y ¯ j b w ( X ¯ j X ¯ g r a n d ) , F = M S g r o u p . a d j M S e r r o r . a d j
  1. 1
    Group means:
    X ¯ A , p r e = 63.17 ,   X ¯ B , p r e = 62.83 ,   ( grand  X ¯ = 63.00 ) Y ¯ A , p o s t = 80.50 ,   Y ¯ B , p o s t = 71.83
    Groups started nearly level; ANCOVA still gives the correct adjustment.
  2. 2
    Pooled slope:
    b w = 0.6945
  3. 3
    Adjusted means:
    Y ¯ A = 80.50 0.6945 ( 63.17 63.00 ) = 80.38 Y ¯ B = 71.83 0.6945 ( 62.83 63.00 ) = 71.95
  4. 4
    F-test:
    S S c o v a r i a t e = 73.16 ,   S S g r o u p . a d j = 225.33 ,   S S e r r o r . a d j = 307.18   ( d f = 9 ) F ( 1 , 9 ) = 225.33 / 1 307.18 / 9 = 6.60 , p = .030 ,   η p 2 = .423
  5. 5
    Decision: Method A > Method B after adjustment.
80.38 / 71.95
Adj. means
6.60
F(1,9)
.030
p
.423
η²_p
🔴 Significant — F(1,9) = 6.60, p = .030.
APA-7
A one-way ANCOVA with pre-test as covariate showed a significant effect of method, F(1, 9) = 6.60, p = .030, η²p = .42 (Method A adjusted M = 80.38 vs. Method B M = 71.95).
Open in MindStat

💻 37 · SPSS Regression Output

Interpreting SPSS Regression Output
SPSS
Research Question: How to read the SPSS regression Model Summary, ANOVA, and Coefficients tables.
Model B SE Beta t Sig.
(Constant)15.204.103.71.001
Experience1.850.32.6125.78<.001
Education2.100.68.3313.09.005
Model Summary: R=.856, R²=.733, Adj. R²=.713 | ANOVA: F(2,27)=37.03, p<.001
  1. 1
    Check the ANOVA row: F(2,27)=37.03, p<.001 → model is useful overall.
  2. 2
    R²: Report Adjusted R² with 2+ predictors.
  3. 3
    Each predictor: B is the unstandardized effect, holding the other predictor constant.
  4. 4
    Compare via standardized β: Standardized β enables cross-predictor comparison.
.733
37.03
F(2,27)
<.001
p
β=.612
Strongest predictor
🔴 Model significant — R² = .733, p < .001.
APA-7
A multiple regression significantly predicted salary, F(2, 27) = 37.03, p < .001, R² = .733; experience (β=.612) and education (β=.331) were both significant predictors.
Open in MindStat

💻 38 · SPSS Correlation Output

Interpreting SPSS Correlation Output
SPSS
Research Question: How to read the symmetric SPSS bivariate correlation matrix.
Study Hours Exam Score
Study HoursPearson Corr.1.742**
Sig. (2-tailed).000
N2020
Exam ScorePearson Corr..742**1
Sig. (2-tailed).000
N2020
  1. 1
    The matrix is symmetric: Read the correlation once, not twice.
  2. 2
    Read the asterisks: ** = p < .01; Sig. = .000 means p < .001.
  3. 3
    Judge strength: r=.742 is a large effect by Cohen's guidelines.
  4. 4
    Correlation ≠ causation: Correlation shows co-variation, not causation.
.742
r
<.001
p
18
df
🔴 Significant, large effect — r(18) = .742, p < .001.
APA-7
A Pearson correlation was significant and large, r(18) = .742, p < .001 (SPSS's .000 is reported as p < .001).
Open in MindStat

💻 39 · SPSS Reliability Output

Interpreting SPSS Reliability Output
SPSS
Research Question: How to read the Reliability Statistics and Item-Total Statistics tables together.
Item Corr. Item-Total α if Deleted
Q1.68.77
Q2.71.76
Q3.24.85
Q4.65.78
Q5.70.76
Reliability Statistics: Cronbach's α = .812, N of Items = 5
  1. 1
    Headline alpha: α=.812 is 'good' by common guidelines.
  2. 2
    Scan for weak items: Q3's .24 is below the .30 rule-of-thumb threshold.
  3. 3
    Confirm with α-if-deleted: Only Q3's α-if-deleted exceeds the overall α.
  4. 4
    Decide and report: Keep 5 items (α=.812) or drop Q3 (α=.85) — disclose the choice.
.812
α (5 items)
.24
Q3 corr.
.85
α if Q3 deleted
🟢 Good overall (α=.812); Q3 is a candidate for removal.
APA-7
The scale showed good reliability, α = .812; Q3's weak item-total correlation (r=.24) means dropping it would raise α to .85.
Open in MindStat

🧭 40 · How to Choose the Right Statistical Test

Choosing the Right Statistical Test
Guide
How to use this page: Find your question below, follow the rule to a test, or use the interactive Advisor.
1 · Comparing groups (continuous outcome):
2 · Relationships between variables:
3 · Categorical / binary data:
4 · Scale and measurement quality:
5 · Checking assumptions first:
6 · Planning a study and reporting effects:
7 · Reading SPSS output and writing up results:
🟢 Still unsure? Use the interactive Test Advisor below.
Open in MindStat