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
Fisher transformation
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!
{{short description|Statistical transformation}} {{Redirect-distinguish|Fisher z-transformation|Fisher's z-distribution}} [[Image:fisher transformation.svg|300px|right|thumb|A graph of the transformation (in orange). The untransformed sample correlation coefficient is plotted on the horizontal axis, and the transformed coefficient is plotted on the vertical axis. The identity function (gray) is also shown for comparison.]] In [[statistics]], the '''Fisher transformation''' (or '''Fisher ''z''-transformation''') of a [[Pearson correlation coefficient]] is its [[inverse hyperbolic tangent]] (artanh). When the sample correlation coefficient ''r'' is near 1 or -1, its distribution is highly [[Skewness|skewed]], which makes it difficult to estimate [[confidence intervals]] and apply [[tests of significance]] for the population correlation coefficient Ο.<ref>{{cite journal| last=Fisher | first= R. A. | year=1915 | title= Frequency distribution of the values of the correlation coefficient in samples of an indefinitely large population | journal=Biometrika | volume=10 | pages=507β521 | jstor=2331838| issue=4| doi=10.2307/2331838| hdl= 2440/15166 | hdl-access=free }}</ref><ref>{{cite journal|authorlink=Ronald Fisher | last=Fisher | first= R. A. | year=1921 | title=On the 'probable error' of a coefficient of correlation deduced from a small sample | journal=Metron | volume=1 | pages=3β32|url=http://digital.library.adelaide.edu.au/dspace/bitstream/2440/15169/1/14.pdf}}</ref><ref>Rick Wicklin. Fisher's transformation of the correlation coefficient. September 20, 2017. https://blogs.sas.com/content/iml/2017/09/20/fishers-transformation-correlation.html. Accessed Feb 15,2022.</ref> The Fisher transformation solves this problem by yielding a variable whose distribution is approximately [[normally distributed]], with a variance that is stable over different values of ''r''. ==Definition== Given a set of ''N'' bivariate sample pairs (''X''<sub>''i''</sub>, ''Y''<sub>''i''</sub>), ''i'' = 1, ..., ''N'', the [[Pearson product-moment correlation coefficient|sample correlation coefficient]] ''r'' is given by :<math>r = \frac{\operatorname{cov}(X,Y)}{\sigma_X \sigma_Y} = \frac{\sum ^N _{i=1}(X_i - \bar{X})(Y_i - \bar{Y})}{\sqrt{\sum ^N _{i=1}(X_i - \bar{X})^2} \sqrt{\sum ^N _{i=1}(Y_i - \bar{Y})^2}}.</math> Here <math>\operatorname{cov}(X,Y)</math> stands for the [[covariance]] between the variables <math>X</math> and <math>Y</math> and <math>\sigma</math> stands for the [[standard deviation]] of the respective variable. Fisher's z-transformation of ''r'' is defined as :<math>z = {1 \over 2}\ln\left({1+r \over 1-r}\right) = \operatorname{artanh}(r),</math> where "ln" is the [[natural logarithm]] function and "artanh" is the [[inverse hyperbolic function|inverse hyperbolic tangent function]]. If (''X'', ''Y'') has a [[bivariate normal distribution]] with correlation Ο and the pairs (''X''<sub>''i''</sub>, ''Y''<sub>''i''</sub>) are [[Independent and identically distributed random variables|independent and identically distributed]], then ''z'' is approximately [[normal distribution|normally distributed]] with mean :<math>{1 \over 2}\ln\left({{1+\rho} \over {1-\rho}}\right),</math> and a standard deviation which does not depend on the value of the correlation rho (i.e., a [[Variance-stabilizing transformation]]) :<math>{1 \over \sqrt{N-3}},</math> where ''N'' is the sample size, and Ο is the true correlation coefficient. This transformation, and its inverse :<math>r = \frac{\exp(2z)-1}{\exp(2z)+1} = \operatorname{tanh}(z),</math> can be used to construct a large-sample [[confidence interval]] for ''r'' using standard normal theory and derivations. See also application to [[partial correlation]]. ==Derivation== {{cleanup|reason=the steps of the derivation are not laid out completely.|date=July 2021}} [[File:Fisher Transformation.png|thumb|Fisher Transformation with <math>\rho =0.9</math> and <math>N=30</math>. Illustrated is the exact probability density function of <math>r</math> (in black), together with the probability density functions of the usual Fisher transformation (blue) and that obtained by including extra terms that depend on <math>N</math> (red). The latter approximation is visually indistinguishable from the exact answer (its maximum error is 0.3%, compared to 3.4% of basic Fisher).]] Hotelling gives a concise derivation of the Fisher transformation.<ref>{{Cite journal|last=Hotelling|first=Harold|date=1953|title=New Light on the Correlation Coefficient and its Transforms|url=http://dx.doi.org/10.1111/j.2517-6161.1953.tb00135.x|journal=Journal of the Royal Statistical Society, Series B (Methodological)|volume=15|issue=2|pages=193β225|doi=10.1111/j.2517-6161.1953.tb00135.x|issn=0035-9246|url-access=subscription}}</ref> To derive the Fisher transformation, one starts by considering an arbitrary increasing, twice-differentiable function of <math>r</math>, say <math>G(r)</math>. Finding the first term in the large-<math>N</math> expansion of the corresponding [[skewness]] <math>\kappa_3</math> results<ref>{{Cite journal|last=Winterbottom|first=Alan|date=1979|title=A Note on the Derivation of Fisher's Transformation of the Correlation Coefficient|url=http://dx.doi.org/10.2307/2683819|journal=The American Statistician|volume=33|issue=3|pages=142β143|doi=10.2307/2683819|jstor=2683819 |issn=0003-1305|url-access=subscription}}</ref> in :<math>\kappa_3=\frac{6\rho -3(1-\rho ^{2})G^{\prime \prime }(\rho )/G^{\prime }(\rho )}{\sqrt{N}}+O(N^{-3/2}).</math> Setting <math>\kappa_3=0</math> and solving the corresponding differential equation for <math>G</math> yields the inverse hyperbolic tangent <math>G(\rho)=\operatorname{artanh}(\rho)</math> function. Similarly expanding the mean ''m'' and variance ''v'' of <math>\operatorname{artanh}(r)</math>, one gets :m = <math>\operatorname{artanh}(\rho )+\frac{\rho }{2N}+O(N^{-2}) </math> and :v = <math>\frac{1}{N}+\frac{6-\rho ^{2}}{2N^{2}}+O(N^{-3}) </math> respectively. The extra terms are not part of the usual Fisher transformation. For large values of <math>\rho </math> and small values of <math>N</math> they represent a large improvement of accuracy at minimal cost, although they greatly complicate the computation of the inverse β a [[closed-form expression]] is not available. The near-constant variance of the transformation is the result of removing its skewness β the actual improvement is achieved by the latter, not by the extra terms. Including the extra terms, i.e., computing (z-m)/v<sup>1/2</sup>, yields: :<math>\frac{z-\operatorname{artanh}(\rho )-\frac{\rho }{2N}}{\sqrt{\frac{1}{N}+\frac{6-\rho ^{2}}{2N^{2}}}}</math> which has, to an excellent approximation, a [[standard normal distribution]].<ref>{{cite journal |last1=Vrbik |first1=Jan |title=Population moments of sampling distributions |journal=Computational Statistics |date=December 2005 |volume=20 |issue=4 |pages=611β621 |doi=10.1007/BF02741318|s2cid=120592303 }}</ref> [[File:rsquared.png|thumb|300 px| Calculator for the confidence belt of r-squared values (or coefficient of determination/explanation or goodness of fit).<ref>[https://www.waterlog.info/r-squared.htm r-squared calculator]</ref>]] == Application == The application of Fisher's transformation can be enhanced using a software calculator as shown in the figure. Assuming that the r-squared value found is 0.80, that there are 30 data {{Clarify|date=May 2022}}, and accepting a 90% confidence interval, the r-squared value in another random sample from the same population may range from 0.656 to 0.888. When r-squared is outside this range, the population is considered to be different. == Discussion == The Fisher transformation is an approximate [[variance-stabilizing transformation]] for ''r'' when ''X'' and ''Y'' follow a bivariate normal distribution. This means that the variance of ''z'' is approximately constant for all values of the population correlation coefficient ''Ο''. Without the Fisher transformation, the variance of ''r'' grows smaller as |''Ο''| gets closer to 1. Since the Fisher transformation is approximately the identity function when |''r''| < 1/2, it is sometimes useful to remember that the variance of ''r'' is well approximated by 1/''N'' as long as |''Ο''| is not too large and ''N'' is not too small. This is related to the fact that the asymptotic variance of ''r'' is 1 for bivariate normal data. The behavior of this transform has been extensively studied since [[Ronald Fisher|Fisher]] introduced it in 1915. Fisher himself found the exact distribution of ''z'' for data from a bivariate normal distribution in 1921; Gayen in 1951<ref>{{cite journal | last=Gayen | first=A. K. |title=The Frequency Distribution of the Product-Moment Correlation Coefficient in Random Samples of Any Size Drawn from Non-Normal Universes | volume=38 | year=1951 | pages=219β247 | journal=Biometrika | jstor=2332329 | issue=1/2 | doi=10.1093/biomet/38.1-2.219}}</ref> determined the exact distribution of ''z'' for data from a bivariate Type A [[Edgeworth distribution]]. [[Harold Hotelling|Hotelling]] in 1953 calculated the Taylor series expressions for the moments of ''z'' and several related statistics<ref>{{cite journal |authorlink=Harold Hotelling | last=Hotelling | first=H | year=1953 | title=New light on the correlation coefficient and its transforms | journal=Journal of the Royal Statistical Society, Series B | volume=15 | pages=193β225 | jstor=2983768 |issue=2 }}</ref> and Hawkins in 1989 discovered the asymptotic distribution of ''z'' for data from a distribution with bounded fourth moments.<ref>{{cite journal | last=Hawkins | first=D. L. | year=1989 | title=Using U statistics to derive the asymptotic distribution of Fisher's Z statistic | journal=[[The American Statistician]] | volume=43 | pages=235β237 | doi=10.2307/2685369 | issue=4 | jstor=2685369| title-link=u-statistic }}</ref> An alternative to the Fisher transformation is to use the exact [[confidence distribution]] density for ''Ο'' given by<ref>{{Cite journal|last=Taraldsen|first=Gunnar|date=2021|title=The Confidence Density for Correlation|url=https://doi.org/10.1007/s13171-021-00267-y|journal=Sankhya A|language=en|doi=10.1007/s13171-021-00267-y|s2cid=244594067 |issn=0976-8378|doi-access=free|hdl=11250/3133125|hdl-access=free}}</ref><ref>{{Cite journal|last=Taraldsen|first=Gunnar|date=2020|title=Confidence in Correlation|url=http://rgdoi.net/10.13140/RG.2.2.23673.49769| language=en|doi=10.13140/RG.2.2.23673.49769}}</ref> <math display="block">\pi (\rho | r) = \frac{\Gamma(\nu+1)}{\sqrt{2\pi}\Gamma(\nu + \frac{1}{2})} (1 - r^2)^{\frac{\nu - 1}{2}} \cdot (1 - \rho^2)^{\frac{\nu - 2}{2}} \cdot (1 - r \rho )^{\frac{1-2\nu}{2}} F\!\left(\frac{3}{2},-\frac{1}{2}; \nu + \frac{1}{2}; \frac{1 + r \rho}{2}\right)</math> where <math>F</math> is the Gaussian hypergeometric function and <math>\nu = N-1 > 1</math> . ==Other uses== While the Fisher transformation is mainly associated with the [[Pearson product-moment correlation coefficient]] for bivariate normal observations, it can also be applied to [[Spearman's rank correlation coefficient]] in more general cases.<ref>{{cite encyclopedia|last=Zar | first= Jerrold H. | year=2005| title=Spearman Rank Correlation: Overview | encyclopedia=Encyclopedia of Biostatistics| doi= 10.1002/9781118445112.stat05964 | isbn= 9781118445112 }}</ref> A similar result for the [[asymptotic distribution]] applies, but with a minor adjustment factor: see the cited article for details. == See also == * [[Data transformation (statistics)]] * [[Meta-analysis]] (this transformation is used in meta analysis for stabilizing the variance) * [[Partial correlation]] * {{slink|Pearson correlation coefficient#Inference}} ==References== <references/> ==External links== * [[R (programming language)|R]] [http://personality-project.org/r/html/fisherz.html implementation] {{statistics}} {{DEFAULTSORT:Fisher Transformation}} [[Category:Covariance and correlation]] [[Category:Transforms]] [[Category:Ronald Fisher]]
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)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite encyclopedia
(
edit
)
Template:Cite journal
(
edit
)
Template:Clarify
(
edit
)
Template:Cleanup
(
edit
)
Template:Redirect-distinguish
(
edit
)
Template:Short description
(
edit
)
Template:Slink
(
edit
)
Template:Statistics
(
edit
)