Bayesian Change-Point Model by MCMC (Discrete Change-Point Sampling, Missing-Response Imputation)
A single change point splits a series into two segments with their own Poisson rate or normal mean. The method samples the change point, the segment parameters and any missing responses together by MCMC: missing values are drawn from their predictive distribution, parameters from conjugate full conditionals, and the integer change point by Metropolis steps with a symmetric geometric proposal. Because the priors are conjugate, the exact posterior of the change point is also computed and compared with the sampled one.
하나의 변화점이 계열을 두 구간으로 나누고 구간마다 포아송 비율이나 정규 평균이 따로 있다고 봅니다. 결측 반응은 예측분포에서, 모수는 켤레 완전조건부분포에서, 정수인 변화점은 대칭 기하 제안을 쓰는 메트로폴리스 단계로 함께 표집합니다. 켤레 사전분포라 변화점의 정확한 사후분포도 계산해 표집 결과와 비교합니다.
When did the level of my series change, how large was the change, and what values are plausible for the time points where the outcome is missing?
계열의 수준이 언제 바뀌었고 얼마나 바뀌었으며, 결과값이 빠진 시점에는 어떤 값이 그럴듯합니까?
The output gives the most probable change position with its posterior probability and a 95% highest-posterior set, segment rates or means with 95% credible intervals, the rate ratio or mean difference, and posterior means and intervals for every missing response. The total-variation distance between the sampled and exact change-point posterior shows whether the chain has settled.
When to use Bayesian Change-Point Model by MCMC (Discrete Change-Point Sampling, Missing-Response Imputation)
- A count or continuous series is thought to have shifted once in level and you want a full posterior for the shift time.
- Some outcome values are missing and you want them filled in consistently with the fitted model rather than deleted.
- You want an MCMC result that can be checked against an exact answer.
When to use something else
- The series may change many times: use Bayesian Online Change-Point Detection
- You only need the exact posterior for one shift in a normal mean without missing data: use Bayesian Change-Point Analysis
Assumptions and requirements
- Exactly one change point with a uniform prior over positions
- Independent observations within segments (Poisson counts or normal values with a common variance)
- Missing outcomes are missing at random given the model
What the analysis reports
- Posterior of the change position (mode, probability, 95% highest-posterior set)
- Segment rates or means, rate ratio or mean difference with credible intervals
- Imputed missing responses with intervals
- Acceptance rate, effective sample size and distance from the exact posterior
How to report it
A Bayesian single change-point Poisson model fitted by MCMC ([value] draws; [value] missing counts imputed) placed the change after [value] (posterior probability [value]); the rate fell from [value] to [value], rate ratio [value] [95% CrI [value], [value]].
Related methods
- Bayesian Change-Point Analysis
- Bayesian Online Change-Point Detection
- MCMC Convergence Diagnostics
- Multiple Imputation (MICE) with Pooled Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-6.
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 1e-6).
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 Change-Point Model by MCMC (Discrete Change-Point Sampling, Missing-Response Imputation) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and a time variable
- Price
- 900 credits for one analysis up to 10,000 rows (complexity level 5); larger or wider data costs more. Optional methodologist review: 3600 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.