Why no variance term in Bayesian logistic regression?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
$begingroup$
I've read here that
... (Bayesian linear regression) is most similar to Bayesian inference
in logistic regression, but in some ways logistic regression is even
simpler, because there is no variance term to estimate, only the
regression parameters.
Why is it the case, why no variance term in Bayesian logistic regression?
logistic bayesian generalized-linear-model variance bernoulli-distribution
$endgroup$
add a comment |
$begingroup$
I've read here that
... (Bayesian linear regression) is most similar to Bayesian inference
in logistic regression, but in some ways logistic regression is even
simpler, because there is no variance term to estimate, only the
regression parameters.
Why is it the case, why no variance term in Bayesian logistic regression?
logistic bayesian generalized-linear-model variance bernoulli-distribution
$endgroup$
add a comment |
$begingroup$
I've read here that
... (Bayesian linear regression) is most similar to Bayesian inference
in logistic regression, but in some ways logistic regression is even
simpler, because there is no variance term to estimate, only the
regression parameters.
Why is it the case, why no variance term in Bayesian logistic regression?
logistic bayesian generalized-linear-model variance bernoulli-distribution
$endgroup$
I've read here that
... (Bayesian linear regression) is most similar to Bayesian inference
in logistic regression, but in some ways logistic regression is even
simpler, because there is no variance term to estimate, only the
regression parameters.
Why is it the case, why no variance term in Bayesian logistic regression?
logistic bayesian generalized-linear-model variance bernoulli-distribution
logistic bayesian generalized-linear-model variance bernoulli-distribution
edited 2 days ago
Krantz
35211
35211
asked Apr 3 at 20:32
PatrickPatrick
1546
1546
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Logistic regression, Bayesian or not, is a model defined in terms of Bernoulli distribution. The distribution is parametrized by "probability of success" $p$ with mean $p$ and variance $p(1-p)$, i.e. the variance directly follows from the mean. So there is no "separate" variance term, this is what the quote seems to say.
$endgroup$
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
1
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
1
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
|
show 2 more comments
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: "65"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
},
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%2fstats.stackexchange.com%2fquestions%2f401045%2fwhy-no-variance-term-in-bayesian-logistic-regression%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Logistic regression, Bayesian or not, is a model defined in terms of Bernoulli distribution. The distribution is parametrized by "probability of success" $p$ with mean $p$ and variance $p(1-p)$, i.e. the variance directly follows from the mean. So there is no "separate" variance term, this is what the quote seems to say.
$endgroup$
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
1
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
1
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
|
show 2 more comments
$begingroup$
Logistic regression, Bayesian or not, is a model defined in terms of Bernoulli distribution. The distribution is parametrized by "probability of success" $p$ with mean $p$ and variance $p(1-p)$, i.e. the variance directly follows from the mean. So there is no "separate" variance term, this is what the quote seems to say.
$endgroup$
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
1
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
1
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
|
show 2 more comments
$begingroup$
Logistic regression, Bayesian or not, is a model defined in terms of Bernoulli distribution. The distribution is parametrized by "probability of success" $p$ with mean $p$ and variance $p(1-p)$, i.e. the variance directly follows from the mean. So there is no "separate" variance term, this is what the quote seems to say.
$endgroup$
Logistic regression, Bayesian or not, is a model defined in terms of Bernoulli distribution. The distribution is parametrized by "probability of success" $p$ with mean $p$ and variance $p(1-p)$, i.e. the variance directly follows from the mean. So there is no "separate" variance term, this is what the quote seems to say.
answered Apr 3 at 20:46
Tim♦Tim
59.8k9132225
59.8k9132225
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
1
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
1
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
|
show 2 more comments
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
1
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
1
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@patrick for linear regression $y = mx + c + epsilon$, whereas logistic regression p(y=1|x) = logistic(mx +c).
$endgroup$
– seanv507
Apr 3 at 21:02
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
$begingroup$
@seanv507 and would it make sense to have $p(y=1|x)=logistic(mx+c+epsilon)$ or not? If not, is it because $p()$ is a probability and already includes some uncertainty?
$endgroup$
– Patrick
Apr 3 at 21:37
1
1
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick what would this formulation exactly mean? Could you give an example where would you imagine it to be used?
$endgroup$
– Tim♦
Apr 3 at 21:39
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
$begingroup$
@Patrick When you describe the conditional expectation in terms of a distribution there's no error term.
$endgroup$
– Firebug
Apr 3 at 22:12
1
1
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
$begingroup$
@Patrick linear regression is $Y sim mathcal{N}(Xbeta, sigma)$ while logistic regression is $Y sim mathcal{B}(h^{-1}(Xbeta))$. Error term is alternative way of writing linear regression, but in both cases you estimate mean of some distribution. So error term inside logistic regression would mean that you assume $h(p)$ to be normally distributed. This does not have to be nonsense, but I doubt that this is what you meant.
$endgroup$
– Tim♦
2 days ago
|
show 2 more comments
Thanks for contributing an answer to Cross Validated!
- 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%2fstats.stackexchange.com%2fquestions%2f401045%2fwhy-no-variance-term-in-bayesian-logistic-regression%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