Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Pearson correlation coefficient
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Using the Fisher transformation=== {{main|Fisher transformation}} In practice, [[confidence intervals]] and [[hypothesis test]]s relating to ''Ο'' are usually carried out using the, [[Variance-stabilizing transformation]], [[Fisher transformation]], <math>F</math>'': :<math>F(r) \equiv \tfrac{1}{2} \, \ln \left(\frac{1 + r}{1 - r}\right) = \operatorname{artanh}(r)</math> ''F''(''r'') approximately follows a [[normal distribution]] with :<math>\text{mean} = F(\rho) = \operatorname{artanh}(\rho)</math>{{spaces|4}}and [[standard error]] <math>=\text{SE} = \frac{1}{\sqrt{n - 3}},</math> where ''n'' is the sample size. The approximation error is lowest for a large sample size <math>n</math> and small <math>r</math> and <math>\rho_0</math> and increases otherwise. Using the approximation, a [[standard score|z-score]] is :<math>z = \frac{x - \text{mean}}{\text{SE}} = [F(r) - F(\rho_0)]\sqrt{n - 3}</math> under the [[null hypothesis]] that <math>\rho = \rho_0</math>, given the assumption that the sample pairs are [[independent and identically distributed]] and follow a [[bivariate normal distribution]]. Thus an approximate [[p-value]] can be obtained from a normal probability table. For example, if ''z'' = 2.2 is observed and a two-sided p-value is desired to test the null hypothesis that <math>\rho = 0</math>, the p-value is {{nowrap|1=2Ξ¦(β2.2) = 0.028}}, where Ξ¦ is the standard normal [[cumulative distribution function]]. To obtain a confidence interval for Ο, we first compute a confidence interval for ''F''(''<math>\rho</math>''): :<math>100(1 - \alpha)\%\text{CI}: \operatorname{artanh}(\rho) \in [\operatorname{artanh}(r) \pm z_{\alpha/2}\text{SE}]</math> The inverse Fisher transformation brings the interval back to the correlation scale. :<math>100(1 - \alpha)\%\text{CI}: \rho \in [\tanh(\operatorname{artanh}(r) - z_{\alpha/2}\text{SE}), \tanh(\operatorname{artanh}(r) + z_{\alpha/2}\text{SE})]</math> For example, suppose we observe ''r'' = 0.7 with a sample size of ''n''=50, and we wish to obtain a 95% confidence interval for ''Ο''. The transformed value is <math display="inline">\operatorname{arctanh} \left ( r \right ) = 0.8673</math>, so the confidence interval on the transformed scale is <math>0.8673 \pm \frac{1.96}{\sqrt{47}} </math>, or (0.5814, 1.1532). Converting back to the correlation scale yields (0.5237, 0.8188).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)