R-squared Posterior
सबसे पहले, R-squared स्टैटिस्टिक का posterior distribution निकालते हैं ताकि हम यह निष्कर्ष निकाल सकें कि हमारा मॉडल भविष्यवाणी करने में कितना सक्षम होने की संभावना है। Spotify डेटा वाला stan_model पहले से लोड है।
यह अभ्यास पाठ्यक्रम का हिस्सा है
rstanarm के साथ Bayesian Regression Modeling
अभ्यास निर्देश
- R-squared स्टैटिस्टिक का posterior distribution निकालिए
- R-squared distribution का एक histogram बनाइए
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Calculate the posterior distribution of the R-squared
r2_posterior <- ___(stan_model)
# Make a histogram of the distribution
___(r2_posterior)