Calculating Credible Intervals for observed data

조회 수: 17 (최근 30일)
SRINJAY CHANDRASEKAR
SRINJAY CHANDRASEKAR 2019년 7월 23일
답변: Kavya Vuriti 2019년 8월 13일
Hey everyone,
I'm trying to construct a 90% credible interval using normal priors, for two variables namely GDP and GDI. However, I'm not sure how i can do that. Can someone please help me with the codes for it?
Thanks in advance.

답변 (1개)

Kavya Vuriti
Kavya Vuriti 2019년 8월 13일
I think credible interval is analogous to confidence interval. To find confidence interval, calculate mean and standard deviation of the data. Then calculate the standard error of the mean at each value of the independent variable, multiply it by the 90% values of the t-distribution calculated using tinv function, then add and subtract those values from the mean.
The probabilities in tinv function can be specified as [0.05 0.95] for calculating 90% probability intervals.

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by