사후 예측 체크로 모형 적합도 평가

rstanarm으로 배우는 Bayesian 회귀 모델링

Jake Thompson

Psychometrician, ATLAS, University of Kansas

R 제곱 사후분포

stan_model <- stan_glm(kid_score ~ mom_iq, data = kidiq)
r2_posterior <- bayes_R2(stan_model)

summary(r2_posterior)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
0.09677 0.18034 0.20006 0.20042 0.22048 0.33414
quantile(r2_posterior, probs = c(0.025, 0.975))
     2.5%     97.5% 
0.1402846 0.2619605
rstanarm으로 배우는 Bayesian 회귀 모델링

R 제곱 히스토그램

hist(r2_posterior)

rstanarm으로 배우는 Bayesian 회귀 모델링

밀도 오버레이

pp_check(stan_model, "dens_overlay")

rstanarm으로 배우는 Bayesian 회귀 모델링

사후 예측 검정

pp_check(stan_model, "stat")

rstanarm으로 배우는 Bayesian 회귀 모델링

사후 예측 검정

pp_check(stan_model, "stat_2d")

rstanarm으로 배우는 Bayesian 회귀 모델링

연습해 봅시다!

rstanarm으로 배우는 Bayesian 회귀 모델링

Preparing Video For Download...