16.14
마이크로소프트 엑셀은 통계 분석을 위한 강력한 도구로, 여기에는 두 연속 변수 간의 선형 관계의 강도와 방향을 측정하는 피어슨 상관 계수를 계산하는 것도 포함됩니다. 종종 "r"로 표시되는 피어슨 상관 계수는 -1에서 1까지입니다. 1에 가까운 값은 강력한 양의 상관…
상관 관계는 두 변수 간의 관계입니다. Microsoft Excel에 구성된 다음과 같은 가상 데이터를 고려합니다.
일변량 상관을 수행하려면 X 변수를 열에 정렬하고 Y 변수를 오른쪽 열에 정렬해야 합니다.
이 두 변수를 도표화하려면 먼저 삽입 탭에서 두 열을 모두 선택하고 차트를 찾은 다음 산점도를 선택합니다.
추세선과 같은 다른 요소도 차트 디자인에 추가할 수 있습니다.
데이터가 정규 분포를 따르는 모집단에서 추출되었다고 가정할 경우, Pearson의 상관 계수 r 은 데이터에 대해 선택된 함수 CORREL을 사용하여 계산됩니다.
또 다른 함수인 PEARSON도 동일한 값을 반환합니다.
이러한 함수는 두 변수 간 선형 관계의 강도와 방향을 측정합니다. 이 경우 0.985이며 강력하고 양의 상관 관계가 있음을 나타냅니다.
함수 RSQ는 r의 제곱값을 반환합니다. 이 값은 독립 변수에서 예측 가능한 종속 변수의 분산 비율을 측정하는 결정 계수입니다.
View the full transcript and gain access to JoVE Core videos
Q1: What does Pearson's correlation coefficient measure?
Pearson's correlation coefficient, denoted as r, measures the strength and direction of the linear relationship between two continuous variables. The coefficient ranges from -1 to 1, where values close to 1 indicate strong positive correlation, values near -1 indicate strong negative correlation, and values around 0 suggest no linear relationship between the variables.
Q2: How do you calculate Pearson's correlation in Microsoft Excel?
In Microsoft Excel, use the CORREL function to calculate Pearson's correlation coefficient. Enter the formula =CORREL(array1, array2), where array1 and array2 represent your two data columns. For example, =CORREL(A1:A10, B1:B10) calculates correlation between variables in cells A1:A10 and B1:B10. The PEARSON function returns the same result.
Q3: How should data be organized in Excel before calculating correlation?
To perform correlation analysis in Excel, arrange the X variable in one column and the Y variable in an adjacent column to its right. Select both columns together, then use the CORREL function or create a scatter plot through the Insert tab to visualize the relationship between your two variables.
Q4: What does the coefficient of determination (R²) tell you?
The coefficient of determination, calculated using the RSQ function in Excel, represents the squared value of the correlation coefficient r. This value measures the proportion of variance in the dependent variable that is predictable from the independent variable, indicating how well the linear model explains the data variation.
Q5: Can you visualize correlation relationships in Excel?
Yes, you can create a scatter plot in Excel to visualize the correlation between two variables. Select both data columns, go to the Insert tab, choose Charts, and select a scatter plot. You can enhance the visualization by adding trendlines and displaying the equation, which helps you observe how closely data points fit a straight line.
Q6: Why is correlation different from causation?
Correlation measures the strength of a linear relationship between two variables but does not imply that one variable causes changes in the other. Two variables can have high correlation without a causal relationship. Additionally, Pearson's correlation captures only linear relationships and may miss complex, non-linear associations between variables.
Q7: What advanced correlation analysis options does Excel provide?
Excel offers the Data Analysis Toolpak add-on, which provides correlation matrices for analyzing relationships across multiple variables simultaneously. This tool makes it easier to compare correlations across datasets and conduct more robust statistical analysis beyond simple pairwise correlation calculations between two variables.