Unit 10: Test of Association
I. Orientation: Association in Research
Association describes the extent to which two variables vary together. Tests and measures of association help researchers determine whether an observed relationship in sample data is sufficiently systematic to justify inference about a population. Association does not, by itself, establish causation: a relationship may arise from confounding variables, reverse causation, measurement procedures, or chance.
- Purpose: Measures of association describe the direction, strength, or statistical significance of a relationship between variables.
- Variable type: The appropriate method depends primarily on the level of measurement.
- Interval or ratio data: Karl Pearson’s correlation is commonly used for quantitative variables.
- Ordinal data: Spearman rank correlation is appropriate when observations can be ranked.
- Nominal data: Contingency tables and chi-square tests assess association between categories.
- Direction: A relationship may be positive, negative, or absent; direction applies naturally to ordered or quantitative variables, but not generally to unordered nominal categories.
- Strength: Correlation coefficients usually range from
-1to+1, with larger absolute values indicating stronger relationships. - Statistical significance: A significance test evaluates whether the sample evidence is inconsistent with a null hypothesis of no association.
- Assumptions: Independence, suitable measurement levels, representative sampling, and correct model conditions are necessary for valid interpretation.
- Causal restraint: Even a strong and statistically significant association is not proof that one variable causes another.
II. Correlation Coefficient — Direction and Strength of Covariation
A. Correlation coefficient
A correlation coefficient is a standardized numerical measure of the direction and strength of association between two variables.
- General notation: Population correlation is usually represented by
ρ(rho), while a sample correlation is represented byr. - Range: A conventional correlation coefficient satisfies:
TEXT-1 ≤ r ≤ +1r = +1indicates a perfect positive relationship.r = -1indicates a perfect negative relationship.r = 0indicates no relationship of the kind measured by that coefficient.
- Positive association: When higher values of
Xtend to occur with higher values ofY, the coefficient is positive. - Negative association: When higher values of
Xtend to occur with lower values ofY, the coefficient is negative. - Magnitude: The absolute value
|r|expresses strength; for example,-0.80is stronger than+0.30, although its direction is negative. - Standardization: Because correlation has no measurement unit, variables measured in different units, such as income in rupees and education in years, can be compared.
- Coefficient of determination: For Pearson correlation,
r²gives the proportion of variance shared through the fitted linear relationship. Ifr = 0.70, then:
TEXTr² = (0.70)² = 0.49
Thus, approximately49%of the variance is accounted for by the linear association. - Interpretive caution: A coefficient near zero may conceal a strong non-linear relationship, and a single outlier may substantially alter some coefficients.
B. Applications and limitations
Correlation coefficients summarize relationships efficiently, but their meaning depends on the data, design, and selected coefficient.
- Applications: Correlation is used in reliability studies, scale construction, prediction, validation, and investigation of relationships such as education and income.
- Restriction of range: Studying only a narrow range of scores can reduce the observed coefficient.
- Heterogeneous groups: Combining distinct subgroups may create, conceal, or reverse an association.
- Sample size: A weak coefficient can be statistically significant in a large sample, while a substantial coefficient may be non-significant in a small sample.
- No causation: A correlation between stress and poor sleep does not identify which variable causes the other or exclude a third factor.
III. Spearman Rank Correlation — Association Between Ordered Observations
A. Spearman rank correlation
Spearman rank correlation, denoted by rₛ or ρₛ, measures the direction and strength of a monotonic relationship using the ranks of observations.
- Appropriate data: It is suitable for ordinal variables, ranked judgments, or quantitative data that do not satisfy Pearson correlation assumptions.
- Monotonic relationship: As one variable increases, the other generally moves in one consistent direction, although the rate of change need not be constant.
- Principle: Raw values are replaced by ranks, and the correspondence between the two sets of ranks is measured.
- Formula without tied ranks:
TEXTrₛ = 1 - [6Σdᵢ² / n(n² - 1)]rₛ= Spearman rank correlation coefficient.dᵢ= difference between the two ranks for observationi.Σdᵢ²= sum of squared rank differences.n= number of paired observations.
- Ranking convention: Rank both variables in the same direction, such as assigning rank
1to the smallest value in each set. - Tied observations: Equal values receive the average of the ranks they would occupy. With ties, Spearman’s coefficient is most directly calculated as Pearson’s correlation between the rank values.
- Worked example: Suppose four individuals have ranks
X = 1, 2, 3, 4andY = 1, 3, 2, 4. Thend = 0, -1, 1, 0, soΣd² = 2:
TEXTrₛ = 1 - [6(2) / 4(4² - 1)] = 1 - 12/60 = 0.80
The rankings therefore show a strong positive association.
B. Applications and limitations
Spearman correlation is useful when order is meaningful but exact numerical distances are unavailable or unreliable.
- Applications: It can compare rankings by two judges, relate class position to performance ratings, or analyse skewed scores.
- Advantages: It is less affected by extreme raw values because calculations use ranks rather than original magnitudes.
- Information loss: Ranking discards the size of differences; scores of
10and11may be treated like scores of10and100if their ranks are adjacent. - Condition: Observations must be paired and independent across cases.
- Limitation: It measures monotonic association and may fail to describe a relationship that changes direction.
IV. Karl’s Pearson Correlation — Linear Association Between Quantitative Variables
A. Karl's Pearson correlation
Karl Pearson’s product-moment correlation coefficient measures the strength and direction of a linear relationship between two quantitative variables.
- Conceptual basis: Pearson correlation standardizes the covariance of
XandYby their standard deviations.
TEXTr = cov(X,Y) / (sₓsᵧ)cov(X,Y)= sample covariance betweenXandY.sₓandsᵧ= sample standard deviations.
- Computational form:
TEXTr = Σ[(xᵢ - x̄)(yᵢ - ȳ)] / √{Σ(xᵢ - x̄)² Σ(yᵢ - ȳ)²}xᵢ, yᵢ= paired observations.x̄, ȳ= sample means.Σ= summation over all paired observations.
- Linear interpretation:
r = +1occurs when all points lie exactly on an upward-sloping straight line;r = -1occurs on a downward-sloping line. - Assumptions for inference: Paired quantitative observations should be independent, the relationship should be approximately linear, and serious outliers should be absent. Conventional significance procedures also assume approximate bivariate normality.
- Significance test: To test
H₀: ρ = 0, Pearson’srcan be transformed into:
TEXTt = r√[(n - 2) / (1 - r²)], df = n - 2
Here,nis the number of pairs anddfdenotes degrees of freedom.
B. Applications and limitations
Pearson correlation is most informative when a scatterplot supports a linear model.
- Applications: It is used for relationships such as height and weight, study time and test score, or two continuous scale scores.
- Outlier sensitivity: One unusually large or small observation can inflate, weaken, or reverse
r. - Linearity requirement: A strong curved relationship can produce
r ≈ 0. - Scale invariance: Changing centimetres to metres does not alter
r; reversing a scale’s direction changes its sign. - Interpretation: Pearson correlation evaluates linear association, not agreement between measurements and not causal influence.
V. Nominal Data — Association Between Categories
A. Test of association between nominal data
Association between nominal variables is examined by comparing observed category combinations with the combinations expected if the variables were independent.
- Nominal variables: Categories such as residence type, employment status, blood group, or treatment group have labels but no inherent numerical order.
- Contingency table: Frequencies are arranged in an
r × ctable, whereris the number of row categories andcis the number of column categories. - Null hypothesis:
TEXTH₀: The two nominal variables are independent. H₁: The two nominal variables are associated. - Expected frequency: Under independence, the expected count in row
iand columnjis:
TEXTEᵢⱼ = (Row totalᵢ × Column totalⱼ) / NEᵢⱼ= expected frequency in cell(i,j).N= total number of observations.
- Decision principle: Large discrepancies between observed frequencies
Oᵢⱼand expected frequenciesEᵢⱼprovide evidence against independence. - Effect-size measures: For a
2 × 2table, the phi coefficient is useful; for larger tables, Cramér’sVprovides a standardized measure from0to1. - Interpretive limit: Nominal association has strength but usually no positive or negative direction because category order is undefined.
B. Conditions and interpretation
A valid nominal association test requires count data with independent observations.
- Frequency requirement: Cells must contain counts, not percentages, means, or repeated entries for the same independent case.
- Sampling condition: Each observation should contribute to only one cell.
- Sparse tables: Very small expected frequencies make the usual chi-square approximation unreliable.
- Substantive interpretation: Statistical significance should be accompanied by examination of percentages, residuals, and effect size to identify where the association occurs.
VI. Chi-Square Test — Comparing Observed and Expected Frequencies
A. Chi-square test
The chi-square test evaluates whether differences between observed and expected categorical frequencies are too large to attribute reasonably to sampling variation.
- Test statistic:
TEXTχ² = Σ[(Oᵢ - Eᵢ)² / Eᵢ]χ²= chi-square statistic.Oᵢ= observed frequency in celli.Eᵢ= expected frequency in celli.
- Degrees of freedom for independence:
TEXTdf = (r - 1)(c - 1)
Here,ris the number of rows andcis the number of columns. - Decision rule: Reject
H₀when the calculatedχ²produces ap-value below the chosen significance levelα, commonly0.05. - Contributions: Each cell contributes
(O - E)²/E; cells with large contributions account most strongly for the test result. - Assumptions: Observations must be independent, categories mutually exclusive, and expected counts sufficiently large. A common guideline is that no expected count is below
1and no more than20%are below5. - Related forms: The test of independence examines two categorical variables, while the goodness-of-fit test compares one observed categorical distribution with a specified distribution.
B. Significance and limitations
The chi-square test identifies evidence of association but does not directly measure its magnitude or causal meaning.
- Sample-size effect: Large samples may make minor differences significant; small samples may lack power to detect meaningful association.
- Effect size: Cramér’s
Vsupplements significance:
TEXTV = √[χ² / {N × min(r - 1, c - 1)}]
Nis the total sample size, andminselects the smaller dimension. - Residual analysis: Standardized residuals indicate which cells have counts notably above or below independence expectations.
- Small samples: Fisher’s exact test is generally preferred for a sparse
2 × 2table. - Reporting: A complete result states
χ², degrees of freedom, sample size,p-value, and an effect-size measure.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →