On a Bayesian hypothesis testing
$begingroup$
Let $X_1,...,X_n$ be a random sample and $lambda >0$ be a parameter, with $X_i |lambda sim Poisson (lambda)$ and $lambda sim Gamma(alpha, beta) (lambda)=dfrac {1}{Gamma(alpha) beta^alpha} lambda ^{alpha-1} e^{-lambda / beta}$.
I want to find a Bayesian test of hypothesis for $H_0 : lambda le lambda_0$ against $H_1: lambda > lambda_1$ .
Now I know that a simple rule is that accept $H_0 :$ If $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y) $ .
Now $Y=sum_{i=1}^n X_i$ is a sufficient statistics , and the posterior pdf of $lambda |Y=y$ is a constant (depending on $y$ but independent of $lambda$ ) times $lambda ^{y+alpha -1} e^{-nlambda -frac {lambda}{ beta}}$ , so $lambda|Y=y sim Gamma (y+alpha, dfrac {beta}{nbeta+1}), so $ $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y)$ is equivalent to saying
$dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})ge 1-dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})$, so
$lambda_0 ge $ median of $Gamma (y+alpha, dfrac {beta}{nbeta+1}) $ .
But I don't know what to do further. Am I even on the right track ?
Please help .
probability-theory statistics probability-distributions bayesian hypothesis-testing
$endgroup$
add a comment |
$begingroup$
Let $X_1,...,X_n$ be a random sample and $lambda >0$ be a parameter, with $X_i |lambda sim Poisson (lambda)$ and $lambda sim Gamma(alpha, beta) (lambda)=dfrac {1}{Gamma(alpha) beta^alpha} lambda ^{alpha-1} e^{-lambda / beta}$.
I want to find a Bayesian test of hypothesis for $H_0 : lambda le lambda_0$ against $H_1: lambda > lambda_1$ .
Now I know that a simple rule is that accept $H_0 :$ If $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y) $ .
Now $Y=sum_{i=1}^n X_i$ is a sufficient statistics , and the posterior pdf of $lambda |Y=y$ is a constant (depending on $y$ but independent of $lambda$ ) times $lambda ^{y+alpha -1} e^{-nlambda -frac {lambda}{ beta}}$ , so $lambda|Y=y sim Gamma (y+alpha, dfrac {beta}{nbeta+1}), so $ $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y)$ is equivalent to saying
$dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})ge 1-dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})$, so
$lambda_0 ge $ median of $Gamma (y+alpha, dfrac {beta}{nbeta+1}) $ .
But I don't know what to do further. Am I even on the right track ?
Please help .
probability-theory statistics probability-distributions bayesian hypothesis-testing
$endgroup$
$begingroup$
Yes, the rule you chose is equivalent to deciding based of which side of $lambda_0$ the median of the posterior is on, and it seems like you've computed the posterior correctly. Assuming this is the rule you want, I don't know that there's anything you can do further until it's actually time to put some numbers in. There's no closed form expression for that median.
$endgroup$
– spaceisdarkgreen
Jan 13 at 6:42
add a comment |
$begingroup$
Let $X_1,...,X_n$ be a random sample and $lambda >0$ be a parameter, with $X_i |lambda sim Poisson (lambda)$ and $lambda sim Gamma(alpha, beta) (lambda)=dfrac {1}{Gamma(alpha) beta^alpha} lambda ^{alpha-1} e^{-lambda / beta}$.
I want to find a Bayesian test of hypothesis for $H_0 : lambda le lambda_0$ against $H_1: lambda > lambda_1$ .
Now I know that a simple rule is that accept $H_0 :$ If $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y) $ .
Now $Y=sum_{i=1}^n X_i$ is a sufficient statistics , and the posterior pdf of $lambda |Y=y$ is a constant (depending on $y$ but independent of $lambda$ ) times $lambda ^{y+alpha -1} e^{-nlambda -frac {lambda}{ beta}}$ , so $lambda|Y=y sim Gamma (y+alpha, dfrac {beta}{nbeta+1}), so $ $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y)$ is equivalent to saying
$dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})ge 1-dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})$, so
$lambda_0 ge $ median of $Gamma (y+alpha, dfrac {beta}{nbeta+1}) $ .
But I don't know what to do further. Am I even on the right track ?
Please help .
probability-theory statistics probability-distributions bayesian hypothesis-testing
$endgroup$
Let $X_1,...,X_n$ be a random sample and $lambda >0$ be a parameter, with $X_i |lambda sim Poisson (lambda)$ and $lambda sim Gamma(alpha, beta) (lambda)=dfrac {1}{Gamma(alpha) beta^alpha} lambda ^{alpha-1} e^{-lambda / beta}$.
I want to find a Bayesian test of hypothesis for $H_0 : lambda le lambda_0$ against $H_1: lambda > lambda_1$ .
Now I know that a simple rule is that accept $H_0 :$ If $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y) $ .
Now $Y=sum_{i=1}^n X_i$ is a sufficient statistics , and the posterior pdf of $lambda |Y=y$ is a constant (depending on $y$ but independent of $lambda$ ) times $lambda ^{y+alpha -1} e^{-nlambda -frac {lambda}{ beta}}$ , so $lambda|Y=y sim Gamma (y+alpha, dfrac {beta}{nbeta+1}), so $ $P(lambda le lambda_0|Y=y) ge P(lambda > lambda_0 | Y=y)$ is equivalent to saying
$dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})ge 1-dfrac {1}{Gamma (y+alpha ) } gamma (y+alpha,nlambda_0 +frac {lambda_0}{ beta})$, so
$lambda_0 ge $ median of $Gamma (y+alpha, dfrac {beta}{nbeta+1}) $ .
But I don't know what to do further. Am I even on the right track ?
Please help .
probability-theory statistics probability-distributions bayesian hypothesis-testing
probability-theory statistics probability-distributions bayesian hypothesis-testing
asked Jan 13 at 5:24
user521337user521337
1,1801416
1,1801416
$begingroup$
Yes, the rule you chose is equivalent to deciding based of which side of $lambda_0$ the median of the posterior is on, and it seems like you've computed the posterior correctly. Assuming this is the rule you want, I don't know that there's anything you can do further until it's actually time to put some numbers in. There's no closed form expression for that median.
$endgroup$
– spaceisdarkgreen
Jan 13 at 6:42
add a comment |
$begingroup$
Yes, the rule you chose is equivalent to deciding based of which side of $lambda_0$ the median of the posterior is on, and it seems like you've computed the posterior correctly. Assuming this is the rule you want, I don't know that there's anything you can do further until it's actually time to put some numbers in. There's no closed form expression for that median.
$endgroup$
– spaceisdarkgreen
Jan 13 at 6:42
$begingroup$
Yes, the rule you chose is equivalent to deciding based of which side of $lambda_0$ the median of the posterior is on, and it seems like you've computed the posterior correctly. Assuming this is the rule you want, I don't know that there's anything you can do further until it's actually time to put some numbers in. There's no closed form expression for that median.
$endgroup$
– spaceisdarkgreen
Jan 13 at 6:42
$begingroup$
Yes, the rule you chose is equivalent to deciding based of which side of $lambda_0$ the median of the posterior is on, and it seems like you've computed the posterior correctly. Assuming this is the rule you want, I don't know that there's anything you can do further until it's actually time to put some numbers in. There's no closed form expression for that median.
$endgroup$
– spaceisdarkgreen
Jan 13 at 6:42
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3071725%2fon-a-bayesian-hypothesis-testing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3071725%2fon-a-bayesian-hypothesis-testing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Yes, the rule you chose is equivalent to deciding based of which side of $lambda_0$ the median of the posterior is on, and it seems like you've computed the posterior correctly. Assuming this is the rule you want, I don't know that there's anything you can do further until it's actually time to put some numbers in. There's no closed form expression for that median.
$endgroup$
– spaceisdarkgreen
Jan 13 at 6:42