The Correlation Coefficient: an Overview

The Correlation Coefficient: an Overview

Critical Reviews in Analytical Chemistry, 36:41–59, 2006 Copyright c Taylor and Francis Group, LLC ISSN: 1040-8347 print / 1547-6510 online DOI: 10.1080/10408340500526766 The Correlation Coefficient: An Overview A. G. Asuero, A. Sayago, and A. G. Gonz´alez Department of Analytical Chemistry, Faculty of Pharmacy, The University of Seville, Seville, Spain Correlation and regression are different, but not mutually exclusive, techniques. Roughly, re- gression is used for prediction (which does not extrapolate beyond the data used in the analysis) whereas correlation is used to determine the degree of association. There situations in which the x variable is not fixed or readily chosen by the experimenter, but instead is a random covariate to the y variable. This paper shows the relationships between the coefficient of determination, the multiple correlation coefficient, the covariance, the correlation coefficient and the coeffi- cient of alienation, for the case of two related variables x and y.Itdiscusses the uses of the correlation coefficient r, either as a way to infer correlation, or to test linearity. A number of graphical examples are provided as well as examples of actual chemical applications. The paper recommends the use of z Fisher transformation instead of r values because r is not normally distributed but z is (at least in approximation). For either correlation or for regression models, the same expressions are valid, although they differ significantly in meaning. Keywords multiple correlation coefficient, correlation coefficient, covariance, cause and effect inference, lineariy, significance tests INTRODUCTION quality control (6). Empirical relationships can be used, i.e., to Although the concepts of correlation and regression are in- determine yield vs. conditions, so process optimization can be timately related, they are nevertheless different (1). Correla- achieved (7), or in linear free-energy relationships (LFR), quan- tion may be described as the degree of association between titative structure-activity relationships (QASR) and quantitative two variables, whereas regression expresses the form of the re- structure property (QSPR) relationships (8, 9). The correlation, lationship between specified values of one (the independent, however, is a concept of much wider applicability than just 2D exogenous, explanatory, regressor, carrier or predictor) vari- scatterplots. There is also “multiple correlation,” which is the able and the means of all corresponding values of the second correlation of multiple independent variables with a single de- (the dependent, outcome, response variable, the variable be- pendent. Also there is “partial correlation,” which is the cor- ing explained) variable. In general, we can say that the study relation of one variable with another, controlling for a third or of interdependence leads to the investigation of correlations additional variables (10). (2), while the study of dependence leads to the theory of re- If the parameter estimates associated with any one factor in gression. When the x variable is a random covariate to the a multifactor design are uncorrelated with those of another, the y variable, that is, x and y vary together (continuous vari- experiment design is to said to be orthogonal. This is the ba- ables), we are more interested in determining the strength of sic principle of the orthogonal design, which often permits (11) the linear relationship than in prediction, and the sample corre- simple formulas to be used to calculate effects, thus avoiding on lation coefficient, rxy (r), is the statistics employed (3) for this this way tedious manual calculations. Correlation and covari- purpose. ance play a central role in clustering; correlation is used as such The Pearson (Product–Moment) correlation r wasdeveloped to measure similarity between objects (12). Factor analysis, be- by Pearson (1896) and was based on the work of others, includ- havioural genetic models, structural equations models and other ing Galton (1888), who first introduced the concept of correla- related methodologies use the correlation coefficient as the basic tion (4, 5). As a matter of fact, correlation charts, also known unit of data (5, 13). Canonical correlation analysis is a way of as scatter diagrams is one of the seven basic tools of statistical measuring the linear relationship between two multidimensional variables (10). There are a number of different correlation coefficients to Address correspondence to A. G. Asuero, Department of Analytical handle the special characteristics of such types of variables as Chemistry, Faculty of Pharmacy, The University of Seville, Seville dichotomies, and there are other measurements of association 41012, Spain. E-mail: [email protected] for nominal and ordinal variables (and for time-series analysis 41 42 A. G. ASUERO ET AL. as well). The literature provides a variety of measures of depen- THE LEAST-SQUARES METHOD ρ dence (i.e., Spearman’s , the point biserial correlation and the Suppose that estimates a0 and a1 of the model parameters α0 φ coefficient), which are either improved versions of the corre- and α1 are found by using the principle of least squares concern- lation coefficient or based on complementary different concepts ing the sum of squares of (weighted) vertical deviations (resid- (14). uals) from the regression line. Heteroscedasticity is assumed, where the measuring quantity is determinable nor with constant (homoscedastic condition), but with different variance depen- SCATTERPLOTS dent on the size of the measuring quantity. The (weighted) least The mandatory first step in all data analysis is to make a squares method is based on a number of assumptions (19), i.e., plot of the data in the most illustrative way possible. A two- (i) that the errors, εi , are random rather than systematic, with , σ 2 = σ 2/w σ w dimensional representation of n pairs of measurements (xi yi ) mean zero and variances i i ( is a constant and i is made on two random variables x and y,isknown as a scatter- the weight of point i) and follow a Gaussian distribution; (ii) that plot. The first bivariate scatterplot (5) showing a correlation was the independent variable, i.e., x, the abscissa, is known exactly given by Galton in 1885. Such plots are particularly useful tools or can be set by the experimenter either; (iii) the observations, in exploratory analysis conveying information about the associ- yi , are in an effective sense uncorrelated and statistically inde- ation between x and y (15), the dependence of y on x where y pendent, i.e., for cov(εi ,εj ) = 0 for i = j, with means equal to is a response variable, the clustering of the points, the presence their respective expectations or true values, E{yi }=ηi ; and (iv) of outliers, etc. that the correct weights, wi are known. Normality is needed only Scatterplots are much more informative (16) than the corre- for tests of significance and construction of confidence intervals lation coefficient. This should be clear (17) from Figure 1. Each estimates of the parameters. Formulae for calculating a0 and a1 of the four data yields the same standard output from a typical and their standard errors by weighted linear regression are given regression program. Scatterplots can also be combined in mul- in Table 1, where the analogy with simple linear regression (20) tiple plots per page to help understanding higher-level structure is evident. in data set with more than two variables. Thus, a scatterplot ma- Particular attention must be given on this respect to equations trix can be a better summary of data than a correlation matrix, in which one variable is involved on both sides (21, 22). Then, since the latter gives only a single number summary of the lin- the independent variable x is not an exact quantity and the inde- ear relationship between variables, while each scatterplot gives pendence of errors is not fulfilled. If for any reason the precision a visual summary of linearity, nonlinearity, and separated points with which the xi values are known is not considerably better (16, 18). than the precision of measurement of the yi values, the statistical analysis based on the (ordinary) weighted least squares is not valid and it is necessary a more general approach (23). Weights in those cases are slope-dependent. TABLE 1 Formulae for calculating statistics for weighted linear regression Equation: Slope yˆi = a0 + a1 xi a1 = SXY/Sxx Weights: Intercept w = / 2 = − i 1 si a0 y¯ a1x¯ Explained sum of squares Weighted residuals = w − 2 w1/2 − SSReg i (yˆi y¯) i (yi yˆi ) Residual sum of squares Correlation√ coefficient 2 SSE = wi (yi − yˆi ) r = SXY/ SXX SYY Mean Standard errors S −a2 S x¯ = w x / w s2 = SSE = YY 1 XX i i i y/x n−2 n−2 y¯ = w y / w s2 = s2 ( w x2)/(S w ) i i i a0 y/x i i XX i Sum of squares about the mean s2 = s2 /S a1 y/x XX = w − 2 , =− 2 / SXX i (xi x¯) cov(a0 a1) xs¯ y/x SXX = w − 2 SYY i (yi y¯) FIG. 1. Scatter diagrams of a four set of data showing the same = w − − 2 SXY i (xi x¯)(yi y¯) a0 = 0.520, a1 = 0.809, R = 0.617, sy/x = 3.26, N = 16. OVERVIEW OF THE CORRELATION COEFFICIENT 43 TABLE 2 Common data transformations Transformation Comments / Reciprocal 1 y √ Linearizing data, particularly rate phenomena Arcsine (angular) arcsin y Proportions (0 > p > 1) Logarithmic ln y Variance ∞ (mean)2 Probability probability Percentage responding Logistic (probit) log( y ) Drug dose response curves and UV killing curves √ 1−y Square root y Counts, variance ∞ (mean) Box Cox (y p − 1)/pp= 0 Family of transformations for use when one has no prior ln pp= 0 knowledge of an appropriate transformation to use Tukey {pλ − (1 − p)λ}/λ HETEROSCEDASTICITY AND TRANSFORMATION SS S − SSE SSE (y − yˆ )2 R2 = Reg = YY = 1 − = 1 − i i , [2] 2 There are many examples and methods for heteroscedastic re- SYY SYY SYY (yi − y¯) gression: those based on counting measurements and also pho- where yˆ denotes the predicted value of y and as usual y¯ is the tometric, chromatographic and capillary electrophoresis anal- mean of ysvalues and both summations are over i = 1,2, .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    20 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us