Kendall's tau-b 2026-10-25
Let count concordant pairs and discordant pairs, and let count pairs tied only on the indicated variable. Thenwhen both factors in the denominator are positive. Unlike Goodman and Kruskal's gamma, this coefficient accounts for ties. Its absolute value is at most one: form vectors of the comparison signs for all unordered pairs. Their inner product is and their squared norms are the two denominator factors, in reverse variable order. The Cauchy-Schwarz inequality supplies the bound. A variable constant throughout gives a zero denominator, not a meaningful zero association.[ref]
Ordinal association measures in the DescTools documentation. KendallTauB: tie-adjusted rank association and relation to cor(method="kendall")
Greater technology distrust is associated with lower efficacy in the overall sample. The omnibus evidence against independence is strong, while the unsigned association magnitude is modest: on 6 statistical degrees of freedom, and Cramér's V about 0.148. The observational study does not establish that changing trust would cause efficacy to change.
Rows identify the technology response and columns identify efficacy. Each body percentage is a within-row conditional probability estimate, not a column percentage. For example, of those who strongly disagree with the distrust statement have High efficacy, whereas of those who agree do. The difference is about 21.69 percentage points. High efficacy decreases across all four rows: 49.40%, 42.41%, 31.02%, 27.72%. Low efficacy is 20.54% in the strongly-disagree row, 18.00% in Disagree, 21.43% in Neutral and 34.26% in Agree. Thus the overall pattern is clear without claiming that every category changes monotonically: the low-efficacy proportion initially falls, and the Medium proportion peaks at 47.55% among neutral respondents.
For the Pearson chi-squared test of independence, the null hypothesis says that the two categorical variables are independent, equivalently that the efficacy distribution is the same in every technology-response row. With row totals and column totals , the expected frequency under that hypothesis is , andAll twelve expected frequencies exceed 79, with minimum about 79.844, so sparse expected cells are not the concern here. Under independent sampling and the usual large-sample calibration, the very small p-value rejects independence at conventional significance levels. This is an omnibus finding: it does not provide a separate adjusted significance test for every pair of row percentages.[ref]
Pearson's Chi-squared Test for Count Data in the R documentation. Details: product-marginal null hypothesis and asymptotic chi-squared calibration
The likelihood-ratio test of independence in a contingency table uses . The supplied with 6 statistical degrees of freedom gives . Its displayed 0.000 is rounded, not an exact zero. It corroborates the omnibus finding. The generalized phi coefficient is , the contingency coefficient is about 0.205, and Cramér's V is . These are unsigned measures of association strength rather than three additional significance tests; they do not describe causal effects or percentages of variance explained. Their magnitude and the small p-value answer different questions, especially with a large sample size.
The ordinal measures use the displayed order: increasing row index means increasing distrust, while increasing column index means decreasing efficacy. There are 882033 concordant pairs and 552543 discordant pairs. Hence Goodman and Kruskal's gamma isIts positive sign therefore means that increasing distrust tends to accompany movement toward lower efficacy. Under an ascending efficacy order its sign would be negative, by sign reversal under reversal of one ordinal ordering. Goodman and Kruskal's gamma ignores tied pairs; it is not a claim that 23% of efficacy variation is explained. The displayed pair counts partition all unordered pairs correctly, including ties. Somers' D for efficacy given technology is about 0.151, Kendall's tau-b about 0.158, and Stuart's tau-c about 0.163. Their different denominators handle ties or table dimensions differently, so their differing magnitudes do not constitute disagreement about the direction.[ref]
DescTools documentation for gamma, Somers' D and lambda. GoodmanKruskalGamma and SomersDelta, Details: tied-pair exclusions and the directional denominator
[ref]Ordinal association measures in the DescTools documentation. KendallTauB and StuartTauC: tie and table-size adjustments
Goodman and Kruskal's lambda concerns the proportional reduction in errors when predicting a most frequent category, not ordinal movement. Without technology information the modal efficacy category is Medium, producing errors. Choosing a separate modal efficacy category in each technology row yields errors. Thus . In the reverse prediction direction the reduction is , matching the other printed lambda. The improvement in modal classification is small even though independence is decisively rejected. Both the conditional percentages and these distinct summaries support a real sample association; ethnicity and other possible confounders still require attention before any causal account.
Every displayed age stratum has a higher proportion of employed respondents reporting use at least daily, and each has positive ordinal association. The visible counts do not support the printed claim of a conventional significant omnibus result in any one stratum: several test fields are contradictory, and sparse cells further limit the chi-squared approximation. Age-specific significance labels do not establish interaction or causation.
Conditioning on age means comparing the employment groups within each displayed age category. Each within-row percentage estimates a use distribution for that age–employment combination. This helps assess a marginal association that could reflect different age compositions, but broad age categories do not remove all residual confounding. The relevant conditional-independence null hypothesis is that employment and use are independent within every age stratum. It differs both from marginal independence and from a null hypothesis that the strength of association is identical across ages.
For the 14–24 stratum, . The non-employed group reports use at least daily in of cases, versus of employed cases: an 11.13-percentage-point difference. Daily use alone is versus . This is not a uniform upward shift at every threshold: never-use is also higher among employed respondents, versus , whereas weekly use is lower, versus . The count-based Cramér's V is about and Goodman and Kruskal's gamma about . The cells give on statistical degrees of freedom, with , agreeing qualitatively with the likelihood-ratio result , . The printed Pearson and disagree with the cells and with one another: that printed statistic at statistical degrees of freedom would give about , not . Four of twelve expected frequencies are below five, with minimum about , so an exact conditional test or a Monte Carlo test is preferable for calibrated inference rather than trusting a marginal printed significance label.
For ages 25–44, . At-least-daily use is in the non-employed group and in the employed group, a difference of 11.06 percentage points. Never-use is versus , daily use versus , and more-than-daily use versus . The count-based Cramér's V is about and Goodman and Kruskal's gamma about . The visible cells give , , and , , each with statistical degrees of freedom. These differ materially from the printed Pearson , , and printed likelihood-ratio , . Even the printed Pearson statistic at its stated statistical degrees of freedom gives , not the stated p-value. The minimum expected frequency is about , so the principal difficulty here is corrupted numerical output rather than a listed sparse-cell warning. The recomputed 5% test fails to reject independence, although its p-value is not evidence that the positive descriptive contrast is exactly zero.
For ages 45–54, . At-least-daily use is versus , a difference of 9.03 percentage points. Never-use is versus , and daily use versus . The count-based Cramér's V is about and Goodman and Kruskal's gamma about . The cells give , , consistent with the likelihood-ratio , . The printed Pearson and are incompatible with the cells and with one another: using that statistic at statistical degrees of freedom gives . The smallest expected frequency is about . Thus this is another positive descriptive contrast without a count-supported significant omnibus result at 5%.
For ages 55–64, . At-least-daily use is versus , a difference of 7.89 percentage points. Never-use is versus , and daily use versus . Cramér's V is about and Goodman and Kruskal's gamma about . The printed and count-based Pearson result agrees: , statistical degrees of freedom, . The likelihood-ratio p-value is about . Two of twelve expected frequencies are below five, with minimum about ; the nominal result does not indicate rejection, but a simulation-based check would be prudent if formal calibration mattered. Neither a large p-value nor the smaller sample establishes an absence of association.
For the oldest stratum, labelled 65+ in Figure 8, . At-least-daily use is versus , a difference of 5.61 percentage points. Never-use is versus . Cramér's V is about and Goodman and Kruskal's gamma about , the largest of the five displayed strata. Yet on statistical degrees of freedom gives , while the likelihood-ratio p-value is about . There are four expected frequencies below five, with minimum about . Sampling uncertainty and a sparse distribution therefore matter greatly; the larger descriptive ordinal magnitude is not evidence for a significant age interaction. The zero observed entries do not establish zero population probabilities. An exact conditional test or a Monte Carlo test can retain the six categories without relying on a doubtful asymptotic approximation. Collapsing categories should have a substantive justification; searching for a grouping that produces significance changes the inferential problem.[ref]
Pearson's Chi-squared Test for Count Data in the R documentation. Details: asymptotic versus simulated fixed-margin tests and the role of positive margins
The following original analytical plot summarizes a common threshold rather than reproducing any source table. Its overall reference is deliberately separated: the five age strata total , not the in Figure 3, so their percentages cannot be pooled and called the reported overall result.
At-least-daily use is more common among employed respondents in each displayed age stratum; the printed overall row is a separate, non-reconciling input
. Details. Across the visible strata, frequent use declines strongly with age in both employment groups, while the at-least-daily employment difference remains positive. This is compatible with age being important to the use distribution and with a positive employment association persisting after age stratification. It is not a demonstrated Simpson's paradox: none of these displayed threshold differences reverses direction. The evidence also does not establish how much age confounds the overall result, because the strata do not reproduce its sample and the oldest age labels disagree across figures. Among young respondents the positive ordinal association coexists with a reversed never-use contrast, so the threshold summary should not be described as stochastic domination of every conditional distribution.
Ordinal measures summarize a different aspect from the omnibus tests. Counting pairs from each visible table gives Goodman and Kruskal's gamma approximately in age order. For use as response, the corresponding Somers' D values are about ; Kendall's tau-b values are ; and Stuart's tau-c values are . They are all positive and modest, but not interchangeable. Gamma discards pairs tied on either variable; Somers' D includes response ties separated by employment; Kendall's tau-b adjusts for ties in both variables; Stuart's tau-c adjusts for table dimensions. The printed second-variable tie counts violate the unordered-pair partition for ordinal data in all five strata, so the printed Somers and tau-b values should not be accepted as independently verified numbers.[ref]
Ordinal association measures in the DescTools documentation. KendallTauB and StuartTauC: distinct tie/table-size adjustments
Goodman and Kruskal's lambda for predicting the use category from employment is zero in all five visible strata: each employment row has the same modal use category as its stratum overall. This does not contradict their nonzero gamma or V, because the rest of each category distribution can change without its mode changing. Reversing the prediction target gives about for predicting employment from use. In the original display these are the second lambda values; identify the target directly rather than relying on ambiguous row/column-dependent labels. The contingency coefficient, another unsigned transformation of the Pearson statistic, adds no new direction and cannot repair a corrupted test statistic.
Even if all printed p-values were trusted, a significant result in one age group and a nonsignificant result in another would not prove that their effects differ. A statistical interaction needs a direct comparison of effects on a specified scale, not a comparison of significance labels. Five separate tests also create a multiple-testing issue if the aim is to claim at least one association; choosing categories or a threshold after inspection adds further selection. A joint conditional independence test for stratified contingency tables or an appropriate categorical-response model can target a clear combined hypothesis, with exact or simulation-based calibration where needed. Such a model would require coherent input tables before it could resolve the source discrepancies. The sound conclusion is a consistent positive descriptive tendency within the five shown strata, with no count-supported nominal 5% omnibus rejection in an individual stratum, and insufficient coherent output for a claimed causal or precisely quantified age-adjusted effect.
Stuart's tau-c 2026-10-25
For an contingency table of two ordinal categorical variables, write , for the sample size and for concordant pairs and discordant pairs. The coefficient isIt provides an ordinal association measure whose normalization accounts for the table dimensions. It generally differs from Kendall's tau-b and Goodman and Kruskal's gamma on a table with tied pairs. An association sign presupposes the chosen category ordering and is not a causal direction. The eponym is associated with Alan Stuart.[ref]
Ordinal association measures in the DescTools documentation. StuartTauC, Details: formula, minimum table dimension and ordinal-data requirement
