예측 점수 분포
이제 사후 예측 점수를 사용해 우리의 Spotify 모델이 실제 데이터에 얼마나 잘 맞는지 살펴보는 연습을 해봅시다.
이 연습은 강의의 일부입니다
rstanarm으로 배우는 Bayesian 회귀 모델링
연습 안내
stan_model에 대한 사후 예측 점수를 계산하세요songs데이터의 관측된 인기도 점수 요약을 출력하세요- 이를 1번째와 10번째 복제본의 요약과 비교하세요
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Calculate posterior predictive scores
predictions <- ___(stan_model)
# Print a summary of the observed data
summary(songs$___)
# Print a summary of the 1st replication
summary(predictions[___,])
# Print a summary of the 10th replication
summary(predictions[___,])