Keyness Analysis Between Corpora
Keyness analysis identifies words used significantly more or less often in a target corpus than in a reference corpus, using a per-word 2×2 log-likelihood (G²) test and a log-ratio effect size.
핵심어 분석은 낱말마다 목표 말뭉치와 참조 말뭉치의 빈도를 2×2 표 우도비(G²) 검정으로 비교해, 목표 쪽에서 유의하게 더 많거나 적게 쓰인 낱말과 그 크기(log ratio)를 찾는 분석입니다.
Also known as: Keyness by Log-Likelihood (G²)
다른 이름: 로그우도 핵심어 분석(G²)
Which words are characteristic of one group of texts compared with the others?
한 집단의 글에서 다른 집단보다 유독 많이 쓰인 낱말이 무엇인지 알고 싶어요.
For every word a 2×2 table of its frequency against all other tokens in the target and reference corpora gives a log-likelihood G² statistic, with p values adjusted by the Benjamini–Hochberg procedure. The log ratio of normalised frequencies (base 2) shows how much more frequent the word is, so a log ratio of 1 means twice as frequent.
When to use Keyness Analysis Between Corpora
- You want to describe vocabulary that distinguishes one set of texts from another.
- You compare a specialised corpus with a general reference corpus.
- You need a ranked keyword list with both significance and effect size.
When to use something else
- Words are spread very unevenly across documents (bursty); use document-level comparisons such as a test of per-document rates or a dispersion-aware measure instead.
- You want themes rather than single words; use a topic model instead.
Assumptions and requirements
- Tokens are treated as independent observations, so p values ignore clustering within documents.
- Expected frequencies are not tiny; a minimum frequency filter is applied.
- Both corpora are tokenised in the same way.
What the analysis reports
- Keyword table with raw and per-million frequencies in each corpus
- G², Pearson χ², p and BH-adjusted p per term
- Log ratio and PMI effect sizes with direction (target or reference)
- Counts of significant positive and negative keywords
- Bar chart of the strongest positive and negative keywords
How to report it
Compared with the reference corpus, [value] words were significantly overused in [target] (BH-adjusted p < .05); the strongest was '[word]' ([value] vs [value] per million, G² = [value], log ratio = [value]).
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Keyness Analysis Between Corpora itself, at the same price.
- Keyness by Chi-Square — measure set to “chi2”
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy.
독립 계산. 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 Keyness Analysis Between Corpora on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and a grouping variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.