Wednesday, February 10, 2010

As the sample size grows, R虏 should fall. True/False/Uncertain?

False,





as the sample size increase the correlation coefficient R will increase in absolute value and thus R虏 will increase.





The correlation coefficient, r, is a measure of the linear relationship between two variables. If the data is non-linear then the correlation coefficient is meaningless.





r takes on values between -1 and 1. negative values indicate the relationship between the variables is indirect, i.e., on a scatter plot the data tends to have a negative slope. Positive values for r indicate the data tends to have a positive slope. if r = 0 we say the variables are uncorrelated.





the closer the absolute value of r is to 1, the stronger the linear association between the two variables.





there are many different formulas for calculating the value of r. if we let xbar and ybar be the means of two data sets. sx and sy are the standard deviations in the data sets and n = total sample size then:





r = 1/(n - 1) * 危( ((xi - xbar)/sx) * ((yi - ybar)/sy)) with the sum going from i = 1 to n





r = Covariance(X,Y) / [(鈭?Var(X))鈭?Var(Y))]





r = 危(xi - xbar)(yi - ybar) / [ 鈭?危(xi - xbar)虏) 鈭?危(yi - ybar)虏)]





the second equation shows that the correlation coefficient the ratio between the measure of spread between the variables and the product of the spread within each variable.





r is unit less.





r is not affected by multiplying each data set by a constant, and a constant to each data set or interchanging x and y.





r is subject to outliers.





r虏 is called the coefficient of determination. It is a measure of the proportion of variance in y explained by regression.





Also note that correlation is not causation. Here is an example: the shoe size of grade school students and the student's vocabulary are highly correlated. In other words, the larger the shoe size, the larger the vocabulary the student has. Now it is easy to see that shoe size and vocabulary have nothing to do with each other, but they are highly correlated. The reason is that there is a confounding factor, age. the older the grade school student the larger the shoe size and the larger the vocabulary.





you cannot compare models by comparing the r values. This is a long discussion, a full day lecture in the prob/stat courses I've instructed. Model comparison is a topic usually saved for high level under grad courses or graduate level courses.





good sites with info about correlation are:


http://mathworld.wolfram.com/Correlation鈥?/a>


http://mathworld.wolfram.com/LeastSquare鈥?/a>As the sample size grows, R虏 should fall. True/False/Uncertain?
are you talking about circular shape sample ?


as sample grows, R radius also increases naturally R虏 increases.


you decide the answer as the question is not clear.


---------

1 comment:

  1. JTG: Casino & Hotel Review, Bonus Code & Promo - KTM
    Visit our 계룡 출장안마 JTG 고양 출장샵 Casino & Hotel Review, get the latest 포항 출장샵 promotions, 여주 출장안마 game variety, casino bonus codes, 김제 출장마사지 promotions & more.

    ReplyDelete