Skip to content

Methods · Spatial analysis · Spatial stratified heterogeneity

Geographical Detector (q-Statistic)

The geographical detector measures spatial stratified heterogeneity with the q statistic, the share of variance of an outcome explained by the strata of a factor, and compares factors, their interactions and stratum means.

지리 탐지기는 요인의 층별로 결과 분산 중 층 간 차이가 설명하는 비율인 q 통계량으로 공간 층화 이질성을 재고, 요인·상호작용·층 평균을 비교하는 방법입니다.

Which environmental factor explains the most spatial variation in disease rates, and do two factors together explain more than each alone?

어떤 환경 요인이 질병률의 공간 변이를 가장 많이 설명하고, 두 요인을 겹치면 각각보다 더 많이 설명하나요?

The geographical detector divides the study area into strata of each factor and computes q, the proportion of the outcome's variance explained by between-stratum differences, with an F test equal to one-way ANOVA. The interaction detector compares q of overlaid strata with the single-factor q values to classify interactions as weakening or enhancing, the ecological detector compares factors, and the risk detector compares stratum means.

When to use Geographical Detector (q-Statistic)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The geographical detector (N = [n]) showed that [factor] explained the largest share of spatial stratified heterogeneity in [outcome], q = [value], F([df1], [df2]) = [value], p = [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).

    독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Geographical Detector (q-Statistic) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q62014 · Reviewed 2026-10-25