Bayesian Mediation Analysis
Bayesian mediation analysis fits the mediator and outcome regressions jointly by Markov chain Monte Carlo and summarises the posterior distribution of the indirect effect a times b, the direct effect and the proportion mediated.
베이즈 매개분석은 매개변수 회귀와 결과 회귀를 마르코프 연쇄 몬테카를로로 함께 적합해 간접효과 a×b, 직접효과, 매개 비율의 사후분포를 요약하는 방법입니다.
Does training increase performance through motivation, and what is the probability that the indirect effect is positive?
교육이 동기를 거쳐 성과를 높이는지, 그리고 간접효과가 양수일 확률이 얼마인지 알고 싶어요.
Fit a regression of the mediator on the predictor and a regression of the outcome on the predictor and mediator in one Bayesian model, then compute a times b for every posterior draw. The credible interval of the indirect effect needs no normality assumption for the product, and the share of draws above zero gives the posterior probability of a positive indirect effect.
When to use Bayesian Mediation Analysis
- You want a posterior distribution and probability statements for the indirect effect.
- The sample is small and the product a times b is far from normal.
- You want to state priors for the paths explicitly.
When to use something else
- You need causal natural direct and indirect effects with exposure-mediator interaction or non-linear models; use causal mediation analysis.
- Several mediators or latent variables are involved; use a structural equation model.
Assumptions and requirements
- Linear Gaussian models for mediator and outcome.
- No unmeasured confounding of the predictor-mediator, predictor-outcome and mediator-outcome relations.
- Chains converge (R-hat below 1.01).
What the analysis reports
- Posterior means and credible intervals of a, b, c' and a times b
- Proportion mediated
- R-hat and effective sample sizes
- Posterior probability that the indirect effect is positive
How to report it
The Bayesian mediation model gave a = [value] (95% CrI [value] to [value]) and b = [value] (95% CrI [value] to [value]); the indirect effect was [value] (95% CrI [value] to [value]), with posterior probability [value] of being positive.
Related methods
- Mediation Analysis
- Causal Mediation Analysis (Natural Direct and Indirect Effects)
- Bayesian Generalized Linear Model
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 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 Mediation Analysis on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator 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.