🧠 MindStat

⚠️ Example not found

This example does not exist or may have been moved.

Browse all examples
🔗
Correlation

Pearson Correlation — Study Hours vs. GPA

Compute Pearson r between study hours and GPA. Includes t-test for significance and 95% CI using Fisher z-transformation.

📊 r(6) = .985, p < .001
Step-by-step solution

🔗 5 · Correlation

5a · Pearson Correlation: Study Hours vs GPA
Correlation
Research Question: Is there a linear relationship between weekly study hours (X) and GPA (Y) for 8 students?
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 = \frac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sqrt{\sum(x_i-\bar{x})^2 \cdot \sum(y_i-\bar{y})^2}} = \frac{17.30}{\sqrt{166 \times 1.843}} = \frac{17.30}{\sqrt{305.9}} = \frac{17.30}{17.49} = 0.989$$
Significance test
$$t = \frac{r\sqrt{n-2}}{\sqrt{1-r^2}} = \frac{0.989\sqrt{6}}{\sqrt{1-0.978}} = \frac{0.989 \times 2.449}{\sqrt{0.022}} = \frac{2.422}{0.148} = 16.36, \quad df=6$$
95% CI via Fisher-z
$$z_r = \tanh^{-1}(r) = \frac{1}{2}\ln\frac{1+r}{1-r} = \frac{1}{2}\ln\frac{1.989}{0.011} = 2.693$$ $$CI_{z}: 2.693 \pm \frac{1.96}{\sqrt{n-3}} = 2.693 \pm 0.981 \Rightarrow [1.712,\ 3.674] \Rightarrow r \in [.936,\ .998]$$
.989
r
.978
16.36
t(6)
<.001
p
🔴 Strong positive correlation — Study hours are strongly associated with GPA, 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.