Bayesian Finite Mixture Model (Gibbs Sampling)
A Bayesian finite mixture model describes data as coming from a fixed number of normal or Poisson components and uses Gibbs sampling to estimate component parameters, weights and each case's membership probabilities.
베이즈 유한혼합모형은 자료가 정해진 수의 정규 또는 포아송 성분에서 나왔다고 보고 깁스 표집으로 성분 모수, 비중, 사례별 소속 확률을 추정하는 방법입니다.
My measurements look bimodal; how can I estimate the two underlying groups' means, spreads and sizes with uncertainty and the probability that each case belongs to each group?
측정값 분포가 봉우리가 둘인데, 숨은 두 집단의 평균, 퍼짐, 크기를 불확실성과 함께 추정하고 각 사례가 어느 집단에 속할 확률을 알려면 어떻게 하나요?
Fit a mixture with the chosen number of components by Gibbs sampling, alternating between drawing each case's component and drawing component parameters from their conjugate conditional distributions. Undo label switching with a relabelling algorithm, then report posterior means and credible intervals of weights, means and spreads and the averaged membership probabilities.
When to use Bayesian Finite Mixture Model (Gibbs Sampling)
- Data appear to come from a few subpopulations that are not labelled.
- You want uncertainty for component parameters and memberships, not only point estimates.
- Data are continuous (one or several variables) or counts.
When to use something else
- The number of components is the main question; compare models by information criteria or use a Dirichlet process mixture.
- Groups are defined by categorical indicators; use latent class analysis.
Assumptions and requirements
- Within each component the data follow the chosen family (normal, multivariate normal or Poisson).
- The number of components is fixed in advance.
- Priors are weakly informative and the sampler has explored all modes up to relabelling.
What the analysis reports
- Posterior means and credible intervals of component weights, means and SDs (or Poisson rates)
- Posterior membership probabilities and assigned counts
- Label-switching diagnostic (share of draws relabelled)
- Normalised entropy of the classification
How to report it
A Bayesian [value]-component normal mixture ([value] retained draws, ECR relabelling; N = [value]) gave component 1 a weight of [value] and mean [value], 95% CrI [[value], [value]], and component 2 a weight of [value] and mean [value], 95% CrI [[value], [value]].
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Bayesian Finite Mixture Model (Gibbs Sampling) itself, at the same price.
- Bayesian mixture of linear regressions —
- Bayesian Poisson mixture regression — family set to “poisson”
Related methods
- Gaussian Mixture Model
- Latent Class Analysis
- K-Means Clustering
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn.
독립 계산. scikit-learn 대조 참조 시험 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 Bayesian Finite Mixture Model (Gibbs Sampling) on Quorant
- Data you need
- a table (CSV or Excel) with 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.