Statistical Association and Correlation Analysis
Association Between Two Variables
Association tests are used to explore if two variables, x and y, are related.
Examples:
Body length and mass
Concentration of ozone and NOx in the atmosphere
Daylight duration and oxygen progression in plants
Relative humidity and average temperature
Correlation
Examines the direction and strength of the association between two numeric variables.
Evaluates the direction and strength of the linear relationship between two numeric variables x and y.
Assumptions:
Both variables are continuous (Pearson product moment correlation).
One variable continuous and one ordinal (Spearman correlation).
Related pairs: Each observation should have a value for both variables
Linearity
No outliers
Linear Regression
Examines how well the line describing the association can be used to explain the variation in Y.
As goes up, does change at the same rate (either goes up or down)?
Chi-square for Contingency Tables
Examines the association or independence between two categorical variables.
Correlation Analysis
Step 1: Plot the Data Pairs
Visualize the data to inspect for outliers and linearity using a scatterplot.
Example: As PM10 increases in the 1st station, it also increases in the 2nd station.
Visually, it seems to be linearity.
The association is definitely positive.
Step 2: Estimate the Correlation Coefficient
Scale-invariant numeric measure of the linear association between two numeric variables.
Standardize the pairs of data using z-scores:
Provides information about the directionality of the relationship: positive or negative.
Positive correlation: As the values of increase, the values of increase too (r is positive).
Negative correlation: As the values of increase, the values of decrease (r is negative).
Provides information about the strength of the relationship.
The closer is to either -1 or +1, the stronger the relationship.
The closer is to 0, the weaker the relationship.
Formula:
Example calculation:
Given sum of and
Degrees of freedom =
Step 3: Determine if the Observed Relationship Can Be Due to Chance (Hypothesis Testing)
Step 3.1: State the statistical null hypothesis and set the confidence level.
| There is no linear relationship between RH (x) and Avg. temperature (y).
is the sample correlation, an estimate of the population correlation .
Step 3.2: Calculate the test statistic and p-value.
Example: , p-value =
Interpreting a Correlation Analysis
Step 3: Decision and report of results.
If p-value < (significance level), we reject .
Example: p-value = 0.00000713 < ; we reject | The negative linear correlation between RH and avg. temperature is statistically significant.
RH showed a relatively high negative correlation to the avg. temperature (). This correlation is statistically significant (; ; ).
Caution
A non-significant correlation means that the strength ( value) could be explained by chance.
A significant correlation does not mean a strong correlation.
Small sample sizes can yield a non-significant correlation when in reality it is significant (Error type II).
Large sample sizes can yield a significant correlation when in reality it is weak (Error type I).
Not having a linear relation does not mean not having a relation; non-linear relations exist.